Stop direct loading of files in wp-admin that should only be included, for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3d7a5dce98
commit
4105845402
|
@ -5,6 +5,10 @@
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="clear"></div></div><!-- wpbody-content -->
|
<div class="clear"></div></div><!-- wpbody-content -->
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined('ABSPATH') ) die();
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
if ( have_posts() ) { ?>
|
if ( have_posts() ) { ?>
|
||||||
<table class="widefat fixed" cellspacing="0">
|
<table class="widefat fixed" cellspacing="0">
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
if ( !current_user_can('manage_categories') )
|
if ( !current_user_can('manage_categories') )
|
||||||
wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
|
wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Post ID global
|
* Post ID global
|
||||||
* @name $post_ID
|
* @name $post_ID
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
if ( !current_user_can('manage_categories') )
|
if ( !current_user_can('manage_categories') )
|
||||||
wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
|
wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
if ( ! empty($link_id) ) {
|
if ( ! empty($link_id) ) {
|
||||||
$heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' );
|
$heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' );
|
||||||
$submit_text = __('Update Link');
|
$submit_text = __('Update Link');
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Post ID global.
|
* Post ID global.
|
||||||
* @name $post_ID
|
* @name $post_ID
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined('ABSPATH') ) die();
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
?>
|
?>
|
||||||
<table class="widefat post fixed" cellspacing="0">
|
<table class="widefat post fixed" cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
if ( !current_user_can('manage_categories') )
|
if ( !current_user_can('manage_categories') )
|
||||||
wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
|
wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue