Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-rewrite.php

    r47060 r47122  
    443443
    444444        foreach ( $posts as $id => $post ) {
    445             // URL => page name
     445            // URL => page name.
    446446            $uri         = get_page_uri( $id );
    447447            $attachments = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_type = 'attachment' AND post_parent = %d", $id ) );
     
    898898        $num_tokens = count( $tokens[0] );
    899899
    900         $index          = $this->index; //probably 'index.php'
     900        $index          = $this->index; // Probably 'index.php'.
    901901        $feedindex      = $index;
    902902        $trackbackindex = $index;
     
    10041004            $rewrite = array();
    10051005
    1006             // ...adding on /feed/ regexes => queries
     1006            // ...adding on /feed/ regexes => queries.
    10071007            if ( $feed ) {
    10081008                $rewrite = array(
     
    10131013            }
    10141014
    1015             //...and /page/xx ones
     1015            // ...and /page/xx ones.
    10161016            if ( $paged ) {
    10171017                $rewrite = array_merge( $rewrite, array( $pagematch => $pagequery ) );
     
    12601260        }
    12611261
    1262         // robots.txt -- only if installed at the root
     1262        // robots.txt -- only if installed at the root.
    12631263        $home_path      = parse_url( home_url() );
    12641264        $robots_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'robots\.txt$' => $this->index . '?robots=1' ) : array();
    12651265
    1266         // favicon.ico -- only if installed at the root
     1266        // favicon.ico -- only if installed at the root.
    12671267        $favicon_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'favicon\.ico$' => $this->index . '?favicon=1' ) : array();
    12681268
Note: See TracChangeset for help on using the changeset viewer.