This solves a somewhat thorny problem in inc/postHead.php, which had two syntax errors on line 8.
The first was mis-matched parentheses, and was relatively easy to resolve.
The second was that the empty() function cannot be called on the results of a function, but only on a pre-defined variable. So, this PR first calls get_bloginfo() and stores the result in a temporary variable, and then applies empty() on that.
The message from the syntax checker, for the record, was:
PHP Fatal error: Can't use function return value in write context in ./inc/postHead.php on line 8
Fatal error: Can't use function return value in write context in ./inc/postHead.php on line 8
Errors parsing ./inc/postHead.php
Tagging @frrrances for code review.
This solves a somewhat thorny problem in inc/postHead.php, which had two syntax errors on line 8.
The first was mis-matched parentheses, and was relatively easy to resolve.
The second was that the
empty()
function cannot be called on the results of a function, but only on a pre-defined variable. So, this PR first callsget_bloginfo()
and stores the result in a temporary variable, and then appliesempty()
on that.The message from the syntax checker, for the record, was:
Looking at the documentation for
empty()
at http://php.net/manual/en/function.empty.php there's a note: