Changeset 3429698
- Timestamp:
- 12/30/2025 03:25:57 PM (7 weeks ago)
- Location:
- duplicate-menu
- Files:
-
- 6 edited
- 1 copied
-
tags/0.2.3 (copied) (copied from duplicate-menu/trunk)
-
tags/0.2.3/duplicate-menu.php (modified) (6 diffs)
-
tags/0.2.3/readme.md (modified) (1 diff)
-
tags/0.2.3/readme.txt (modified) (3 diffs)
-
trunk/duplicate-menu.php (modified) (6 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
duplicate-menu/tags/0.2.3/duplicate-menu.php
r3069565 r3429698 6 6 Description: Easily duplicate your WordPress Menus 7 7 Author: Jon Christopher 8 Version: 0.2. 28 Version: 0.2.3 9 9 Author URI: https://jonchristopher.us/ 10 10 */ 11 11 12 /* Copyright 2011-202 4 Jonathan Christopher (email : [email protected])12 /* Copyright 2011-2025 Jon Christopher (email : [email protected]) 13 13 14 14 This program is free software; you can redistribute it and/or modify … … 27 27 */ 28 28 29 define( 'DUPLICATE_MENU_VERSION', '0.2. 2' );29 define( 'DUPLICATE_MENU_VERSION', '0.2.3' ); 30 30 define( 'DUPLICATE_MENU_DIR', plugin_dir_path( __FILE__ ) ); 31 31 define( 'DUPLICATE_MENU_URL', plugin_dir_url( __FILE__ ) ); … … 113 113 * Output the options screen 114 114 */ 115 function options_screen() {115 static function options_screen() { 116 116 $nav_menus = wp_get_nav_menus(); 117 117 ?> 118 118 <div class="wrap"> 119 119 <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> 121 121 122 122 <?php if ( ! empty( $_POST ) && wp_verify_nonce( $_POST['duplicate_menu_nonce'], 'duplicate_menu' ) ) : ?> … … 132 132 <div id="message" class="updated"><p> 133 133 <?php if ( $new_menu_id ) : ?> 134 <?php _e( 'Menu Duplicated' ) ?>. <a href="nav-menus.php?action=edit&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&menu=<?php echo absint( $new_menu_id ); ?>"><?php _e( 'View','duplicate-menu' ) ?></a> 135 135 <?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' ) ?>. 137 137 <?php endif; ?> 138 138 </p></div> … … 142 142 143 143 <?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> 145 145 <?php else: ?> 146 146 <form method="post" action=""> 147 147 <?php wp_nonce_field( 'duplicate_menu','duplicate_menu_nonce' ); ?> 148 <?php wp_nonce_field( 'update-nav_menu', 'update-nav-menu-nonce' ); ?> 148 149 <table class="form-table"> 149 150 <tr valign="top"> 150 151 <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> 152 153 </th> 153 154 <td> … … 159 160 <?php endforeach; ?> 160 161 </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> 162 163 <input name="new_menu_name" type="text" id="new_menu_name" value="" class="regular-text" /> 163 164 </td> 164 165 </table> 165 166 <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' ) ?>" /> 167 168 </p> 168 169 </form> -
duplicate-menu/tags/0.2.3/readme.md
r2196596 r3429698 27 27 ### Changelog 28 28 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 29 33 #### 0.2.2 30 34 - Fixes Deprecation Warning -
duplicate-menu/tags/0.2.3/readme.txt
r3069565 r3429698 3 3 Tags: menu, duplicate, copy, clone 4 4 Requires at least: 3.4.2 5 Tested up to: 6. 5.06 Stable tag: 0.2. 25 Tested up to: 6.9 6 Stable tag: 0.2.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 16 16 Duplicate 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. 17 17 18 Find out more information in my [explanatory article on Duplicate Menu](https:// mondaybynoon.com/wordpress-plugin-duplicate-menu/)18 Find out more information in my [explanatory article on Duplicate Menu](https://jonchristopher.us/blog/wordpress-plugin-duplicate-menu/) 19 19 20 20 == Installation == … … 29 29 30 30 == 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) 31 35 32 36 = 0.2.2 = -
duplicate-menu/trunk/duplicate-menu.php
r3069565 r3429698 6 6 Description: Easily duplicate your WordPress Menus 7 7 Author: Jon Christopher 8 Version: 0.2. 28 Version: 0.2.3 9 9 Author URI: https://jonchristopher.us/ 10 10 */ 11 11 12 /* Copyright 2011-202 4 Jonathan Christopher (email : [email protected])12 /* Copyright 2011-2025 Jon Christopher (email : [email protected]) 13 13 14 14 This program is free software; you can redistribute it and/or modify … … 27 27 */ 28 28 29 define( 'DUPLICATE_MENU_VERSION', '0.2. 2' );29 define( 'DUPLICATE_MENU_VERSION', '0.2.3' ); 30 30 define( 'DUPLICATE_MENU_DIR', plugin_dir_path( __FILE__ ) ); 31 31 define( 'DUPLICATE_MENU_URL', plugin_dir_url( __FILE__ ) ); … … 113 113 * Output the options screen 114 114 */ 115 function options_screen() {115 static function options_screen() { 116 116 $nav_menus = wp_get_nav_menus(); 117 117 ?> 118 118 <div class="wrap"> 119 119 <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> 121 121 122 122 <?php if ( ! empty( $_POST ) && wp_verify_nonce( $_POST['duplicate_menu_nonce'], 'duplicate_menu' ) ) : ?> … … 132 132 <div id="message" class="updated"><p> 133 133 <?php if ( $new_menu_id ) : ?> 134 <?php _e( 'Menu Duplicated' ) ?>. <a href="nav-menus.php?action=edit&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&menu=<?php echo absint( $new_menu_id ); ?>"><?php _e( 'View','duplicate-menu' ) ?></a> 135 135 <?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' ) ?>. 137 137 <?php endif; ?> 138 138 </p></div> … … 142 142 143 143 <?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> 145 145 <?php else: ?> 146 146 <form method="post" action=""> 147 147 <?php wp_nonce_field( 'duplicate_menu','duplicate_menu_nonce' ); ?> 148 <?php wp_nonce_field( 'update-nav_menu', 'update-nav-menu-nonce' ); ?> 148 149 <table class="form-table"> 149 150 <tr valign="top"> 150 151 <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> 152 153 </th> 153 154 <td> … … 159 160 <?php endforeach; ?> 160 161 </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> 162 163 <input name="new_menu_name" type="text" id="new_menu_name" value="" class="regular-text" /> 163 164 </td> 164 165 </table> 165 166 <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' ) ?>" /> 167 168 </p> 168 169 </form> -
duplicate-menu/trunk/readme.md
r2196596 r3429698 27 27 ### Changelog 28 28 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 29 33 #### 0.2.2 30 34 - Fixes Deprecation Warning -
duplicate-menu/trunk/readme.txt
r3069565 r3429698 3 3 Tags: menu, duplicate, copy, clone 4 4 Requires at least: 3.4.2 5 Tested up to: 6. 5.06 Stable tag: 0.2. 25 Tested up to: 6.9 6 Stable tag: 0.2.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 16 16 Duplicate 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. 17 17 18 Find out more information in my [explanatory article on Duplicate Menu](https:// mondaybynoon.com/wordpress-plugin-duplicate-menu/)18 Find out more information in my [explanatory article on Duplicate Menu](https://jonchristopher.us/blog/wordpress-plugin-duplicate-menu/) 19 19 20 20 == Installation == … … 29 29 30 30 == 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) 31 35 32 36 = 0.2.2 =
Note: See TracChangeset
for help on using the changeset viewer.