Changeset 47018 for trunk/src/wp-includes/class-wp-rewrite.php
- Timestamp:
- 12/28/2019 09:18:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r46685 r47018 1260 1260 } 1261 1261 1262 // robots.txt - only if installed at the root1262 // robots.txt -- only if installed at the root 1263 1263 $home_path = parse_url( home_url() ); 1264 1264 $robots_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'robots\.txt$' => $this->index . '?robots=1' ) : array(); 1265 1266 // favicon.ico -- only if installed at the root 1267 $favicon_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'favicon\.ico$' => $this->index . '?favicon=1' ) : array(); 1265 1268 1266 1269 // Old feed and service files. … … 1420 1423 // Put them together. 1421 1424 if ( $this->use_verbose_page_rules ) { 1422 $this->rules = array_merge( $this->extra_rules_top, $robots_rewrite, $ deprecated_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $page_rewrite, $post_rewrite, $this->extra_rules );1425 $this->rules = array_merge( $this->extra_rules_top, $robots_rewrite, $favicon_rewrite, $deprecated_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $page_rewrite, $post_rewrite, $this->extra_rules ); 1423 1426 } else { 1424 $this->rules = array_merge( $this->extra_rules_top, $robots_rewrite, $ deprecated_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules );1427 $this->rules = array_merge( $this->extra_rules_top, $robots_rewrite, $favicon_rewrite, $deprecated_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules ); 1425 1428 } 1426 1429
Note: See TracChangeset
for help on using the changeset viewer.