Skip to content

Commit

Permalink
Issue #236
Browse files Browse the repository at this point in the history
  • Loading branch information
johnclause committed Sep 2, 2015
1 parent 758f825 commit 4e295db
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion admin/qtx_languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function qtranxf_update_config_header_css() {
$q_config['header_css'] = qtranxf_front_header_css_default();
}
if(!$q_config['header_css_on'] || !empty($header_css)){
qtranxf_add_warning(sprintf(__('A manual update to option "%s" or to the theme custom CSS may be needed, after some languages are changed.', 'qtranslate'), __('Head inline CSS', 'qtranslate')));
qtranxf_add_warning(sprintf(__('A manual update to option "%s" or to the theme custom CSS may be needed, after some languages are changed.', 'qtranslate'), __('Head inline CSS', 'qtranslate')).' '.__('If you do not wish to customize this option, then reset it to the default by emptying its value.', 'qtranslate'));
}
}

Expand Down
4 changes: 2 additions & 2 deletions admin/qtx_update_gettext_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function qtranxf_updateGettextDatabasesEx($force = false, $only_for_language = '
$result = translations_api( 'core', array( 'version' => $wp_version ));

if ( is_wp_error( $result ) ){
qtranxf_add_error(__( 'Gettext databases <strong>not</strong> updated:', 'qtranslate' ) . ' ' . $result->get_error_message());
qtranxf_add_warning(__( 'Gettext databases <strong>not</strong> updated:', 'qtranslate' ) . ' ' . $result->get_error_message());
return false;
}

Expand All @@ -55,7 +55,7 @@ function qtranxf_updateGettextDatabasesEx($force = false, $only_for_language = '
$result = $upgrader->upgrade( $translation, array( 'clear_update_cache' => false ));

if ( is_wp_error( $result ) ){
qtranxf_add_error(sprintf(__( 'Failed to update gettext database for "%s": %s', 'qtranslate' ), $q_config['language_name'][$lang], $result->get_error_message()));
qtranxf_add_warning(sprintf(__( 'Failed to update gettext database for "%s": %s', 'qtranslate' ), $q_config['language_name'][$lang], $result->get_error_message()));
++$errcnt;
}
}
Expand Down
4 changes: 2 additions & 2 deletions qtranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Version: 3.4.5
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
Expand Down Expand Up @@ -118,7 +118,7 @@
* Designed as interface for other plugin integration. The documentation is available at
* https://qtranslatexteam.wordpress.com/integration/
*/
define('QTX_VERSION','3.4.4');
define('QTX_VERSION','3.4.5');

if ( ! defined( 'QTRANSLATE_FILE' ) ) {
define( 'QTRANSLATE_FILE', __FILE__ );
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: johnclause, chineseleper, Vavooon, grafcom
Tags: multilingual, language, admin, tinymce, bilingual, widget, switcher, i18n, l10n, multilanguage, translation
Requires at least: 3.9
Tested up to: 4.3
Stable tag: 3.4.6
Stable tag: 3.4.5
License: GPLv3 or later
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QEXEK3HX8AR6U
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -100,6 +100,11 @@ Read [migration instructions](https://qtranslatexteam.wordpress.com/migration/ "

## Changelog ##

### 3.4.5 stable ###
* Enhancement: [Handle the CSRF vulnerability](https://github.com/qTranslate-Team/qtranslate-x/pull/230).
* Fix: Enable a language when gettext database fails to update on a private server: [Issue #236](https://github.com/qTranslate-Team/qtranslate-x/issues/236).


### 3.4.4 stable ###
* Fix: link 'View Page': [WP Topic](https://wordpress.org/support/topic/wpadminbar-view-page-returns-to-home-page).
* Fix: security exploit found by WordPress for vulnerable parameters `json_config_files` and `json_custom_i18n_config`.
Expand Down

0 comments on commit 4e295db

Please sign in to comment.