Opened 2 years ago
Last modified 2 years ago
#56607 new defect (bug)
Improve doc for WP_Screen class
Reported by: | Chouby | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 3.3 |
Component: | Administration | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
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.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Just for reference, the issue opened in WooCommerce: https://github.com/woocommerce/woocommerce/issues/34725