Plugin Directory

Changeset 1656098


Ignore:
Timestamp:
05/12/2017 06:52:30 PM (9 years ago)
Author:
jake_white1230
Message:

Fixed bug in 1.0.0. Updated to 1.0.1

Location:
menu-choice
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • menu-choice/tags/1.0.1/inc/mc-meta-box.php

    r1655992 r1656098  
    4747  );
    4848  $types = get_post_types($args);
    49 
     49  $types = array_diff($types, array('attachment'));
    5050  foreach($types as $type){
    5151    add_meta_box("menu_choice_box", "Menu Choice", "menu_choice_box_markup", $type , "side", 'default',  null);
     
    5757function save_menu_choice_meta_box($post_id, $post, $update)
    5858{
     59
     60if(isset($_POST["selected-menu-choice"])){
    5961  $menu = sanitize_text_field($_POST["selected-menu-choice"]);
     62}
     63if(isset($_POST["menu-choice-nonce"])){
    6064  $nonce = sanitize_text_field($_POST["menu-choice-nonce"]);
     65}
    6166
    6267    if (!isset($nonce) || !wp_verify_nonce($nonce, basename(__FILE__))){
  • menu-choice/tags/1.0.1/readme.txt

    r1656063 r1656098  
    55Requires at least: 3.0.1
    66Tested up to: 4.7
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    24245. When editing that page, select the menu name from the Menu Choice meta box on the side and update the page.
    25256. The selected menu will be displayed in the sidebar. Create different menus for different pages.
     26
     27== Screenshots ==
     28
     291. Drag the 'Menu Choice' widget to the desired widget area.
     302. Create the desired menu.
     313. 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  
    4747  );
    4848  $types = get_post_types($args);
    49 
     49  $types = array_diff($types, array('attachment'));
    5050  foreach($types as $type){
    5151    add_meta_box("menu_choice_box", "Menu Choice", "menu_choice_box_markup", $type , "side", 'default',  null);
     
    5757function save_menu_choice_meta_box($post_id, $post, $update)
    5858{
     59
     60if(isset($_POST["selected-menu-choice"])){
    5961  $menu = sanitize_text_field($_POST["selected-menu-choice"]);
     62}
     63if(isset($_POST["menu-choice-nonce"])){
    6064  $nonce = sanitize_text_field($_POST["menu-choice-nonce"]);
     65}
    6166
    6267    if (!isset($nonce) || !wp_verify_nonce($nonce, basename(__FILE__))){
  • menu-choice/trunk/readme.txt

    r1656063 r1656098  
    55Requires at least: 3.0.1
    66Tested up to: 4.7
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    24245. When editing that page, select the menu name from the Menu Choice meta box on the side and update the page.
    25256. The selected menu will be displayed in the sidebar. Create different menus for different pages.
     26
     27== Screenshots ==
     28
     291. Drag the 'Menu Choice' widget to the desired widget area.
     302. Create the desired menu.
     313. 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.