Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stop direct loading of files in wp-admin that should only be included…

…, for 2.8

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 9775268b25740f335e9e5a4cec6ced2d89f5e16d 1 parent 6350a22
azaozz authored
View
4 wp-admin/admin-footer.php
@@ -5,6 +5,10 @@
* @package WordPress
* @subpackage Administration
*/
+
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
?>
<div class="clear"></div></div><!-- wpbody-content -->
View
4 wp-admin/edit-attachment-rows.php
@@ -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">
View
4 wp-admin/edit-category-form.php
@@ -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.'));
View
4 wp-admin/edit-form-advanced.php
@@ -6,6 +6,10 @@
* @subpackage Administration
*/
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
+
/**
* Post ID global
* @name $post_ID
View
4 wp-admin/edit-form-comment.php
@@ -6,6 +6,10 @@
* @subpackage Administration
*/
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
+
/**
* @var string
*/
View
4 wp-admin/edit-link-category-form.php
@@ -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.'));
View
4 wp-admin/edit-link-form.php
@@ -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');
View
4 wp-admin/edit-page-form.php
@@ -6,6 +6,10 @@
* @subpackage Administration
*/
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
+
/**
* Post ID global.
* @name $post_ID
View
4 wp-admin/edit-post-rows.php
@@ -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>
View
4 wp-admin/edit-tag-form.php
@@ -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.'));
Please sign in to comment.
Something went wrong with that request. Please try again.