Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #27015, comment 13


Ignore:
Timestamp:
07/29/2017 08:13:25 PM (8 years ago)
Author:
motherofdragons
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27015, comment 13

    initial v1  
    22all the solutions didn't work.
    33so I add below code in \wp-includes\class-wp-query.php
    4 just after: {{{#!php
    5 <?php
     4just after:
     5{{{
    66$page_obj = $this->get_queried_object();
    77}}}
    88
     9
    910my code:
    1011
    11 {{{#!php
    12 <?php
     12{{{
    1313if(empty($page_obj)) return false;
    14 
    1514}}}
    1615
    1716
    18 the error went away.I don't know if there is any other effects ,hope somebody can fix this bug later.
     17the error went away.I don't know if there is any other effect ,hope somebody can fix this bug later.
    1918
    2019my wordpress version is :4.7.4