WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r12048 r12892  
    592592
    593593    $hookname = get_plugin_page_hookname( $file, '' );
    594     if (!empty ( $function ) && !empty ( $hookname ))
     594    if (!empty ( $function ) && !empty ( $hookname ) && current_user_can( $access_level ) )
    595595        add_action( $hookname, $function );
    596596
Note: See TracChangeset for help on using the changeset viewer.