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:
azaozz
2009-08-03 00:04:45 +00:00
parent 3d7a5dce98
commit 4105845402
10 changed files with 38 additions and 2 deletions

View File

@@ -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.'));