mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Die before including the header.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e31723d61e
commit
52d65dc101
@ -41,10 +41,11 @@ break;
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
require_once('admin-header.php');
|
|
||||||
if ( !current_user_can('edit_plugins') )
|
if ( !current_user_can('edit_plugins') )
|
||||||
wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
||||||
|
|
||||||
|
require_once('admin-header.php');
|
||||||
|
|
||||||
update_recently_edited("wp-content/plugins/$file");
|
update_recently_edited("wp-content/plugins/$file");
|
||||||
|
|
||||||
if (!is_file($real_file))
|
if (!is_file($real_file))
|
||||||
|
@ -55,10 +55,11 @@ break;
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
require_once('admin-header.php');
|
|
||||||
if ( !current_user_can('edit_themes') )
|
if ( !current_user_can('edit_themes') )
|
||||||
wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
|
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);
|
update_recently_edited($file);
|
||||||
|
|
||||||
if (!is_file($real_file))
|
if (!is_file($real_file))
|
||||||
|
Loading…
Reference in New Issue
Block a user