Changeset 61325
- Timestamp:
- 11/30/2025 03:14:11 PM (7 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r61179 r61325 32 32 if ( empty( $option_page ) ) { 33 33 $option_page = 'options'; 34 } else {35 36 /**37 * Filters the capability required when using the Settings API.38 *39 * By default, the options groups for all registered settings require the manage_options capability.40 * This filter is required to change the capability required for a certain options page.41 *42 * @since 3.2.043 * 44 * @param string $capability The capability used for the page, which is manage_options by default. 45 */ 46 $capability = apply_filters( "option_page_capability_{$option_page}", $capability ); 47 } 34 } 35 36 /** 37 * Filters the capability required when using the Settings API. 38 * 39 * By default, the options groups for all registered settings require the manage_options capability. 40 * This filter is required to change the capability required for a certain options page. 41 * 42 * @since 3.2.0 43 * @since 7.0.0 Applied when `wp-admin/options.php` is accessed directly. 44 * 45 * @param string $capability The capability used for the page, which is manage_options by default. 46 */ 47 $capability = apply_filters( "option_page_capability_{$option_page}", $capability ); 48 48 49 49 if ( ! current_user_can( $capability ) ) {
Note: See TracChangeset
for help on using the changeset viewer.