Skip to content

Commit

Permalink
Merge pull request #290 from threadi/fix/positionQueryWithoutLanguage
Browse files Browse the repository at this point in the history
fixed query for positions without language
threadi authored Aug 23, 2024
2 parents bf7708a + e7cf313 commit 580888e
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Helper.php
Original file line number Diff line number Diff line change
@@ -209,8 +209,8 @@ public static function get_shortcode_attributes( array $attribute_defaults, arra
// concat the lists.
$attributes = shortcode_atts( $attribute_defaults, $attributes );

// check if language-setting is valid.
if ( ! Languages::get_instance()->is_language_supported( $attributes['lang'] ) ) {
// check if language-setting is valid, if given.
if ( ! empty( $attributes['lang'] ) && ! Languages::get_instance()->is_language_supported( $attributes['lang'] ) ) {
$attributes['lang'] = Languages::get_instance()->get_fallback_language_name();
}

1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -515,3 +515,4 @@ Complete revision of the plugin. Please create a backup before installing versio

= 3.1.5 =
* Personio URL can now also insert without protocol (if https:// is missing)
* Fixed query for positions without specific language

0 comments on commit 580888e

Please sign in to comment.