Duplicate Menu - Version 0.2.2

Version Description

  • Fixes Deprecation Warning
Download this release

Release Info

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

Code changes from version 0.2.1 to 0.2.2

Files changed (3) hide show
  1. duplicate-menu.php +20 -10
  2. readme.md +14 -15
  3. readme.txt +5 -2
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.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,21 +26,29 @@ 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.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
  */
@@ -162,3 +170,5 @@ class DuplicateMenu {
162
  </div>
163
  <?php }
164
  }
 
 
5
  Plugin URI: https://github.com/jchristopher/duplicate-menu
6
  Description: Easily duplicate your WordPress Menus
7
  Author: Jonathan Christopher
8
+ Version: 0.2.2
9
+ Author URI: https://jonchristopher.us/
10
  */
11
 
12
+ /* Copyright 2011-2019 Jonathan Christopher (email : jon@jonchristopher.us)
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.2' );
30
  define( 'DUPLICATE_MENU_DIR', plugin_dir_path( __FILE__ ) );
31
  define( 'DUPLICATE_MENU_URL', plugin_dir_url( __FILE__ ) );
32
 
 
 
 
 
 
 
33
  /**
34
  * Duplicate Menu
35
  */
36
  class DuplicateMenu {
37
 
38
+ function __construct() {
39
+ add_action( 'admin_menu', array( $this, 'options_page' ) );
40
+ }
41
+
42
+ function options_page() {
43
+ add_theme_page(
44
+ 'Duplicate Menu',
45
+ 'Duplicate Menu',
46
+ 'edit_theme_options',
47
+ 'duplicate-menu',
48
+ array( $this, 'options_screen' )
49
+ );
50
+ }
51
+
52
  /**
53
  * The duplication process
54
  */
170
  </div>
171
  <?php }
172
  }
173
+
174
+ new DuplicateMenu();
readme.md CHANGED
@@ -26,22 +26,21 @@ After activation, navigate to Appearance > Duplicate Menu to create a copy of an
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>
26
 
27
  ### Changelog
28
 
29
+ #### 0.2.2
30
+ - Fixes Deprecation Warning
31
 
32
+ #### 0.2.1
33
+ - Change capability to <code>edit_theme_options</code>
34
+ - Added some inline documentation
35
+ - Fixed link in readme
36
+ - Updated screenshot
37
 
38
+ #### 0.2
39
+ - Added <code>duplicate_menu_item</code> action, allowing devs to bolt on custom functionality
40
 
41
+ #### 0.1.1
42
+ - Removed anonymous function call to support PHP <5.3 installs
43
+ - Added link to GitHub, please contribute!
44
 
45
+ #### 0.1
46
+ - Initial release
 
 
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.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
 
@@ -30,6 +30,9 @@ Find out more information in my [explanatory article on Duplicate Menu](https://
30
 
31
  == Changelog ==
32
 
 
 
 
33
  = 0.2.1 =
34
  * Change capability to `edit_theme_options`
35
  * Added some inline documentation
3
  Donate link: http://mondaybynoon.com/donate/
4
  Tags: menu, duplicate, copy, clone
5
  Requires at least: 3.4.2
6
+ Tested up to: 5.3
7
+ Stable tag: 0.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
30
 
31
  == Changelog ==
32
 
33
+ = 0.2.2 =
34
+ * Fixes Deprecation Warning
35
+
36
  = 0.2.1 =
37
  * Change capability to `edit_theme_options`
38
  * Added some inline documentation