Ticket #21970: 21970.2.diff
| File 21970.2.diff, 1.6 KB (added by , 13 years ago) |
|---|
-
wp-includes/class-wp.php
206 206 207 207 if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { 208 208 // this is a verbose page match, lets check to be sure about it 209 if ( ! get_page_by_path( $matches[ $varmatch[1] ] ) ) 210 continue; 209 $page = get_page_by_path( $matches[ $varmatch[1] ] ); 210 if ( ! $page ) 211 continue; 212 213 $post_status_obj = get_post_status_object( $page->post_status ); 214 if ( ! ( $post_status_obj->public || $post_status_obj->protected || $post_status_obj->private ) ) 215 continue; 211 216 } 212 217 213 218 // Got a match. -
wp-includes/rewrite.php
345 345 346 346 if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) { 347 347 // this is a verbose page match, lets check to be sure about it 348 if ( ! get_page_by_path( $matches[ $varmatch[1] ] ) ) 348 $page = get_page_by_path( $matches[ $varmatch[1] ] ); 349 if ( ! $page ) 349 350 continue; 351 352 $post_status_obj = get_post_status_object( $page->post_status ); 353 if ( ! ( $post_status_obj->public || $post_status_obj->protected || $post_status_obj->private ) ) 354 continue; 350 355 } 351 356 352 357 // Got a match.