WordPress.org

Plugin Directory

Changeset 815317


Ignore:
Timestamp:
12/05/13 08:45:56 (4 months ago)
Author:
markjaquith
Message:

Bump to 0.3

Location:
menu-humility/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • menu-humility/trunk/menu-humility.php

    r392960 r815317  
    33Plugin Name: Menu Humility 
    44Description: Prevents plugins from injecting themselves as top level menus before your content menus. Shoves them to the end. I'm looking at you, Automattic 
    5 Version: 0.2 
     5Version: 0.3 
    66License: GPL version 2 or any later version 
    77Author: Mark Jaquith 
     
    2020    } 
    2121 
     22    public function is_gracious_menu_item( $item ) { 
     23        return in_array( $item, array( 
     24            'wp-help-documents', 
     25        ) ); 
     26    } 
     27 
    2228    public function menu_order( $menu ) { 
    2329        $penalty_box = array(); 
     
    2733                // Have reached the content area. We're done. 
    2834                break; 
    29             } elseif ( 'index.php' != $item ) { 
     35            } elseif ( 'index.php' !== $item && ! $this->is_gracious_menu_item( $item ) ) { 
    3036                // Yank it out and put it in the penalty box. 
    3137                $penalty_box[] = $item; 
  • menu-humility/trunk/readme.txt

    r392962 r815317  
    44Tags: menus, admin, reorder, annoyance 
    55Requires at least: 3.1 
    6 Tested up to: 3.2 
     6Tested up to: 3.8 
    77Stable tag: 0.2 
    88 
     
    2323Yes. 
    2424 
     25= What if my plugin lets the user choose where to put the menu? = 
     26 
     27Then you should contact me so I can whitelist your menu item. Also, bless you, my child. 
     28 
    2529== Changelog == 
     30 
     31= 0.3 = 
     32* Don't shove WP Help menu to the end, as it is there by the user's choice 
    2633 
    2734= 0.2 = 
Note: See TracChangeset for help on using the changeset viewer.