Changeset 47122 for trunk/src/wp-includes/class-wp-rewrite.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-rewrite.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r47060 r47122 443 443 444 444 foreach ( $posts as $id => $post ) { 445 // URL => page name 445 // URL => page name. 446 446 $uri = get_page_uri( $id ); 447 447 $attachments = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_type = 'attachment' AND post_parent = %d", $id ) ); … … 898 898 $num_tokens = count( $tokens[0] ); 899 899 900 $index = $this->index; // probably 'index.php'900 $index = $this->index; // Probably 'index.php'. 901 901 $feedindex = $index; 902 902 $trackbackindex = $index; … … 1004 1004 $rewrite = array(); 1005 1005 1006 // ...adding on /feed/ regexes => queries 1006 // ...adding on /feed/ regexes => queries. 1007 1007 if ( $feed ) { 1008 1008 $rewrite = array( … … 1013 1013 } 1014 1014 1015 // ...and /page/xx ones1015 // ...and /page/xx ones. 1016 1016 if ( $paged ) { 1017 1017 $rewrite = array_merge( $rewrite, array( $pagematch => $pagequery ) ); … … 1260 1260 } 1261 1261 1262 // robots.txt -- only if installed at the root 1262 // 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 1265 1266 // favicon.ico -- only if installed at the root 1266 // favicon.ico -- only if installed at the root. 1267 1267 $favicon_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'favicon\.ico$' => $this->index . '?favicon=1' ) : array(); 1268 1268
Note: See TracChangeset
for help on using the changeset viewer.