Make WordPress Core


Ignore:
Timestamp:
10/14/2019 03:50:43 PM (7 years ago)
Author:
whyisjake
Message:

Query: Remove the static query property.

Prevent unauthenticated views of publicly queryables content types.

Props aaroncampbell, whyisjake, nickdaugherty, xknown.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2/src/wp-includes/class-wp-query.php

    r45286 r46479  
    539539                        'attachment_id',
    540540                        'name',
    541                         'static',
    542541                        'pagename',
    543542                        'page_id',
    … …  
    803802                        // post is being queried.
    804803                        $this->is_single = true;
    805                 } elseif ( '' != $qv['static'] || '' != $qv['pagename'] || ! empty( $qv['page_id'] ) ) {
     804                } elseif ( '' != $qv['pagename'] || ! empty( $qv['page_id'] ) ) {
    806805                        $this->is_page   = true;
    807806                        $this->is_single = false;
Note: See TracChangeset for help on using the changeset viewer.