We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I use the @image directive like such...
@image($image, $image_size)
It generates the following code...
<?php echo wp_get_attachment_image( $image, $image_size, false, ); ?>
This causes a fatal error on my server due to the trailing comma:
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: syntax error, unexpected ')'
The text was updated successfully, but these errors were encountered:
Yeah, that requires PHP 7.2 if I recall. My mistake.
Care to do a PR?
Sorry, something went wrong.
I don't have much experience with creating directives, but I'll take a look.
I ended up just upping my PHP version to fix the issue.
Successfully merging a pull request may close this issue.
When I use the @image directive like such...
@image($image, $image_size)
It generates the following code...
This causes a fatal error on my server due to the trailing comma:
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: syntax error, unexpected ')'
The text was updated successfully, but these errors were encountered: