more descriptive message on blocking unregistered setting, see #11644, related #11730

git-svn-id: http://svn.automattic.com/wordpress/trunk@13711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-03-15 22:00:48 +00:00
parent 81d6e1e8b3
commit b1bcab8963

View File

@ -110,7 +110,7 @@ if ( 'update' == $action ) {
if ( 'options' == $option_page )
$options = explode(',', stripslashes( $_POST[ 'page_options' ] ));
if( is_multisite() && !is_super_admin() )
wp_die( __( 'Not allowed here' ) );
wp_die( __( 'You do not have sufficient permissions to modify unregistered settings for this site.' ) );
else
$options = $whitelist_options[ $option_page ];