[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 1 23:35:29 UTC 2025


#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:  Future Release
Component:  Query                            |     Version:  6.0
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch needs-test-info close  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by SirLouen):

 * keywords:  has-patch needs-testing => has-patch needs-test-info close


Comment:

 == Reproduction Report
 === Description
 ❌ This report can't validate that the issue can be reproduced.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.5
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 137.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty 2.9
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Testing Instructions Followed

 1. Added the code proposed in OP in a new plugin
 2. Enabled the plugin
 3. ❌ Nothing happens in the admin interface

 === Actual Results
 1. ❌ Error condition doesn't occur

 === Additional Notes
 - @antonvlasenko you were investigating this topic, so I assume you had
 some instructions in hand?
 - Tagging `close` candidate with `worksforme` with another repro report
 (whatever comes first)

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


More information about the wp-trac mailing list