[wp-trac] [WordPress Trac] #56607: Improve doc for WP_Screen class

WordPress Trac noreply at wordpress.org
Tue Sep 20 07:24:18 UTC 2022


#56607: Improve doc for WP_Screen class
----------------------------+-----------------------------
 Reporter:  Chouby          |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.3
 Severity:  normal          |   Keywords:
  Focuses:  docs            |
----------------------------+-----------------------------
 WooCommerce 6.9 introduced a conflict with several plugins by accessing to
 the property `WP_Screen::id` and expecting it to be a string, while
 conflicting plugins just set the current screen with a simple call to
 `set_current_screen()` without parameter. In this case,
 `get_current_screen()` returns a `WP_Screen` object with the property `id`
 set to null.

 This pushed me to review the doc of the class and notice that several
 properties are not correctly documented for this case.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56607>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list