WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/14/2019 03:18:49 PM (15 months 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
  • trunk/src/wp-includes/class-wp-query.php

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