Plugin Directory

Changeset 760410


Ignore:
Timestamp:
08/21/2013 10:07:10 PM (12 years ago)
Author:
Faison
Message:

Bug Fix: saving null for a Nav Menu Field doesn't save "null" anymore

Location:
advanced-custom-fields-nav-menu-field
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • advanced-custom-fields-nav-menu-field/trunk/nav-menu-v4.php

    r726704 r760410  
    104104            'name'      =>  'fields['.$key.'][container]',
    105105            'value'     =>  $field['container'],
    106             'layout'    =>  'horizontal',
    107106            'choices'   =>  $choices
    108107        ));
     
    160159        if( $field['allow_null'] )
    161160        {
    162             echo '<option value="null"> - Select - </option>';
     161            echo '<option value=""> - Select - </option>';
    163162        }
    164163
  • advanced-custom-fields-nav-menu-field/trunk/readme.txt

    r726704 r760410  
    66Requires at least: 3.4
    77Tested up to: 3.5.1
    8 Stable tag: 1.1.1
     8Stable tag: 1.1.2
    99License: GPL2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
     81= 1.1.2 =
     82* Fixed a silly mistake related to allowing Null for a Nav Menu Field. Basically, it was storing the string "null" when you don't select a menu, that's taken care of now.
     83
    8184= 1.1.1 =
    8285* I forgot to add a default value for the Menu Container field, so I added 'div' as the default value. If you upgraded from 1.0.0 to 1.1.0 and had WP_DEBUG enabled, you would receive a warning about an unknown index. Since I like debug mode to run without warnings, I fixed this.
Note: See TracChangeset for help on using the changeset viewer.