The returned string is correctly: Hello <strong>World</strong>.
However, given the following call:
_i('Hello %sWorld%s', '', '');
I would expect the returned string to be Hello World but in fact it's Hello %sWorld%s.
This seems to be caused by the if (!empty($args)) { line in Support/helpers.php because the string is empty. Instead of empty(), the check should be against null.
Given the following call:
_i('Hello %sWorld%s', '<strong>', '</strong>');
The returned string is correctly:
Hello <strong>World</strong>
.However, given the following call:
_i('Hello %sWorld%s', '', '');
I would expect the returned string to be
Hello World
but in fact it'sHello %sWorld%s
.This seems to be caused by the
if (!empty($args)) {
line inSupport/helpers.php
because the string is empty. Instead ofempty()
, the check should be againstnull
.