More cap checks, for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11764 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b8c4df9bc
commit
cdf06921c7
@ -6,6 +6,9 @@
|
|||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var object
|
* @var object
|
||||||
*/
|
*/
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var object
|
* @var object
|
||||||
*/
|
*/
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
|
||||||
|
|
||||||
if ( empty($tag_ID) ) { ?>
|
if ( empty($tag_ID) ) { ?>
|
||||||
<div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
|
<div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
|
||||||
<?php
|
<?php
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
/** Load WordPress Bootstrap */
|
/** Load WordPress Bootstrap */
|
||||||
require_once ('admin.php');
|
require_once ('admin.php');
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_files') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
|
||||||
|
|
||||||
/** Load WordPress export API */
|
/** Load WordPress export API */
|
||||||
require_once('includes/export.php');
|
require_once('includes/export.php');
|
||||||
$title = __('Export');
|
$title = __('Export');
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
/** Load WordPress Bootstrap */
|
/** Load WordPress Bootstrap */
|
||||||
require_once ('admin.php');
|
require_once ('admin.php');
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_files') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to import content in this blog.'));
|
||||||
|
|
||||||
$title = __('Import');
|
$title = __('Import');
|
||||||
require_once ('admin-header.php');
|
require_once ('admin-header.php');
|
||||||
$parent_file = 'tools.php';
|
$parent_file = 'tools.php';
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
/** Load WordPress Administration Bootstrap */
|
/** Load WordPress Administration Bootstrap */
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
|
|
||||||
|
if ( ! current_user_can('manage_links') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to add links to this blog.'));
|
||||||
|
|
||||||
$title = __('Add New Link');
|
$title = __('Add New Link');
|
||||||
$parent_file = 'link-manager.php';
|
$parent_file = 'link-manager.php';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user