Changeset 48244
- Timestamp:
- 07/01/2020 09:43:25 AM (5 years ago)
- Location:
- branches/5.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
-
branches/5.4/src/wp-admin/includes/misc.php
r47957 r48244 687 687 break; 688 688 default: 689 $screen_option = false; 690 689 691 if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) { 690 692 /** … … 702 704 * @see set_screen_options() 703 705 * 704 * @param bool $keep Whether to save or skip saving the screenoption value.705 * Default false.706 * @param string $option The option name.707 * @param int $value The number of rows to use.706 * @param mixed $screen_option The value to save instead of the option value. 707 * Default false (to skip saving the current option). 708 * @param string $option The option name. 709 * @param int $value The option value. 708 710 */ 709 $ value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores711 $screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores 710 712 } 711 713 … … 721 723 * @see set_screen_options() 722 724 * 723 * @param bool $keep Whether to save or skip saving the screenoption value.724 * Default false.725 * @param string $optionThe option name.726 * @param int $value The number of rows to use.725 * @param mixed $screen_option The value to save instead of the option value. 726 * Default false (to skip saving the current option). 727 * @param string $option The option name. 728 * @param int $value The option value. 727 729 */ 728 $value = apply_filters( "set_screen_option_{$option}", false, $option, $value );730 $value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value ); 729 731 730 732 if ( false === $value ) {
Note: See TracChangeset
for help on using the changeset viewer.