Changeset 48255
- Timestamp:
- 07/01/2020 09:50:30 AM (5 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
-
branches/4.3/src/wp-admin/includes/misc.php
r47982 r48255 414 414 break; 415 415 default: 416 $screen_option = false; 417 416 418 if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) { 417 419 /** … … 429 431 * @see set_screen_options() 430 432 * 431 * @param bool $keep Whether to save or skip saving the screenoption value.432 * Default false.433 * @param string $option The option name.434 * @param int $value The number of rows to use.433 * @param mixed $screen_option The value to save instead of the option value. 434 * Default false (to skip saving the current option). 435 * @param string $option The option name. 436 * @param int $value The option value. 435 437 */ 436 $ value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores438 $screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores 437 439 } 438 440 … … 448 450 * @see set_screen_options() 449 451 * 450 * @param bool $keep Whether to save or skip saving the screenoption value.451 * Default false.452 * @param string $optionThe option name.453 * @param int $value The number of rows to use.452 * @param mixed $screen_option The value to save instead of the option value. 453 * Default false (to skip saving the current option). 454 * @param string $option The option name. 455 * @param int $value The option value. 454 456 */ 455 $value = apply_filters( "set_screen_option_{$option}", false, $option, $value );457 $value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value ); 456 458 457 459 if ( false === $value )
Note: See TracChangeset
for help on using the changeset viewer.