[wp-trac] [WordPress Trac] #50392: set-screen-option hook broken in 5.4.2

WordPress Trac noreply at wordpress.org
Mon Jun 15 14:51:11 UTC 2020


#50392: set-screen-option hook broken in 5.4.2
----------------------------+-----------------------------
 Reporter:  sswells         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  5.4.2
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 A value returned using the set-screen-option hook is being ignored. Take a
 look.

 Line 711: $value = apply_filters( 'set-screen-option', false, $option,
 $value );
 Line 730: $value = apply_filters( "set_screen_option_{$option}", false,
 $option, $value );

 Line 730 should be:
 apply_filters( "set_screen_option_{$option}", $value );

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50392>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list