Skip to content

Commit

Permalink
Update PluginOptions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakiboy committed May 24, 2020
1 parent 81cfae6 commit 547a8f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/PluginOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ public function translateString($string = '')
*/
public function translateVar($string = '', $var = null)
{
$var = preg_replace('/\s+/', $this->translateString('{Empty}'), $var);
return sprintf( $this->translateString(str_replace($var, '%s', $string)), $var);
}

Expand Down

0 comments on commit 547a8f4

Please sign in to comment.