Viewing 2 replies - 31 through 32 (of 32 total)
  • No problem. I wrote the developer asking if he was interested in some help managing it.

    Here’s the fixed function:

    function update_option( $menu_id, $menu_item_db_id, $args ) {
    	$meta_value = get_post_meta( $menu_item_db_id, '_menu_item_visibility', true );
    	if ( isset( $_POST[ 'menu-item-visibility' ][ $menu_item_db_id ] ) ) {
    		$new_meta_value = stripcslashes( $_POST['menu-item-visibility'][$menu_item_db_id] );
    		if( '' == $new_meta_value ) {
    			delete_post_meta( $menu_item_db_id, '_menu_item_visibility', $meta_value );
    		}
    		elseif( $meta_value !== $new_meta_value ) {
    			update_post_meta( $menu_item_db_id, '_menu_item_visibility', $new_meta_value );
    		}
    	}
    }
    Plugin Author shazdeh

    (@shazdeh)

    Hi guys!
    Sorry for the delay in response (I don’t get notifications on support threads ?? ). Just pushed an update to fix an issue with Customizer wiping out the Visibility field when saving, it should fix this as well. ??

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘WordPress 4.3’ is closed to new replies.