Forum Replies Created

Viewing 1 replies (of 1 total)
  • Via https://qtranslate-x.com/support/index.php?topic=371.0

    Edit file in /wp-admin/nav-menus.php

    line 56

    //if ( isset( $_POST['nav-menu-data'] ) ) { << comment this
    //	$data = json_decode( stripslashes( $_POST['nav-menu-data'] ) ); << and this
    	if ( ! is_null( $data ) && $data ) {
    		foreach ( $data as $post_input_data ) {
    			// For input names that are arrays (e.g. <code>menu-item-db-id[3]</code>), derive the array path?keys via regex.
    			if ( preg_match( '#(.*)\[(\w+)\]#', $post_input_data->name, $matches ) ) {
    				if ( empty( $_POST[ $matches[1] ] ) ) {
    					$_POST[ $matches[1] ] = array();
    				}
    				// Cast input elements with a numeric array index to integers.
    				if ( is_numeric( $matches[2] ) ) {
    					$matches[2] = (int) $matches[2];
    				}
    				$_POST[ $matches[1] ][ $matches[2] ] = wp_slash( $post_input_data->value );
    			} else {
    				$_POST[ $post_input_data->name ] = wp_slash( $post_input_data->value );
    			}
    		}
    	//}

    << And This! for hide if

    Good luck and thank you hakangoker — Wait new ver. of qTranslate X

Viewing 1 replies (of 1 total)