mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Die before including the header.
git-svn-id: https://develop.svn.wordpress.org/trunk@4111 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -55,10 +55,11 @@ break;
|
||||
|
||||
default:
|
||||
|
||||
require_once('admin-header.php');
|
||||
if ( !current_user_can('edit_themes') )
|
||||
wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
|
||||
|
||||
require_once('admin-header.php');
|
||||
|
||||
update_recently_edited($file);
|
||||
|
||||
if (!is_file($real_file))
|
||||
|
||||
Reference in New Issue
Block a user