Skip to content

Commit

Permalink
Stop direct loading of files in wp-admin that should only be included…
Browse files Browse the repository at this point in the history
…, for 2.8

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
azaozz committed Aug 3, 2009
1 parent 6350a22 commit 9775268
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 2 deletions.
4 changes: 4 additions & 0 deletions wp-admin/admin-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package WordPress
* @subpackage Administration
*/

// don't load directly
if ( !defined('ABSPATH') )
die('-1');
?>

<div class="clear"></div></div><!-- wpbody-content -->
Expand Down
4 changes: 3 additions & 1 deletion wp-admin/edit-attachment-rows.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
4 changes: 4 additions & 0 deletions wp-admin/edit-category-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));

Expand Down
4 changes: 4 additions & 0 deletions wp-admin/edit-form-advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* @subpackage Administration
*/

// don't load directly
if ( !defined('ABSPATH') )
die('-1');

/**
* Post ID global
* @name $post_ID
Expand Down
4 changes: 4 additions & 0 deletions wp-admin/edit-form-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* @subpackage Administration
*/

// don't load directly
if ( !defined('ABSPATH') )
die('-1');

/**
* @var string
*/
Expand Down
4 changes: 4 additions & 0 deletions wp-admin/edit-link-category-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));

Expand Down
4 changes: 4 additions & 0 deletions wp-admin/edit-link-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 4 additions & 0 deletions wp-admin/edit-page-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* @subpackage Administration
*/

// don't load directly
if ( !defined('ABSPATH') )
die('-1');

/**
* Post ID global.
* @name $post_ID
Expand Down
4 changes: 3 additions & 1 deletion wp-admin/edit-post-rows.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions wp-admin/edit-tag-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));

Expand Down

0 comments on commit 9775268

Please sign in to comment.