Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #21394


Ignore:
Timestamp:
09/05/2012 09:50:53 AM (13 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21394

    • Property Cc leho@… added
  • Ticket #21394 – Description

    initial v2  
    1515Since WP_Query::get_queried_object() first sets its result as null and returning a value is actually conditional, I don't see a way around these checks. Enlighten me please if I'm wrong.
    1616
    17 I've looked at #19035, #18164, #17662. All of them are situations where there's at least something there in $page_obj. None of them seem to discuss or patch NULL values.
     17I've looked at #19035, #18614, #17662. All of them are situations where there's at least something there in $page_obj. None of them seem to discuss or patch NULL values.
    1818
    1919I discovered this on 3.3.2, but todays trunk [source:trunk/wp-includes/query.php@21248#L3340] has the same code.