Plugin Directory

Changeset 3470746


Ignore:
Timestamp:
02/26/2026 11:24:53 PM (4 weeks ago)
Author:
bcmdev
Message:

v1.1.3

Location:
bcm-duplicate-menu
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • bcm-duplicate-menu/trunk/bcm-duplicate-menu.php

    r2795719 r3470746  
    55    Description:    The easiest way to duplicate your menu
    66    Author:         BCM.dev
    7     Version:        1.1.2
     7    Version:        1.1.3
    88    Author URI:     http://bcmdev.nl/
    99    License:        GPLv2
    1010    Text Domain:    bcm-duplicate-menu
    1111*/
    12 
    13 //Translate Plugin Title
    14 __('BCM Duplicate Menu', 'bcm-duplicate-menu');
    15 
    16 //Translate Plugin Description
    17 __('The easiest way to duplicate your menu', 'bcm-duplicate-menu');
    18 
    19 //Translate Plugin Author
    20 __('BCM.dev', 'bcm-duplicate-menu');
    21 
    22 //Translate Plugin URL
    23 __('https://wordpress.org/plugins/bcm-duplicate-menu/', 'bcm-duplicate-menu');
    2412
    2513if ( ! class_exists( 'bcmDuplicateMenu' ) ) {
     
    3119           
    3220            // Add support for translations
    33             load_plugin_textdomain('bcm-duplicate-menu', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
     21            add_action('init', array($this, 'load_text_domain'));
    3422
    3523            // Add the Duplicate Menu button to the nav-menus admin-page
     
    3826            // Redirect the nav-menus to the required plugin pages
    3927            add_action('admin_footer', array($this, 'start_duplicate'), 5);
    40            
     28        }
     29
     30        function load_text_domain() {
     31            load_plugin_textdomain('bcm-duplicate-menu', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
     32
     33            //Translate Plugin Title
     34            __('BCM Duplicate Menu', 'bcm-duplicate-menu');
     35
     36            //Translate Plugin Description
     37            __('The easiest way to duplicate your menu', 'bcm-duplicate-menu');
     38
     39            //Translate Plugin Author
     40            __('BCM.dev', 'bcm-duplicate-menu');           
    4141        }
    4242
     
    5858                <script type="text/javascript">
    5959                    var update_menu_form = jQuery('#update-nav-menu');
    60                     update_menu_form.find('.publishing-action').append('<?php echo addslashes_gpc($return); ?>');
     60                    update_menu_form.find('#nav-menu-footer .publishing-action').append('<?php echo addslashes_gpc($return); ?>');
    6161                    jQuery('.DuplicateMenuButtonClick').click(function() {
    6262                        jQuery('.DuplicateMenuButtonSpinner').show();
  • bcm-duplicate-menu/trunk/readme.txt

    r3228103 r3470746  
    1 === BCM Duplicate Menu ===
     1=== Plugin Name ===
    22Contributors: bcmdev
    33Donate link: http://bcmdev.nl/donate.html
    4 Tags: duplicate, menu, ClassicPress
     4Tags: duplicate, menu
    55Requires at least: 4.0
    6 Tested up to: 6.7
    7 Requires PHP: 5.4
    8 Stable tag: 1.1.2
     6Tested up to: 6.9
     7Requires PHP: 7.0
     8Stable tag: 1.1.3
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4343== Changelog ==
    4444
     45= 1.1.3 (2026-02-27) =
     46* Bugfixes
     47
    4548= 1.1.2 (2022-10-07) =
    4649* Bugfix: In some cases, the menu order was not kept after duplicating the menu.
Note: See TracChangeset for help on using the changeset viewer.