[wp-trac] [WordPress Trac] #50432: set_screen_options filter broken in 5.4.2
WordPress Trac
noreply at wordpress.org
Fri Jun 19 18:48:38 UTC 2020
#50432: set_screen_options filter broken in 5.4.2
--------------------------+-----------------------------
Reporter: nemi5150 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.4.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
My screen options stopped working in my plugin. When I change the value of
the 'per_page' value I have setup it never gets saved to the user meta. I
traced this to the misc.php core file where it looks like someone added
some code in 5.4.2 to the 'default' switch condition. There is an if block
in there that runs correctly with my filter added, but then the next block
of code always executes and wipes out the returned value with 'false' so
nothing ever gets saved to the user metadata. The bad code starts at line
688 in misc.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50432>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list