diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php
index d2103f45b7..b5eb1ecd7d 100644
a
|
b
|
function set_screen_options() { |
688 | 688 | } |
689 | 689 | break; |
690 | 690 | default: |
| 691 | $_value = false; |
| 692 | |
691 | 693 | if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) { |
692 | 694 | /** |
693 | 695 | * Filters a screen option value before it is set. |
… |
… |
function set_screen_options() { |
708 | 710 | * @param string $option The option name. |
709 | 711 | * @param int $value The number of rows to use. |
710 | 712 | */ |
711 | | $value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
| 713 | $_value = apply_filters( 'set-screen-option', $_value, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
712 | 714 | } |
713 | 715 | |
714 | 716 | /** |
… |
… |
function set_screen_options() { |
727 | 729 | * @param string $option The option name. |
728 | 730 | * @param int $value The number of rows to use. |
729 | 731 | */ |
730 | | $value = apply_filters( "set_screen_option_{$option}", false, $option, $value ); |
| 732 | $value = apply_filters( "set_screen_option_{$option}", $_value, $option, $value ); |
731 | 733 | |
732 | 734 | if ( false === $value ) { |
733 | 735 | return; |