Plugin Directory

Changeset 474238


Ignore:
Timestamp:
12/12/2011 11:17:56 PM (14 years ago)
Author:
thiudis
Message:

Removed anonymous function for PHP versions below 5.3.

Location:
custom-menu/trunk
Files:
2 edited

Legend:

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

    r472118 r474238  
    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.5
     6Version: 1.6
    77Author: Evolonix
    88Author URI: http://www.evolonix.com
     
    3737
    3838// I18n
    39 add_action('init', function() { load_plugin_textdomain('custom-menu', false, basename(dirname(__FILE__)) . '/languages'); });
     39add_action('init', 'custom_menu_init');
     40// Removed anonymous function for PHP versions below 5.3.
     41function custom_menu_init() {
     42    load_plugin_textdomain('custom-menu', false, basename(dirname(__FILE__)) . '/languages');
     43}
    4044
    4145// Admin
  • custom-menu/trunk/readme.txt

    r472118 r474238  
    55Requires at least: 2.0.2
    66Tested up to: 3.2.1
    7 Stable tag: 1.5
     7Stable tag: 1.6
    88
    99This plugin allows you to display a custom menu that you've created in your theme's "Menus" section in a post or page.
     
    3030== Changelog ==
    3131
     32= 1.6 =
     33* Removed anonymous function for PHP versions below 5.3.
     34
    3235= 1.5 =
    3336* Fixed a bug where the menu was always being placed at the top of the content, regardless where the short code was placed.
     
    5053== Upgrade Notice ==
    5154
     55= 1.6 =
     56Upgrade if you are experiencing an unexpected T_FUNCTION error, which displays when your PHP version is below 5.3.
     57
    5258= 1.3 =
    5359No new functionality in this version.
Note: See TracChangeset for help on using the changeset viewer.