Plugin Directory

Changeset 3429698


Ignore:
Timestamp:
12/30/2025 03:25:57 PM (7 weeks ago)
Author:
jchristopher
Message:

Update to version 0.2.3 from GitHub

Location:
duplicate-menu
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • duplicate-menu/tags/0.2.3/duplicate-menu.php

    r3069565 r3429698  
    66Description: Easily duplicate your WordPress Menus
    77Author: Jon Christopher
    8 Version: 0.2.2
     8Version: 0.2.3
    99Author URI: https://jonchristopher.us/
    1010*/
    1111
    12 /*  Copyright 2011-2024 Jonathan Christopher (email : [email protected])
     12/*  Copyright 2011-2025 Jon Christopher (email : [email protected])
    1313
    1414 This program is free software; you can redistribute it and/or modify
     
    2727 */
    2828
    29 define( 'DUPLICATE_MENU_VERSION',   '0.2.2' );
     29define( 'DUPLICATE_MENU_VERSION',   '0.2.3' );
    3030define( 'DUPLICATE_MENU_DIR',       plugin_dir_path( __FILE__ ) );
    3131define( 'DUPLICATE_MENU_URL',       plugin_dir_url( __FILE__ ) );
     
    113113     * Output the options screen
    114114     */
    115     function options_screen() {
     115    static function options_screen() {
    116116        $nav_menus = wp_get_nav_menus();
    117117    ?>
    118118    <div class="wrap">
    119119        <div id="icon-options-general" class="icon32"><br /></div>
    120             <h2><?php _e( 'Duplicate Menu' ); ?></h2>
     120            <h2><?php _e( 'Duplicate Menu','duplicate-menu' ); ?></h2>
    121121
    122122            <?php if ( ! empty( $_POST ) && wp_verify_nonce( $_POST['duplicate_menu_nonce'], 'duplicate_menu' ) ) : ?>
     
    132132                <div id="message" class="updated"><p>
    133133                    <?php if ( $new_menu_id ) : ?>
    134                         <?php _e( 'Menu Duplicated' ) ?>. <a href="nav-menus.php?action=edit&amp;menu=<?php echo absint( $new_menu_id ); ?>"><?php _e( 'View' ) ?></a>
     134                        <?php _e( 'Menu Duplicated','duplicate-menu' ) ?>. <a href="nav-menus.php?action=edit&amp;menu=<?php echo absint( $new_menu_id ); ?>"><?php _e( 'View','duplicate-menu' ) ?></a>
    135135                    <?php else: ?>
    136                         <?php _e( 'There was a problem duplicating your menu. No action was taken.' ) ?>.
     136                        <?php _e( 'There was a problem duplicating your menu. No action was taken.','duplicate-menu' ) ?>.
    137137                    <?php endif; ?>
    138138                </p></div>
     
    142142
    143143            <?php if ( empty( $nav_menus ) ) : ?>
    144                 <p><?php _e( "You haven't created any Menus yet." ); ?></p>
     144                <p><?php _e( "You haven't created any Menus yet.",'duplicate-menu' ); ?></p>
    145145            <?php else: ?>
    146146                <form method="post" action="">
    147147                    <?php wp_nonce_field( 'duplicate_menu','duplicate_menu_nonce' ); ?>
     148            <?php wp_nonce_field( 'update-nav_menu', 'update-nav-menu-nonce' ); ?>
    148149                    <table class="form-table">
    149150                        <tr valign="top">
    150151                            <th scope="row">
    151                                 <label for="source"><?php _e( 'Duplicate this menu' ); ?>:</label>
     152                                <label for="source"><?php _e( 'Duplicate this menu','duplicate-menu' ); ?>:</label>
    152153                            </th>
    153154                            <td>
     
    159160                                    <?php endforeach; ?>
    160161                                </select>
    161                                 <span style="display:inline-block; padding:0 10px;"><?php _e( 'and call it' ); ?></span>
     162                                <span style="display:inline-block; padding:0 10px;"><?php _e( 'and call it','duplicate-menu' ); ?></span>
    162163                                <input name="new_menu_name" type="text" id="new_menu_name" value="" class="regular-text" />
    163164                            </td>
    164165                    </table>
    165166                    <p class="submit">
    166                         <input type="submit" name="submit" id="submit" class="button-primary" value="Duplicate Menu" />
     167                        <input type="submit" name="submit" id="submit" class="button-primary" value="<?php _e( 'Duplicate this menu','duplicate-menu' ) ?>" />
    167168                    </p>
    168169                </form>
  • duplicate-menu/tags/0.2.3/readme.md

    r2196596 r3429698  
    2727### Changelog
    2828
     29#### 0.2.3
     30- Tested up to WordPress 6.9
     31- Fixes 'link expired' issue. Props [sammosam](https://github.com/jchristopher/duplicate-menu/pull/12)
     32
    2933#### 0.2.2
    3034- Fixes Deprecation Warning
  • duplicate-menu/tags/0.2.3/readme.txt

    r3069565 r3429698  
    33Tags: menu, duplicate, copy, clone
    44Requires at least: 3.4.2
    5 Tested up to: 6.5.0
    6 Stable tag: 0.2.2
     5Tested up to: 6.9
     6Stable tag: 0.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1616Duplicate Menu will allow you to create a second (or third, or fourth, etc.) copy of an existing Menu to do with what you will. It generates the clone on a programmatic level and recreates all necessary relationships to ensure the structure is retained as well.
    1717
    18 Find out more information in my [explanatory article on Duplicate Menu](https://mondaybynoon.com/wordpress-plugin-duplicate-menu/)
     18Find out more information in my [explanatory article on Duplicate Menu](https://jonchristopher.us/blog/wordpress-plugin-duplicate-menu/)
    1919
    2020== Installation ==
     
    2929
    3030== Changelog ==
     31
     32= 0.2.3 =
     33* Tested up to WordPress 6.9
     34* Fixes 'link expired' issue. Props [sammosam](https://github.com/jchristopher/duplicate-menu/pull/12)
    3135
    3236= 0.2.2 =
  • duplicate-menu/trunk/duplicate-menu.php

    r3069565 r3429698  
    66Description: Easily duplicate your WordPress Menus
    77Author: Jon Christopher
    8 Version: 0.2.2
     8Version: 0.2.3
    99Author URI: https://jonchristopher.us/
    1010*/
    1111
    12 /*  Copyright 2011-2024 Jonathan Christopher (email : [email protected])
     12/*  Copyright 2011-2025 Jon Christopher (email : [email protected])
    1313
    1414 This program is free software; you can redistribute it and/or modify
     
    2727 */
    2828
    29 define( 'DUPLICATE_MENU_VERSION',   '0.2.2' );
     29define( 'DUPLICATE_MENU_VERSION',   '0.2.3' );
    3030define( 'DUPLICATE_MENU_DIR',       plugin_dir_path( __FILE__ ) );
    3131define( 'DUPLICATE_MENU_URL',       plugin_dir_url( __FILE__ ) );
     
    113113     * Output the options screen
    114114     */
    115     function options_screen() {
     115    static function options_screen() {
    116116        $nav_menus = wp_get_nav_menus();
    117117    ?>
    118118    <div class="wrap">
    119119        <div id="icon-options-general" class="icon32"><br /></div>
    120             <h2><?php _e( 'Duplicate Menu' ); ?></h2>
     120            <h2><?php _e( 'Duplicate Menu','duplicate-menu' ); ?></h2>
    121121
    122122            <?php if ( ! empty( $_POST ) && wp_verify_nonce( $_POST['duplicate_menu_nonce'], 'duplicate_menu' ) ) : ?>
     
    132132                <div id="message" class="updated"><p>
    133133                    <?php if ( $new_menu_id ) : ?>
    134                         <?php _e( 'Menu Duplicated' ) ?>. <a href="nav-menus.php?action=edit&amp;menu=<?php echo absint( $new_menu_id ); ?>"><?php _e( 'View' ) ?></a>
     134                        <?php _e( 'Menu Duplicated','duplicate-menu' ) ?>. <a href="nav-menus.php?action=edit&amp;menu=<?php echo absint( $new_menu_id ); ?>"><?php _e( 'View','duplicate-menu' ) ?></a>
    135135                    <?php else: ?>
    136                         <?php _e( 'There was a problem duplicating your menu. No action was taken.' ) ?>.
     136                        <?php _e( 'There was a problem duplicating your menu. No action was taken.','duplicate-menu' ) ?>.
    137137                    <?php endif; ?>
    138138                </p></div>
     
    142142
    143143            <?php if ( empty( $nav_menus ) ) : ?>
    144                 <p><?php _e( "You haven't created any Menus yet." ); ?></p>
     144                <p><?php _e( "You haven't created any Menus yet.",'duplicate-menu' ); ?></p>
    145145            <?php else: ?>
    146146                <form method="post" action="">
    147147                    <?php wp_nonce_field( 'duplicate_menu','duplicate_menu_nonce' ); ?>
     148            <?php wp_nonce_field( 'update-nav_menu', 'update-nav-menu-nonce' ); ?>
    148149                    <table class="form-table">
    149150                        <tr valign="top">
    150151                            <th scope="row">
    151                                 <label for="source"><?php _e( 'Duplicate this menu' ); ?>:</label>
     152                                <label for="source"><?php _e( 'Duplicate this menu','duplicate-menu' ); ?>:</label>
    152153                            </th>
    153154                            <td>
     
    159160                                    <?php endforeach; ?>
    160161                                </select>
    161                                 <span style="display:inline-block; padding:0 10px;"><?php _e( 'and call it' ); ?></span>
     162                                <span style="display:inline-block; padding:0 10px;"><?php _e( 'and call it','duplicate-menu' ); ?></span>
    162163                                <input name="new_menu_name" type="text" id="new_menu_name" value="" class="regular-text" />
    163164                            </td>
    164165                    </table>
    165166                    <p class="submit">
    166                         <input type="submit" name="submit" id="submit" class="button-primary" value="Duplicate Menu" />
     167                        <input type="submit" name="submit" id="submit" class="button-primary" value="<?php _e( 'Duplicate this menu','duplicate-menu' ) ?>" />
    167168                    </p>
    168169                </form>
  • duplicate-menu/trunk/readme.md

    r2196596 r3429698  
    2727### Changelog
    2828
     29#### 0.2.3
     30- Tested up to WordPress 6.9
     31- Fixes 'link expired' issue. Props [sammosam](https://github.com/jchristopher/duplicate-menu/pull/12)
     32
    2933#### 0.2.2
    3034- Fixes Deprecation Warning
  • duplicate-menu/trunk/readme.txt

    r3069565 r3429698  
    33Tags: menu, duplicate, copy, clone
    44Requires at least: 3.4.2
    5 Tested up to: 6.5.0
    6 Stable tag: 0.2.2
     5Tested up to: 6.9
     6Stable tag: 0.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1616Duplicate Menu will allow you to create a second (or third, or fourth, etc.) copy of an existing Menu to do with what you will. It generates the clone on a programmatic level and recreates all necessary relationships to ensure the structure is retained as well.
    1717
    18 Find out more information in my [explanatory article on Duplicate Menu](https://mondaybynoon.com/wordpress-plugin-duplicate-menu/)
     18Find out more information in my [explanatory article on Duplicate Menu](https://jonchristopher.us/blog/wordpress-plugin-duplicate-menu/)
    1919
    2020== Installation ==
     
    2929
    3030== Changelog ==
     31
     32= 0.2.3 =
     33* Tested up to WordPress 6.9
     34* Fixes 'link expired' issue. Props [sammosam](https://github.com/jchristopher/duplicate-menu/pull/12)
    3135
    3236= 0.2.2 =
Note: See TracChangeset for help on using the changeset viewer.