[wp-trac] [WordPress Trac] #24786: filter set-screen-option not triggering

WordPress Trac noreply at wordpress.org
Tue Sep 17 16:17:06 UTC 2013


#24786: filter set-screen-option not triggering
--------------------------+------------------------------
 Reporter:  robbcaldwell  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.5.2
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------

Comment (by DrewAPicture):

 Replying to [comment:4 robbcaldwell]:
 > Replying to [comment:3 DrewAPicture]:
 >
 > My add_options() and my_custom_set_option() functions are part of a
 class, therefore calling the add_filter outside, in your example, is not
 an option, unless I call it after I run add_options() during my class
 construction. I will have to give it a try.

 My question was more along the lines of why you want to filter it right
 after setting the default. From a logic standpoint, the filter should be
 called separately anyway. I still can't figure out why you'd want to add
 the filter inside of `add_options()`.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24786#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list