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

WordPress Trac noreply at wordpress.org
Mon Apr 20 21:08:39 UTC 2015


#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:                  |     Focuses:
----------------------------+----------------------

Comment (by AntoineH):

 Replying to [comment:8 tychay]:
 > To expand on this (for future people finding this in search).
 > [ .. ]
 > in a hook on{{{ plugins_loaded}}}.

 I followed the steps in your post, but it is still not working in my
 plugin. Call me stupid, but I just don't get it. And I have no idea on how
 to debug this to see what I am doing wrong. Do you have any tips?

 The function attached to set-screen-option is never called. The correct
 meta_key is created in my wp_usermeta data, but it remains an empty value.
 If I change the value in the database then the page shows the correct
 value, but upon saving the value in the admin page, the DB record is empty
 again and the page shows the default value.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24786#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list