[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
Sun Jun 5 12:22: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.0.1
Component:  Administration  |     Version:  6.0
 Severity:  normal          |  Resolution:
 Keywords:  needs-testing   |     Focuses:  administration
----------------------------+-----------------------------

Comment (by mukesh27):

 I try to track the issue and this function call `$settings =
 WP_Theme_JSON_Resolver::get_merged_data()->get_settings();` generate
 issue for 6.0 version and function dependency called
 `wp_get_recent_posts()` function to get recent posts for
 `wp_global_styles` post type.

 Ping @hellofromTonya for more help on this issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55917#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list