Skip to content

Commit b6f18dc

Browse files
authored
Merge pull request #47 from Automattic/fix/php-warning
2 parents 23a67c6 + a75d7fa commit b6f18dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/class-rewrite-rules-inspector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ public function get_rules() {
190190

191191
$this->sources = array_unique( $sources );
192192

193+
$match_path = '';
194+
193195
if ( ! empty( $_GET['s'] ) ) {
194196
$match_path = wp_parse_url( esc_url( $_GET['s'] ), PHP_URL_PATH );
195197
$wordpress_subdir_for_site = wp_parse_url( home_url(), PHP_URL_PATH );

0 commit comments

Comments
 (0)