mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
More cap checks, for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9bb224cf1e
commit
3d7a5dce98
@ -6,6 +6,9 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
|
||||
|
||||
/**
|
||||
* @var object
|
||||
*/
|
||||
|
@ -6,6 +6,9 @@
|
||||
* @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
|
||||
*/
|
||||
|
@ -6,6 +6,9 @@
|
||||
* @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) ) { ?>
|
||||
<div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
|
||||
<?php
|
||||
|
@ -9,6 +9,9 @@
|
||||
/** Load WordPress Bootstrap */
|
||||
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 */
|
||||
require_once('includes/export.php');
|
||||
$title = __('Export');
|
||||
|
@ -8,6 +8,10 @@
|
||||
|
||||
/** Load WordPress Bootstrap */
|
||||
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');
|
||||
require_once ('admin-header.php');
|
||||
$parent_file = 'tools.php';
|
||||
|
@ -9,6 +9,9 @@
|
||||
/** Load WordPress Administration Bootstrap */
|
||||
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');
|
||||
$parent_file = 'link-manager.php';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user