WordPress.org

Make WordPress Core

Changeset 25945


Ignore:
Timestamp:
10/27/2013 07:48:34 AM (7 years ago)
Author:
DrewAPicture
Message:

Fix error introduced in [25940] where $public_query_vars should have only been used as a non-existent inline docs variable in the query_vars filter.

Restores $this->public_query_vars to the query_vars filter in wp-includes/class-wp.php.

Props mauryaratan.
Fixes #25495. See #25719.

File:
1 edited

Legend:

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

    r25940 r25945  
    246246        }
    247247
    248         $this->public_query_vars;
    249248        /**
    250249         * Filter the query variables whitelist before processing.
     
    258257         * @param array $public_query_vars The array of whitelisted query variables.
    259258         */
    260         $this->public_query_vars = apply_filters( 'query_vars', $public_query_vars );
     259        $this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars );
    261260
    262261        foreach ( get_post_types( array(), 'objects' ) as $post_type => $t )
Note: See TracChangeset for help on using the changeset viewer.