Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #55722


Ignore:
Timestamp:
05/13/2022 09:51:31 PM (2 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55722

    • Property Keywords has-patch added
    • Property Milestone changed from Awaiting Review to 6.1
  • Ticket #55722 – Description

    initial v2  
    1 While working on [https://core.trac.wordpress.org/ticket/55104] we noticed that other functions were also missing guard conditions.
     1While working on #55104 we noticed that other functions were also missing guard conditions.
    22In these cases, $wp_query could be null which would cause a fatal error. It would be safer to check if $wp_query is set before.