Changeset 1656098
- Timestamp:
- 05/12/2017 06:52:30 PM (9 years ago)
- Location:
- menu-choice
- Files:
-
- 3 edited
- 4 copied
-
tags/1.0.1 (copied) (copied from menu-choice/trunk)
-
tags/1.0.1/inc (copied) (copied from menu-choice/trunk/inc)
-
tags/1.0.1/inc/mc-meta-box.php (modified) (2 diffs)
-
tags/1.0.1/menu-choice.php (copied) (copied from menu-choice/trunk/menu-choice.php)
-
tags/1.0.1/readme.txt (copied) (copied from menu-choice/trunk/readme.txt) (2 diffs)
-
trunk/inc/mc-meta-box.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
menu-choice/tags/1.0.1/inc/mc-meta-box.php
r1655992 r1656098 47 47 ); 48 48 $types = get_post_types($args); 49 49 $types = array_diff($types, array('attachment')); 50 50 foreach($types as $type){ 51 51 add_meta_box("menu_choice_box", "Menu Choice", "menu_choice_box_markup", $type , "side", 'default', null); … … 57 57 function save_menu_choice_meta_box($post_id, $post, $update) 58 58 { 59 60 if(isset($_POST["selected-menu-choice"])){ 59 61 $menu = sanitize_text_field($_POST["selected-menu-choice"]); 62 } 63 if(isset($_POST["menu-choice-nonce"])){ 60 64 $nonce = sanitize_text_field($_POST["menu-choice-nonce"]); 65 } 61 66 62 67 if (!isset($nonce) || !wp_verify_nonce($nonce, basename(__FILE__))){ -
menu-choice/tags/1.0.1/readme.txt
r1656063 r1656098 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.7 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 24 24 5. When editing that page, select the menu name from the Menu Choice meta box on the side and update the page. 25 25 6. The selected menu will be displayed in the sidebar. Create different menus for different pages. 26 27 == Screenshots == 28 29 1. Drag the 'Menu Choice' widget to the desired widget area. 30 2. Create the desired menu. 31 3. Select menu when editing page. 32 33 == Changelog == 34 35 = 1.0.1 = 36 * Fixed issue with notices appearing on menus page if debug was on. 37 38 = 1.0.0 = 39 * Initial release. -
menu-choice/trunk/inc/mc-meta-box.php
r1655992 r1656098 47 47 ); 48 48 $types = get_post_types($args); 49 49 $types = array_diff($types, array('attachment')); 50 50 foreach($types as $type){ 51 51 add_meta_box("menu_choice_box", "Menu Choice", "menu_choice_box_markup", $type , "side", 'default', null); … … 57 57 function save_menu_choice_meta_box($post_id, $post, $update) 58 58 { 59 60 if(isset($_POST["selected-menu-choice"])){ 59 61 $menu = sanitize_text_field($_POST["selected-menu-choice"]); 62 } 63 if(isset($_POST["menu-choice-nonce"])){ 60 64 $nonce = sanitize_text_field($_POST["menu-choice-nonce"]); 65 } 61 66 62 67 if (!isset($nonce) || !wp_verify_nonce($nonce, basename(__FILE__))){ -
menu-choice/trunk/readme.txt
r1656063 r1656098 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.7 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 24 24 5. When editing that page, select the menu name from the Menu Choice meta box on the side and update the page. 25 25 6. The selected menu will be displayed in the sidebar. Create different menus for different pages. 26 27 == Screenshots == 28 29 1. Drag the 'Menu Choice' widget to the desired widget area. 30 2. Create the desired menu. 31 3. Select menu when editing page. 32 33 == Changelog == 34 35 = 1.0.1 = 36 * Fixed issue with notices appearing on menus page if debug was on. 37 38 = 1.0.0 = 39 * Initial release.
Note: See TracChangeset
for help on using the changeset viewer.