Make WordPress Core

Changeset 4111


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

Die before including the header.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.