Version Description
- Fixed fatal php error.
Download this release
Release Info
Developer | Benbodhi |
Plugin | SVG Support |
Version | 2.5.3 |
Comparing to | |
See all releases |
Code changes from version 2.5.2 to 2.5.3
- admin/admin-init.php +3 -3
- readme.txt +6 -1
- svg-support.php +2 -2
admin/admin-init.php
CHANGED
@@ -60,11 +60,11 @@ function bodhi_sanitize_fields( $value ) {
|
|
60 |
}
|
61 |
|
62 |
if( !isset($value['sanitize_on_upload_roles']) ) {
|
63 |
-
$value['sanitize_on_upload_roles'] = "none";
|
64 |
}
|
65 |
|
66 |
if( !isset($value['restrict']) ) {
|
67 |
-
$value['restrict'] = "none";
|
68 |
}
|
69 |
|
70 |
$value['css_target'] = esc_attr( sanitize_text_field( $value['css_target'] ) );
|
@@ -201,4 +201,4 @@ function bodhi_svgs_admin_footer_text( $default ) {
|
|
201 |
}
|
202 |
|
203 |
}
|
204 |
-
add_filter( 'admin_footer_text', 'bodhi_svgs_admin_footer_text' );
|
60 |
}
|
61 |
|
62 |
if( !isset($value['sanitize_on_upload_roles']) ) {
|
63 |
+
$value['sanitize_on_upload_roles'] = array("none");
|
64 |
}
|
65 |
|
66 |
if( !isset($value['restrict']) ) {
|
67 |
+
$value['restrict'] = array("none");
|
68 |
}
|
69 |
|
70 |
$value['css_target'] = esc_attr( sanitize_text_field( $value['css_target'] ) );
|
201 |
}
|
202 |
|
203 |
}
|
204 |
+
add_filter( 'admin_footer_text', 'bodhi_svgs_admin_footer_text' );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: svg, vector, safesvg, safe svg, sanitization, sanitisation, sanitizer, san
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 6.1.1
|
7 |
Requires PHP: 7.2
|
8 |
-
Stable tag: 2.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -161,6 +161,9 @@ You need to add the mime type for svg and svgz to: "MLA Settings > Media Library
|
|
161 |
|
162 |
== Changelog ==
|
163 |
|
|
|
|
|
|
|
164 |
= 2.5.2 =
|
165 |
* Added some defaults for better security by default.
|
166 |
|
@@ -383,6 +386,8 @@ You need to add the mime type for svg and svgz to: "MLA Settings > Media Library
|
|
383 |
|
384 |
|
385 |
== Upgrade Notice ==
|
|
|
|
|
386 |
|
387 |
= 2.5.2 =
|
388 |
Updating to 2.5+ Adds new features and addresses a number of earlier issues raised. Please take a backup before updating!
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 6.1.1
|
7 |
Requires PHP: 7.2
|
8 |
+
Stable tag: 2.5.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
161 |
|
162 |
== Changelog ==
|
163 |
|
164 |
+
= 2.5.3 =
|
165 |
+
* Fixed fatal php error.
|
166 |
+
|
167 |
= 2.5.2 =
|
168 |
* Added some defaults for better security by default.
|
169 |
|
386 |
|
387 |
|
388 |
== Upgrade Notice ==
|
389 |
+
Updating to 2.5+ Adds new features and addresses a number of earlier issues raised. Please take a backup before updating!
|
390 |
+
2.5.3 fixes fatal error in 2.5.2.
|
391 |
|
392 |
= 2.5.2 =
|
393 |
Updating to 2.5+ Adds new features and addresses a number of earlier issues raised. Please take a backup before updating!
|
svg-support.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SVG Support
|
4 |
Plugin URI: http://wordpress.org/plugins/svg-support/
|
5 |
Description: Upload SVG files to the Media Library and render SVG files inline for direct styling/animation of an SVG's internal elements using CSS/JS.
|
6 |
-
Version: 2.5.
|
7 |
Author: Benbodhi
|
8 |
Author URI: https://benbodhi.com
|
9 |
Text Domain: svg-support
|
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
22 |
/**
|
23 |
* Global variables
|
24 |
*/
|
25 |
-
$svgs_plugin_version = '2.5.
|
26 |
$plugin_file = plugin_basename(__FILE__); // plugin file for reference
|
27 |
define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
|
28 |
define( 'BODHI_SVGS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // define the plugin url for use in enqueue
|
3 |
Plugin Name: SVG Support
|
4 |
Plugin URI: http://wordpress.org/plugins/svg-support/
|
5 |
Description: Upload SVG files to the Media Library and render SVG files inline for direct styling/animation of an SVG's internal elements using CSS/JS.
|
6 |
+
Version: 2.5.3
|
7 |
Author: Benbodhi
|
8 |
Author URI: https://benbodhi.com
|
9 |
Text Domain: svg-support
|
22 |
/**
|
23 |
* Global variables
|
24 |
*/
|
25 |
+
$svgs_plugin_version = '2.5.3'; // for use on admin pages
|
26 |
$plugin_file = plugin_basename(__FILE__); // plugin file for reference
|
27 |
define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
|
28 |
define( 'BODHI_SVGS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // define the plugin url for use in enqueue
|