Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG Cast image dimensions from shortcode as int to avoid exception wh…
…en dimensions are not numeric (#436) * Cast image dimensions from shortcode as int This prevents sizes like '50%' from triggering exceptions. Fixes #434 (or at least prevents an exception) * Add a test for non-integer imagesize handling in shortcodes Quick/first attempt... * Escape legit percent sign in sprintf string Co-authored-by: Maxime Rainville <maxime@rainville.me>
- Loading branch information
1 parent
3535311
commit 4018329
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters