Skip to content

Commit

Permalink
Fix: WPML translations do not work when using the template as a short…
Browse files Browse the repository at this point in the history
…code. (#159)
  • Loading branch information
Nikschavan committed Jun 17, 2019
1 parent c9e0f05 commit f7bf4c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-header-footer-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function render_template( $atts ) {
'hfe_template'
);

$id = ! empty( $atts['id'] ) ? intval( $atts['id'] ) : '';
$id = ! empty( $atts['id'] ) ? apply_filters( 'hfe_render_template_id', intval( $atts['id'] ) ) : '';

if ( empty( $id ) ) {
return '';
Expand Down
1 change: 1 addition & 0 deletions inc/compatibility/class-hfe-wpml-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static function instance() {
private function __construct() {
add_filter( 'hfe_get_settings_type_header', array( $this, 'get_wpml_object' ) );
add_filter( 'hfe_get_settings_type_footer', array( $this, 'get_wpml_object' ) );
add_filter( 'hfe_render_template_id', array( $this, 'get_wpml_object' ) );
}

/**
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ If the above is nnot possible, You can also add support for the plugin from your

== Changelog ==

= Unreleased
- Fix: WPML Translations do not work when using the Elementor Template as a shortcode.

= 1.1.2 =
- Fix: Depracated function warning from Elementor's method `\Elementor\Post_CSS_File`

Expand Down

0 comments on commit f7bf4c2

Please sign in to comment.