Plugin Directory

Changeset 453113


Ignore:
Timestamp:
10/19/2011 08:58:07 PM (14 years ago)
Author:
thiudis
Message:

Fixed a bug where the options page was being added to the admin bar for all users, regardless if they had access to it or not.

Location:
custom-menu/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • custom-menu/trunk/class-custom-menu-admin.php

    r451505 r453113  
    339339        global $wp_admin_bar;
    340340       
     341        if (!current_user_can('manage_options'))
     342            return;
     343       
    341344        if (!isset($wp_admin_bar->menu->evolonix)) {
    342345            $wp_admin_bar->add_menu( array(
  • custom-menu/trunk/custom-menu.php

    r451505 r453113  
    44Plugin URI: http://www.evolonix.com/wordpress/plugins/custom-menu
    55Description: This plugin allows you to display a custom menu that you've created in your theme's "Menus" section in a post or page. Use [menu name="Menu Name"] in your post or page to insert the custom menu. The "name" attribute is required. Since version 1.2, you can now provide a "title" attribute to add a header title to your custom menu (e.g. [menu name="Menu Name" title="My Menu"].)
    6 Version: 1.3
     6Version: 1.4
    77Author: Evolonix
    88Author URI: http://www.evolonix.com
  • custom-menu/trunk/readme.txt

    r451505 r453113  
    3030== Changelog ==
    3131
     32= 1.4 =
     33* Fixed a bug where the options page was being added to the admin bar for all users, regardless if they had access to it or not.
     34
    3235= 1.3 =
    3336* Added references to the author's website.
Note: See TracChangeset for help on using the changeset viewer.