If Menu – Visibility control for Menu Items - Version 0.2.1

Version Description

Minor fixes

  • Fix - Editing menus - show/hide conditions when adding new item (thanks Joseph Segal)
Download this release

Release Info

Developer andrei.igna
Plugin Icon 128x128 If Menu – Visibility control for Menu Items
Version 0.2.1
Comparing to
See all releases

Code changes from version 0.2 to 0.2.1

Files changed (3) hide show
  1. if-menu.js +3 -3
  2. if-menu.php +1 -1
  3. readme.txt +6 -0
if-menu.js CHANGED
@@ -1,7 +1,7 @@
1
  jQuery( function( $ ) {
2
 
3
- $( '.menu-item-if-menu-enable' ).change( function() {
4
- $( this ).closest( '.if-menu-enable' ).next().toggle( $( this ).prop( 'checked' ) );
5
- } );
6
 
7
  } );
1
  jQuery( function( $ ) {
2
 
3
+ $( 'body' ).on( 'change', '.menu-item-if-menu-enable', function() {
4
+ $( this ).closest( '.if-menu-enable' ).next().toggle( $( this ).prop( 'checked' ) );
5
+ } );
6
 
7
  } );
if-menu.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: If Menu
4
  Plugin URI: http://wordpress.org/plugins/if-menu/
5
  Description: Show/hide menu items with conditional statements
6
- Version: 0.2
7
  Author: Andrei Igna
8
  Author URI: http://rokm.ro
9
  License: GPL2
3
  Plugin Name: If Menu
4
  Plugin URI: http://wordpress.org/plugins/if-menu/
5
  Description: Show/hide menu items with conditional statements
6
+ Version: 0.2.1
7
  Author: Andrei Igna
8
  Author URI: http://rokm.ro
9
  License: GPL2
readme.txt CHANGED
@@ -61,6 +61,12 @@ WordPress provides [a lot of functions](http://codex.wordpress.org/Conditional_T
61
 
62
  == Changelog ==
63
 
 
 
 
 
 
 
64
  = 0.2 =
65
 
66
  Update for compatibility with newer versions of WordPress
61
 
62
  == Changelog ==
63
 
64
+ = 0.2.1 =
65
+
66
+ Minor fixes
67
+
68
+ * [Fix](https://twitter.com/joesegal/status/480386235249082368) - Editing menus - show/hide conditions when adding new item (thanks [Joseph Segal](https://twitter.com/joesegal))
69
+
70
  = 0.2 =
71
 
72
  Update for compatibility with newer versions of WordPress