[wp-trac] [WordPress Trac] #24786: filter set-screen-option not triggering
WordPress Trac
noreply at wordpress.org
Wed Sep 18 02:09:29 UTC 2013
#24786: filter set-screen-option not triggering
----------------------------+----------------------
Reporter: robbcaldwell | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Administration | Version: 3.5.2
Severity: normal | Resolution: invalid
Keywords: |
----------------------------+----------------------
Changes (by SergeyBiryukov):
* keywords: close =>
* resolution: => invalid
* status: new => closed
* component: General => Administration
* milestone: Awaiting Review =>
Comment:
Which action `add_options()` is hooked to in your example? Looks like
you're adding the filter too late, it should not be in the same function
as `add_screen_option()`.
The example from comment:2 works fine. You can do the same with class
methods, it's just a matter of using the correct hooks and the appropriate
calling sequence.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24786#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list