mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
?>
|
||||
|
||||
<div class="clear"></div></div><!-- wpbody-content -->
|
||||
|
@ -6,7 +6,9 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
if ( ! defined('ABSPATH') ) die();
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
if ( have_posts() ) { ?>
|
||||
<table class="widefat fixed" cellspacing="0">
|
||||
|
@ -6,6 +6,10 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
|
||||
|
||||
|
@ -6,6 +6,10 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
/**
|
||||
* Post ID global
|
||||
* @name $post_ID
|
||||
|
@ -6,6 +6,10 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -6,6 +6,10 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
|
||||
|
||||
|
@ -6,6 +6,10 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
if ( ! empty($link_id) ) {
|
||||
$heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' );
|
||||
$submit_text = __('Update Link');
|
||||
|
@ -6,6 +6,10 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
/**
|
||||
* Post ID global.
|
||||
* @name $post_ID
|
||||
|
@ -6,7 +6,9 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
if ( ! defined('ABSPATH') ) die();
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
?>
|
||||
<table class="widefat post fixed" cellspacing="0">
|
||||
<thead>
|
||||
|
@ -6,6 +6,10 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// don't load directly
|
||||
if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user