diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index 7c2bcd2940..a43a4e459b 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -5,6 +5,10 @@ * @package WordPress * @subpackage Administration */ + +// don't load directly +if ( !defined('ABSPATH') ) + die('-1'); ?>
diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php index ae8aaf26a8..aa1d43228b 100644 --- a/wp-admin/edit-attachment-rows.php +++ b/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() ) { ?> diff --git a/wp-admin/edit-category-form.php b/wp-admin/edit-category-form.php index 9dd98aeaa3..27417f6bac 100644 --- a/wp-admin/edit-category-form.php +++ b/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.')); diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 82535bbe4c..61aac06346 100644 --- a/wp-admin/edit-form-advanced.php +++ b/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 diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 93c64037fa..f87177dd56 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -6,6 +6,10 @@ * @subpackage Administration */ +// don't load directly +if ( !defined('ABSPATH') ) + die('-1'); + /** * @var string */ diff --git a/wp-admin/edit-link-category-form.php b/wp-admin/edit-link-category-form.php index cee75dcc39..df1727d6e0 100644 --- a/wp-admin/edit-link-category-form.php +++ b/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.')); diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index 32b06a87f6..11ec684b08 100644 --- a/wp-admin/edit-link-form.php +++ b/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( __( 'Links / Edit Link' ), 'link-manager.php' ); $submit_text = __('Update Link'); diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index f9c0d6b8c4..782ade4b39 100644 --- a/wp-admin/edit-page-form.php +++ b/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 diff --git a/wp-admin/edit-post-rows.php b/wp-admin/edit-post-rows.php index 37e58f0a30..8db9e89d5f 100644 --- a/wp-admin/edit-post-rows.php +++ b/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'); ?>
diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index de975c9765..250ba7a3ac 100644 --- a/wp-admin/edit-tag-form.php +++ b/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.'));