Make WordPress Core


Ignore:
Timestamp:
01/28/2010 10:07:51 PM (17 years ago)
Author:
westi
Message:

Menu hardening for the 2.8 branch see #11922

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/includes/plugin.php

    r11629 r12893  
    593593
    594594        $hookname = get_plugin_page_hookname( $file, '' );
    595         if (!empty ( $function ) && !empty ( $hookname ))
     595        if (!empty ( $function ) && !empty ( $hookname ) && current_user_can( $access_level ) )
    596596                add_action( $hookname, $function );
    597597
Note: See TracChangeset for help on using the changeset viewer.