<?php
/**
- * Options Management Administration Panel.
+ * Options Management Administration Screen.
*
* If accessed directly in a browser this page shows a list of all saved options
* along with editable fields for their values. Serialized data is not supported
wp_reset_vars(array('action', 'option_page'));
+$capability = 'manage_options';
+
if ( empty($option_page) ) // This is for back compat and will eventually be removed.
$option_page = 'options';
+else
+ $capability = apply_filters( "option_page_capability_{$option_page}", $capability );
-if ( !current_user_can('manage_options') )
+if ( !current_user_can( $capability ) )
wp_die(__('Cheatin’ uh?'));
// Handle admin email change requests