Changeset 47969 for branches/4.1/src/wp-admin/includes/misc.php
- Timestamp:
- 06/10/2020 06:32:29 PM (6 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/misc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
- Property svn:mergeinfo changed
/trunk merged: 47947-47951
- Property svn:mergeinfo changed
-
branches/4.1/src/wp-admin/includes/misc.php
r30200 r47969 406 406 break; 407 407 default: 408 if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) { 409 /** 410 * Filters a screen option value before it is set. 411 * 412 * The filter can also be used to modify non-standard [items]_per_page 413 * settings. See the parent function for a full list of standard options. 414 * 415 * Returning false to the filter will skip saving the current option. 416 * 417 * @since 2.8.0 418 * @since 5.4.2 Only applied to options ending with '_page', 419 * or the 'layout_columns' option. 420 * 421 * @see set_screen_options() 422 * 423 * @param bool $keep Whether to save or skip saving the screen option value. 424 * Default false. 425 * @param string $option The option name. 426 * @param int $value The number of rows to use. 427 */ 428 $value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores 429 } 408 430 409 431 /** 410 432 * Filter a screen option value before it is set. 411 433 * 412 * The filter can also be used to modify non-standard [items]_per_page 413 * settings. See the parent function for a full list of standard options. 434 * The dynamic portion of the hook, `$option`, refers to the option name. 414 435 * 415 436 * Returning false to the filter will skip saving the current option. 416 437 * 417 * @since 2.8.0438 * @since 5.4.2 418 439 * 419 440 * @see set_screen_options() 420 441 * 421 * @param bool|int $value Screen option value. Default false to skip. 422 * @param string $option The option name. 423 * @param int $value The number of rows to use. 442 * @param bool $keep Whether to save or skip saving the screen option value. 443 * Default false. 444 * @param string $option The option name. 445 * @param int $value The number of rows to use. 424 446 */ 425 $value = apply_filters( 'set-screen-option', false, $option, $value );447 $value = apply_filters( "set_screen_option_{$option}", false, $option, $value ); 426 448 427 449 if ( false === $value )
Note: See TracChangeset
for help on using the changeset viewer.