Make WordPress Core


Ignore:
Timestamp:
03/02/2022 03:38:27 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add a @since note for WP::parse_request() about the new return value.

Includes minor code layout fixes for consistency. Additionally, this moves a more general unit test above the more specific one.

Follow-up to [52814].

See #10886.

File:
1 edited

Legend:

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

    r52814 r52815  
    126126     *
    127127     * @since 2.0.0
     128     * @since 6.0.0 A return value was added.
    128129     *
    129130     * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
     
    759760    public function main( $query_args = '' ) {
    760761        $this->init();
     762
    761763        $parsed = $this->parse_request( $query_args );
     764
    762765        $this->send_headers();
     766
    763767        if ( $parsed ) {
    764768            $this->query_posts();
     
    766770            $this->register_globals();
    767771        }
     772
    768773        /**
    769774         * Fires once the WordPress environment has been set up.
Note: See TracChangeset for help on using the changeset viewer.