Duplicate Menu - Version 0.2.1

Version Description

  • Change capability to edit_theme_options
  • Added some inline documentation
  • Fixed link in readme
  • Updated screenshot
Download this release

Release Info

Developer jchristopher
Plugin Icon wp plugin Duplicate Menu
Version 0.2.1
Comparing to
See all releases

Code changes from version 0.2 to 0.2.1

Files changed (4) hide show
  1. duplicate-menu.php +12 -6
  2. readme.md +14 -8
  3. readme.txt +10 -4
  4. screenshot-1.png +0 -0
duplicate-menu.php CHANGED
@@ -5,11 +5,11 @@ Plugin Name: Duplicate Menu
5
  Plugin URI: https://github.com/jchristopher/duplicate-menu
6
  Description: Easily duplicate your WordPress Menus
7
  Author: Jonathan Christopher
8
- Version: 0.2
9
  Author URI: http://mondaybynoon.com
10
  */
11
 
12
- /* Copyright 2011-2014 Jonathan Christopher (email : jonathan@mondaybynoon.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
@@ -26,21 +26,24 @@ Author URI: http://mondaybynoon.com
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
- define( 'DUPLICATE_MENU_VERSION', '0.2' );
30
  define( 'DUPLICATE_MENU_DIR', plugin_dir_path( __FILE__ ) );
31
  define( 'DUPLICATE_MENU_URL', plugin_dir_url( __FILE__ ) );
32
 
33
  function duplicate_menu_options_page() {
34
- add_theme_page( 'Duplicate Menu', 'Duplicate Menu', 'manage_options', 'duplicate-menu', array( 'DuplicateMenu', 'options_screen' ) );
35
  }
36
 
37
  add_action( 'admin_menu', 'duplicate_menu_options_page' );
38
 
39
  /**
40
- * Duplicate Menu
41
- */
42
  class DuplicateMenu {
43
 
 
 
 
44
  function duplicate( $id = null, $name = null ) {
45
 
46
  // sanity check
@@ -98,6 +101,9 @@ class DuplicateMenu {
98
  return $new_id;
99
  }
100
 
 
 
 
101
  function options_screen() {
102
  $nav_menus = wp_get_nav_menus();
103
  ?>
5
  Plugin URI: https://github.com/jchristopher/duplicate-menu
6
  Description: Easily duplicate your WordPress Menus
7
  Author: Jonathan Christopher
8
+ Version: 0.2.1
9
  Author URI: http://mondaybynoon.com
10
  */
11
 
12
+ /* Copyright 2011-2017 Jonathan Christopher (email : jonathan@mondaybynoon.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License as published by
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
+ define( 'DUPLICATE_MENU_VERSION', '0.2.1' );
30
  define( 'DUPLICATE_MENU_DIR', plugin_dir_path( __FILE__ ) );
31
  define( 'DUPLICATE_MENU_URL', plugin_dir_url( __FILE__ ) );
32
 
33
  function duplicate_menu_options_page() {
34
+ add_theme_page( 'Duplicate Menu', 'Duplicate Menu', 'edit_theme_options', 'duplicate-menu', array( 'DuplicateMenu', 'options_screen' ) );
35
  }
36
 
37
  add_action( 'admin_menu', 'duplicate_menu_options_page' );
38
 
39
  /**
40
+ * Duplicate Menu
41
+ */
42
  class DuplicateMenu {
43
 
44
+ /**
45
+ * The duplication process
46
+ */
47
  function duplicate( $id = null, $name = null ) {
48
 
49
  // sanity check
101
  return $new_id;
102
  }
103
 
104
+ /*
105
+ * Output the options screen
106
+ */
107
  function options_screen() {
108
  $nav_menus = wp_get_nav_menus();
109
  ?>
readme.md CHANGED
@@ -1,4 +1,4 @@
1
- This is a WordPress plugin. [Official download available on wordpress.org](http://wordpress.org/extend/plugins/duplicate-menu/).
2
 
3
  # Duplicate Menu
4
 
@@ -10,7 +10,7 @@ Some WordPress installs use very elaborate navigation systems powered by core Me
10
 
11
  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.
12
 
13
- Find out more information in my [explanatory article on Duplicate Menu](http://mondaybynoon.com/20120723/wordpress-plugin-duplicate-menu/)
14
 
15
  ## Installation
16
 
@@ -22,20 +22,26 @@ Find out more information in my [explanatory article on Duplicate Menu](http://m
22
 
23
  After activation, navigate to Appearance > Duplicate Menu to create a copy of an existing Menu
24
 
25
- ![Easily create a carbon copy of an existing Menu](http://mondaybynoon.com/wp-content/uploads/duplicate-menu-screenshot-1.png)
26
 
27
  ### Changelog
28
 
29
  <dl>
30
 
 
 
 
 
 
 
31
  <dt>0.2</dt>
32
  <dd>Added <code>duplicate_menu_item</code> action, allowing devs to bolt on custom functionality</dd>
33
 
34
- <dt>0.1.1</dt>
35
- <dd>Removed anonymous function call to support PHP <5.3 installs</dd>
36
- <dd>Added link to GitHub, please contribute!</dd>
37
 
38
- <dt>0.1</dt>
39
- <dd>Initial release</dd>
40
 
41
  </dl>
1
+ This is a WordPress plugin. [Official download available on wordpress.org](https://wordpress.org/plugins/duplicate-menu/).
2
 
3
  # Duplicate Menu
4
 
10
 
11
  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.
12
 
13
+ Find out more information in my [explanatory article on Duplicate Menu](http://mondaybynoon.com/wordpress-plugin-duplicate-menu/)
14
 
15
  ## Installation
16
 
22
 
23
  After activation, navigate to Appearance > Duplicate Menu to create a copy of an existing Menu
24
 
25
+ ![Easily create a carbon copy of an existing Menu](https://mondaybynoon.com/wp-content/uploads/2017/10/screenshot-1.png)
26
 
27
  ### Changelog
28
 
29
  <dl>
30
 
31
+ <dt>0.2.1</dt>
32
+ <dd>Change capability to <code>edit_theme_options</code></dd>
33
+ <dd>Added some inline documentation</dd>
34
+ <dd>Fixed link in readme</dd>
35
+ <dd>Updated screenshot</dd>
36
+
37
  <dt>0.2</dt>
38
  <dd>Added <code>duplicate_menu_item</code> action, allowing devs to bolt on custom functionality</dd>
39
 
40
+ <dt>0.1.1</dt>
41
+ <dd>Removed anonymous function call to support PHP &lt;5.3 installs</dd>
42
+ <dd>Added link to GitHub, please contribute!</dd>
43
 
44
+ <dt>0.1</dt>
45
+ <dd>Initial release</dd>
46
 
47
  </dl>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jchristopher
3
  Donate link: http://mondaybynoon.com/donate/
4
  Tags: menu, duplicate, copy, clone
5
  Requires at least: 3.4.2
6
- Tested up to: 4.8
7
- Stable tag: 0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,12 +16,12 @@ Some WordPress installs use very elaborate navigation systems powered by core Me
16
 
17
  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.
18
 
19
- Find out more information in my [explanatory article on Duplicate Menu](http://mondaybynoon.com/20120723/wordpress-plugin-duplicate-menu/)
20
 
21
  == Installation ==
22
 
23
  1. Download the plugin and extract the files
24
- 1. Upload `duplicate-posts` to your `~/wp-content/plugins/` directory
25
  1. Activate the plugin through the 'Plugins' menu in WordPress
26
 
27
  == Screenshots ==
@@ -30,6 +30,12 @@ Find out more information in my [explanatory article on Duplicate Menu](http://m
30
 
31
  == Changelog ==
32
 
 
 
 
 
 
 
33
  = 0.2 =
34
  * Added `duplicate_menu_item` action, allowing devs to bolt on custom functionality
35
 
3
  Donate link: http://mondaybynoon.com/donate/
4
  Tags: menu, duplicate, copy, clone
5
  Requires at least: 3.4.2
6
+ Tested up to: 4.8.2
7
+ Stable tag: 0.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  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.
18
 
19
+ Find out more information in my [explanatory article on Duplicate Menu](https://mondaybynoon.com/wordpress-plugin-duplicate-menu/)
20
 
21
  == Installation ==
22
 
23
  1. Download the plugin and extract the files
24
+ 1. Upload `duplicate-menu` to your `~/wp-content/plugins/` directory
25
  1. Activate the plugin through the 'Plugins' menu in WordPress
26
 
27
  == Screenshots ==
30
 
31
  == Changelog ==
32
 
33
+ = 0.2.1 =
34
+ * Change capability to `edit_theme_options`
35
+ * Added some inline documentation
36
+ * Fixed link in readme
37
+ * Updated screenshot
38
+
39
  = 0.2 =
40
  * Added `duplicate_menu_item` action, allowing devs to bolt on custom functionality
41
 
screenshot-1.png CHANGED
Binary file