WordPress.org

Make WordPress Core

Ticket #11922: 11922-stop-gap.patch

File 11922-stop-gap.patch, 599 bytes (added by miqrogroove, 8 years ago)

This should fix the immediate problem.

  • branches/2.9/wp-admin/includes/plugin.php

     
    591591        $admin_page_hooks[$file] = sanitize_title( $menu_title );
    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
    597597        if ( empty($icon_url) ) {