Make WordPress Core

Changeset 12892


Ignore:
Timestamp:
01/28/2010 09:52:24 PM (15 years ago)
Author:
westi
Message:

Don't both hooking in menu functions which will never get called. See #11922 props miqrogroove for 2.9 branch.

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.