From ba43331a00cf43e56f0fd5f7710d91c24abe68a8 Mon Sep 17 00:00:00 2001 From: johnclause Date: Sat, 23 Apr 2016 15:47:50 -0700 Subject: [PATCH] fix for newly added menu item --- admin/qtx_admin_utils.php | 3 +++ qtranslate.php | 4 ++-- readme.txt | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/admin/qtx_admin_utils.php b/admin/qtx_admin_utils.php index a01ca6aa..911bfdbb 100644 --- a/admin/qtx_admin_utils.php +++ b/admin/qtx_admin_utils.php @@ -636,6 +636,9 @@ function qtranxf_admin_category_description($text) { add_filter('category_description', 'qtranxf_admin_category_description',0); function qtranxf_admin_the_title($title) { + //todo this filter should not be used in admin area at all? + if(defined('DOING_AJAX') && DOING_AJAX)//nav-menus.php#752 + return $title; global $pagenow; switch($pagenow){ //case 'term.php': diff --git a/qtranslate.php b/qtranslate.php index df650f45..e564fe8f 100644 --- a/qtranslate.php +++ b/qtranslate.php @@ -3,7 +3,7 @@ Plugin Name: qTranslate-X Plugin URI: http://wordpress.org/plugins/qtranslate-x/ Description: Adds user-friendly and database-friendly multilingual content support. -Version: 3.4.6.5 +Version: 3.4.6.6 Author: qTranslate Team Author URI: http://qtranslatexteam.wordpress.com/about Tags: multilingual, multi, language, admin, tinymce, Polyglot, bilingual, widget, switcher, professional, human, translation, service, qTranslate, zTranslate, mqTranslate, qTranslate Plus, WPML @@ -121,7 +121,7 @@ * Designed as interface for other plugin integration. The documentation is available at * https://qtranslatexteam.wordpress.com/integration/ */ -define('QTX_VERSION','3.4.6.5'); +define('QTX_VERSION','3.4.6.6'); if ( ! defined( 'QTRANSLATE_FILE' ) ) { define( 'QTRANSLATE_FILE', __FILE__ ); diff --git a/readme.txt b/readme.txt index 5783c8b3..6a050723 100644 --- a/readme.txt +++ b/readme.txt @@ -118,6 +118,9 @@ This version recovers translation of parent of a category on category edit page. ## Changelog ## +### 3.4.6.6 ### +* Fix: WP45, '/wp-admin/nav-menus.php': title of newly added menu item kept one language only. + ### 3.4.6.5 ### * Improvement: Option 'Show language names in "Camel Case"' has been added on Settings/Languages page `/wp-admin/options-general.php?page=qtranslate-x#general` in order to handle absence of function `mb_convert_case`, as PHP module `mbstring` may not be installed by default: [WP Topic](https://wordpress.org/support/topic/qtranslate_utilsphp-on-line-504). * Enhancement: added preset for Welsh (Cymraeg, 'cy') language.