Add some CYA cap checks.

git-svn-id: https://develop.svn.wordpress.org/trunk@11761 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-08-01 21:12:17 +00:00
parent ebd60f5a91
commit 98b8d02a40
11 changed files with 46 additions and 0 deletions
+3
View File
@@ -9,6 +9,9 @@
/** WordPress Administration Bootstrap */
require_once('admin.php');
if ( ! current_user_can('manage_options') )
wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
$title = __('Permalink Settings');
$parent_file = 'options-general.php';