Changeset 13721
- Timestamp:
- 03/16/2010 08:59:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r13711 r13721 108 108 wp_die( __( 'Error: options page not found.' ) ); 109 109 110 if ( 'options' == $option_page ) 111 $options = explode(',', stripslashes( $_POST[ 'page_options' ] )); 112 if( is_multisite() && !is_super_admin() ) 110 if ( 'options' == $option_page ) { 111 if ( is_multisite() && ! is_super_admin() ) 113 112 wp_die( __( 'You do not have sufficient permissions to modify unregistered settings for this site.' ) ); 114 else 113 $options = explode( ',', stripslashes( $_POST[ 'page_options' ] ) ); 114 } else { 115 115 $options = $whitelist_options[ $option_page ]; 116 } 116 117 117 118 // Handle custom date/time formats … … 135 136 } else { 136 137 $whitelist_check = false; 137 _deprecated_argument( 'options.php', '2. 6', __( 'Unregistered settings are deprecated. Register your theme/plugin settings.' ) );138 _deprecated_argument( 'options.php', '2.7', __( 'Unregistered settings are deprecated. Register your theme/plugin settings.' ) ); 138 139 } 139 140 foreach ( $options as $option ) { 140 141 if ( $whitelist_check && !in_array( $option, $registered ) ) { 141 _deprecated_argument( 'options.php', '2. 6', __( 'Unregistered settings are deprecated. Register your theme/plugin settings.' ) );142 _deprecated_argument( 'options.php', '2.7', __( 'Unregistered settings are deprecated. Register your theme/plugin settings.' ) ); 142 143 $whitelist_check = false; 143 144 }
Note: See TracChangeset
for help on using the changeset viewer.