Changeset 48247
- Timestamp:
- 07/01/2020 09:45:25 AM (5 years ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
-
branches/5.1/src/wp-admin/includes/misc.php
r47963 r48247 640 640 break; 641 641 default: 642 $screen_option = false; 643 642 644 if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) { 643 645 /** … … 655 657 * @see set_screen_options() 656 658 * 657 * @param bool $keep Whether to save or skip saving the screenoption value.658 * Default false.659 * @param string $option The option name.660 * @param int $value The number of rows to use.659 * @param mixed $screen_option The value to save instead of the option value. 660 * Default false (to skip saving the current option). 661 * @param string $option The option name. 662 * @param int $value The option value. 661 663 */ 662 $ value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores664 $screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores 663 665 } 664 666 … … 674 676 * @see set_screen_options() 675 677 * 676 * @param bool $keep Whether to save or skip saving the screenoption value.677 * Default false.678 * @param string $optionThe option name.679 * @param int $value The number of rows to use.678 * @param mixed $screen_option The value to save instead of the option value. 679 * Default false (to skip saving the current option). 680 * @param string $option The option name. 681 * @param int $value The option value. 680 682 */ 681 $value = apply_filters( "set_screen_option_{$option}", false, $option, $value );683 $value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value ); 682 684 683 685 if ( false === $value ) {
Note: See TracChangeset
for help on using the changeset viewer.