Safe SVG - Version 1.9.4

Version Description

  • Fixed a bug causing lots of error log output to do with safe_svg::fix_direct_image_output()
Download this release

Release Info

Developer enshrined
Plugin Icon 128x128 Safe SVG
Version 1.9.4
Comparing to
See all releases

Code changes from version 1.9.3 to 1.9.4

Files changed (2) hide show
  1. readme.txt +5 -2
  2. safe-svg.php +2 -2
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: svg, sanitize, upload, sanitise, security, svg upload, image, vector, file
5
  Requires at least: 4.0
6
  Tested up to: 5.1
7
  Requires PHP: 5.6
8
- Stable tag: 1.9.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -62,8 +62,11 @@ They take one argument that must be returned. See below for examples:
62
 
63
  == Changelog ==
64
 
 
 
 
65
  = 1.9.3 =
66
- * Fixed a bug cusing 0 height and width SVGs
67
 
68
  = 1.9.2 =
69
  * Fixed a warning about an Illegal string offset
5
  Requires at least: 4.0
6
  Tested up to: 5.1
7
  Requires PHP: 5.6
8
+ Stable tag: 1.9.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
62
 
63
  == Changelog ==
64
 
65
+ = 1.9.4 =
66
+ * Fixed a bug causing lots of error log output to do with `safe_svg::fix_direct_image_output()`
67
+
68
  = 1.9.3 =
69
+ * Fixed a bug causing 0 height and width SVGs
70
 
71
  = 1.9.2 =
72
  * Fixed a warning about an Illegal string offset
safe-svg.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Safe SVG
4
  Plugin URI: https://wpsvg.com/
5
  Description: Allows SVG uploads into WordPress and sanitizes the SVG before saving it
6
- Version: 1.9.3
7
  Author: Daryll Doyle
8
  Author URI: http://enshrined.co.uk
9
  Text Domain: safe-svg
@@ -455,7 +455,7 @@ if ( ! class_exists( 'safe_svg' ) ) {
455
  * @param string|array $size Requested size. Image size or array of width and height values
456
  * (in that order). Default 'thumbnail'.
457
  */
458
- public function fix_direct_image_output( $attr, $attachment, $size ) {
459
 
460
  // If we're not getting a WP_Post object, bail early.
461
  // @see https://wordpress.org/support/topic/notice-trying-to-get-property-id/
3
  Plugin Name: Safe SVG
4
  Plugin URI: https://wpsvg.com/
5
  Description: Allows SVG uploads into WordPress and sanitizes the SVG before saving it
6
+ Version: 1.9.4
7
  Author: Daryll Doyle
8
  Author URI: http://enshrined.co.uk
9
  Text Domain: safe-svg
455
  * @param string|array $size Requested size. Image size or array of width and height values
456
  * (in that order). Default 'thumbnail'.
457
  */
458
+ public function fix_direct_image_output( $attr, $attachment, $size = 'thumbnail' ) {
459
 
460
  // If we're not getting a WP_Post object, bail early.
461
  // @see https://wordpress.org/support/topic/notice-trying-to-get-property-id/