Skip to content

Commit

Permalink
fixed : quotes not being properly escaped in the customizer, leading …
Browse files Browse the repository at this point in the history
…to issues with some languages

v3.3.2 build
  • Loading branch information
nikeo committed Dec 21, 2016
1 parent 7fe79ab commit ab3894e
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 16 deletions.
12 changes: 6 additions & 6 deletions functions/czr/czr-resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ function hu_extend_ctrl_dependencies() {
_maybe_print_html = function() {
if ( $( '.' + _class , api.control(wpServusId).container ).length )
return;
var _html = '<span class="description customize-control-description ' + _class +'"><?php echo $_front_page_content_notice; ?></span>';
api.control(wpServusId).container.find('.customize-control-title').after( _html );
var _html = '<span class="description customize-control-description ' + _class +'"><?php echo html_entity_decode( $_front_page_content_notice ); ?></span>';
api.control(wpServusId).container.find('.customize-control-title').after( $.parseHTML( _html ) );
};

if ( 'show_on_front' == servusShortId ) {
Expand Down Expand Up @@ -333,10 +333,10 @@ function hu_extend_ctrl_dependencies() {
return;
var _html = [
'<span class="description customize-control-description hu-header-image-notice">',
'<?php echo $_header_img_notice; ?>',
'<?php echo html_entity_decode( $_header_img_notice ); ?>',
'</span>'
].join('');
api.control(wpServusId).container.find('.customize-control-title').after( _html );
api.control(wpServusId).container.find('.customize-control-title').after( $.parseHTML( _html ) );
}
break;
}
Expand Down Expand Up @@ -429,7 +429,7 @@ function hu_extend_ctrl_dependencies() {
_toggle_menu_notice = function( show ) {
var $menu_panel_content = api.panel('nav_menus').container.find('.control-panel-content'),
notice_rendered = 0 !== $menu_panel_content.find( '.' + _notice_selector ).length,
_html = '<p class="description customize-control-description ' + _notice_selector +'"><?php echo $_header_menu_notice; ?></p>',
_html = '<p class="description customize-control-description ' + _notice_selector +'"><?php echo html_entity_decode( $_header_menu_notice ); ?></p>',
_render_notice = function() {
//defer the rendering when all sections of this panel have been embedded
$.when.apply(
Expand All @@ -446,7 +446,7 @@ function hu_extend_ctrl_dependencies() {
})
)
.then( function() {
$menu_panel_content.append( _html );
$menu_panel_content.append( $.parseHTML( _html ) );
});
},
_toggle_notice = function() {
Expand Down
2 changes: 1 addition & 1 deletion languages/es_VE.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: Hueman v3.3.1\n"
"Project-Id-Version: Hueman v3.3.2\n"
"POT-Creation-Date: 2016-05-30 08:46+0200\n"
"PO-Revision-Date: 2016-05-30 08:46+0200\n"
"Last-Translator: José Subero | @arawako and Ernesto Chapon <jose.Language-"
Expand Down
2 changes: 1 addition & 1 deletion languages/hr_HR.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: Hueman v3.3.1\n"
"Project-Id-Version: Hueman v3.3.2\n"
"POT-Creation-Date: 2016-05-30 08:47+0200\n"
"PO-Revision-Date: 2016-05-30 08:47+0200\n"
"Last-Translator: zcuric <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion languages/id_ID.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: Hueman v3.3.1\n"
"Project-Id-Version: Hueman v3.3.2\n"
"POT-Creation-Date: 2016-08-31 16:10+0200\n"
"PO-Revision-Date: 2016-08-31 16:10+0200\n"
"Last-Translator: \n"
Expand Down
2 changes: 1 addition & 1 deletion languages/pt_BR.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: Hueman v3.3.1\n"
"Project-Id-Version: Hueman v3.3.2\n"
"POT-Creation-Date: 2016-05-30 08:47+0200\n"
"PO-Revision-Date: 2016-05-30 08:47+0200\n"
"Last-Translator: Elvis Henrique Pereira <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion languages/ru_RU.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: Hueman v3.3.1\n"
"Project-Id-Version: Hueman v3.3.2\n"
"POT-Creation-Date: 2016-11-09 09:47+0100\n"
"PO-Revision-Date: 2016-11-09 09:47+0100\n"
"Last-Translator: kirill belotserkovskiy <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion languages/tr_TR.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: Hueman v3.3.1\n"
"Project-Id-Version: Hueman v3.3.2\n"
"POT-Creation-Date: 2016-05-30 08:47+0200\n"
"PO-Revision-Date: 2016-05-30 08:47+0200\n"
"Last-Translator: Mertcan <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hueman",
"version": "3.3.1",
"version": "3.3.2",
"description": "Hueman is a mobile friendly WordPress theme for blogs, magazines and business websites. It's been designed to beautifully display pictures and text content, and engineered to be easy to use and fast. The Hueman theme helps you attract and retain more visitors, that's why it's already used by 70K+ active websites in the world and has received hundreds of five stars ratings.",
"author": "nikeo",
"license": "GNU GPL v3.0",
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hueman v3.3.1
# Hueman v3.3.2
![Hueman - Free Wordpress Theme](/screenshot.png)

> Hueman is a mobile friendly WordPress theme for blogs, magazines and business websites. It's been designed to beautifully display pictures and text content, and engineered to be easy to use and fast. The Hueman theme helps you attract and retain more visitors, that's why it's already used by 70K+ active websites in the world and has received hundreds of five stars ratings.
Expand Down Expand Up @@ -82,6 +82,9 @@ Right sidebar, top to bottom:
See headers of files for further details.

## Changelog
= 3.3.2 December 21st 2016 =
* fixed : quotes not being properly escaped in the customizer, leading to issues with some languages

= 3.3.1 December 19th 2016 =
* fixed : customizer frozen in an infinite load in some specific cases
* improved : featured-posts-include is displayed in the customizer only when is_home() context
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hueman v3.3.1
# Hueman v3.3.2
![Hueman - Free Wordpress Theme](/screenshot.png)

> Hueman is a mobile friendly WordPress theme for blogs, magazines and business websites. It's been designed to beautifully display pictures and text content, and engineered to be easy to use and fast. The Hueman theme helps you attract and retain more visitors, that's why it's already used by 70K+ active websites in the world and has received hundreds of five stars ratings.
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Theme Name: Hueman
Theme URI: http://presscustomizr.com/hueman/
Version: 3.3.1
Version: 3.3.2
Description: Hueman is a mobile friendly WordPress theme for blogs, magazines and business websites. It's been designed to beautifully display pictures and text content, and engineered to be easy to use and fast. The Hueman theme helps you attract and retain more visitors, that's why it's already used by 70K+ active websites in the world and has received hundreds of five stars ratings.
Author: nikeo
Author URI: http://presscustomizr.com
Expand Down

0 comments on commit ab3894e

Please sign in to comment.