Changeset 47957
- Timestamp:
- 06/10/2020 05:46:52 PM (4 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
r47219 r47957 687 687 break; 688 688 default: 689 if ( '_page' === substr( $option, -5 ) || 'layout_columns' === $option ) { 690 /** 691 * Filters a screen option value before it is set. 692 * 693 * The filter can also be used to modify non-standard [items]_per_page 694 * settings. See the parent function for a full list of standard options. 695 * 696 * Returning false to the filter will skip saving the current option. 697 * 698 * @since 2.8.0 699 * @since 5.4.2 Only applied to options ending with '_page', 700 * or the 'layout_columns' option. 701 * 702 * @see set_screen_options() 703 * 704 * @param bool $keep Whether to save or skip saving the screen option value. 705 * Default false. 706 * @param string $option The option name. 707 * @param int $value The number of rows to use. 708 */ 709 $value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores 710 } 711 689 712 /** 690 713 * Filters a screen option value before it is set. 691 714 * 692 * The filter can also be used to modify non-standard [items]_per_page 693 * settings. See the parent function for a full list of standard options. 715 * The dynamic portion of the hook, `$option`, refers to the option name. 694 716 * 695 717 * Returning false to the filter will skip saving the current option. 696 718 * 697 * @since 2.8.0719 * @since 5.4.2 698 720 * 699 721 * @see set_screen_options() 700 722 * 701 * @param bool $keep Whether to save or skip saving the screen option value. Default false. 702 * @param string $option The option name. 703 * @param int $value The number of rows to use. 723 * @param bool $keep Whether to save or skip saving the screen option value. 724 * Default false. 725 * @param string $option The option name. 726 * @param int $value The number of rows to use. 704 727 */ 705 $value = apply_filters( 'set-screen-option', false, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores728 $value = apply_filters( "set_screen_option_{$option}", false, $option, $value ); 706 729 707 730 if ( false === $value ) {
Note: See TracChangeset
for help on using the changeset viewer.