Changeset 4111

Show
Ignore:
Timestamp:
08/22/06 18:20:00 (2 years ago)
Author:
ryan
Message:

Die before including the header.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/plugin-editor.php

    r3985 r4111  
    4242default: 
    4343 
    44     require_once('admin-header.php'); 
    4544    if ( !current_user_can('edit_plugins') ) 
    4645        wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>'); 
     46 
     47    require_once('admin-header.php'); 
    4748 
    4849    update_recently_edited("wp-content/plugins/$file"); 
  • trunk/wp-admin/theme-editor.php

    r3985 r4111  
    5656default: 
    5757 
    58     require_once('admin-header.php'); 
    5958    if ( !current_user_can('edit_themes') ) 
    6059        wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>'); 
     60 
     61    require_once('admin-header.php'); 
    6162 
    6263    update_recently_edited($file);