[wp-trac] [WordPress Trac] #55917: Fatal error in WP6.0 when calling get_current_screen on the pre_get_posts action
WordPress Trac
noreply at wordpress.org
Thu Aug 4 11:16:24 UTC 2022
#55917: Fatal error in WP6.0 when calling get_current_screen on the pre_get_posts
action
-------------------------------------+---------------------
Reporter: lumpysimon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Query | Version: 6.0
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+---------------------
Changes (by SergeyBiryukov):
* milestone: 6.0.2 => 6.1
Comment:
I was told by @aristath that @hellofromTonya is working on a refactoring
of core's Webfonts API implementation, and this patch may not be needed in
near future.
Moving this to 6.1 for now for further tracking. In the meantime, I think
a workaround would be to check for `get_current_screen()` existence before
calling.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55917#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list