Version Description
- Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.
Download this release
Release Info
Developer | Benbodhi |
Plugin | SVG Support |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.2.1
- functions/thumbnail-display.php +3 -2
- readme.txt +11 -3
- svg-support.php +2 -2
functions/thumbnail-display.php
CHANGED
@@ -12,7 +12,8 @@ function bodhi_svgs_display_thumbs() {
|
|
12 |
|
13 |
ob_start();
|
14 |
|
15 |
-
add_action( 'shutdown',
|
|
|
16 |
|
17 |
$final = '';
|
18 |
$ob_levels = count( ob_get_level() );
|
@@ -25,7 +26,7 @@ function bodhi_svgs_display_thumbs() {
|
|
25 |
|
26 |
echo apply_filters( 'final_output', $final );
|
27 |
|
28 |
-
}
|
29 |
|
30 |
add_filter( 'final_output', function( $content ) {
|
31 |
|
12 |
|
13 |
ob_start();
|
14 |
|
15 |
+
add_action( 'shutdown', 'bodhi_svgs_thumbs_filter', 0 );
|
16 |
+
function bodhi_svgs_thumbs_filter() {
|
17 |
|
18 |
$final = '';
|
19 |
$ob_levels = count( ob_get_level() );
|
26 |
|
27 |
echo apply_filters( 'final_output', $final );
|
28 |
|
29 |
+
}
|
30 |
|
31 |
add_filter( 'final_output', function( $content ) {
|
32 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: svg, vector, css, style, mime, mime type, embed, img, inline
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -70,7 +70,7 @@ For translating I recommend ["Loco Translate" plugin](https://wordpress.org/plug
|
|
70 |
* I am open to your suggestions and feedback - Thanks for checking out this plugin!
|
71 |
* Drop me a line [@benbodhi](http://twitter.com/benbodhi) or [@GoWebben](http://twitter.com/gowebben) on Twitter
|
72 |
* Follow me on [my Facebook page](http://www.facebook.com/gowebben)
|
73 |
-
* Or circle [+GoWebben](
|
74 |
|
75 |
*Note:* This is the second plugin I have submitted to the WordPress repository, I hope you like it. Please take a moment to rate it and click 'works' under compatibility with your version of WordPress.<br />
|
76 |
As always, feel free to send me any suggestions.
|
@@ -105,10 +105,14 @@ I will put the answers to any questions asked here.
|
|
105 |
== Screenshots ==
|
106 |
|
107 |
1. Activated plugin
|
108 |
-
2. Admin settings page
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
112 |
= 2.2 =
|
113 |
|
114 |
* Added support to make SVG thumbnails visible in all media library screens.
|
@@ -174,6 +178,10 @@ I will put the answers to any questions asked here.
|
|
174 |
|
175 |
== Upgrade Notice ==
|
176 |
|
|
|
|
|
|
|
|
|
177 |
= 2.2 =
|
178 |
|
179 |
* Significant changes, added functionality, please BACKUP BEFORE UPDATING just in case.
|
4 |
Tags: svg, vector, css, style, mime, mime type, embed, img, inline
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 2.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
70 |
* I am open to your suggestions and feedback - Thanks for checking out this plugin!
|
71 |
* Drop me a line [@benbodhi](http://twitter.com/benbodhi) or [@GoWebben](http://twitter.com/gowebben) on Twitter
|
72 |
* Follow me on [my Facebook page](http://www.facebook.com/gowebben)
|
73 |
+
* Or circle [+GoWebben](https://plus.google.com/+Gowebben/) on Google Plus ;-)
|
74 |
|
75 |
*Note:* This is the second plugin I have submitted to the WordPress repository, I hope you like it. Please take a moment to rate it and click 'works' under compatibility with your version of WordPress.<br />
|
76 |
As always, feel free to send me any suggestions.
|
105 |
== Screenshots ==
|
106 |
|
107 |
1. Activated plugin
|
108 |
+
2. Admin settings page (with new settings since V2.2)
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 2.2.1 =
|
113 |
+
|
114 |
+
* Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.
|
115 |
+
|
116 |
= 2.2 =
|
117 |
|
118 |
* Added support to make SVG thumbnails visible in all media library screens.
|
178 |
|
179 |
== Upgrade Notice ==
|
180 |
|
181 |
+
= 2.2.1 =
|
182 |
+
|
183 |
+
* Minor change to remove anonymous function that triggered a fatal error in older PHP versions.
|
184 |
+
|
185 |
= 2.2 =
|
186 |
|
187 |
* Significant changes, added functionality, please BACKUP BEFORE UPDATING just in case.
|
svg-support.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SVG Support
|
4 |
Plugin URI: http://wordpress.org/plugins/svg-support/
|
5 |
Description: Allow SVG file uploads using the WordPress Media Library uploader plus direct styling of SVG elements using CSS.
|
6 |
-
Version: 2.2
|
7 |
Author: Benbodhi
|
8 |
Author URI: http://benbodhi.com
|
9 |
Text Domain: svgsupport
|
@@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
35 |
/********************************************
|
36 |
* GLOBAL VARIABLES
|
37 |
********************************************/
|
38 |
-
$plugin_version = '2.2'; // for use on admin pages
|
39 |
$plugin_file = plugin_basename(__FILE__); // plugin file for reference
|
40 |
define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
|
41 |
$bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table
|
3 |
Plugin Name: SVG Support
|
4 |
Plugin URI: http://wordpress.org/plugins/svg-support/
|
5 |
Description: Allow SVG file uploads using the WordPress Media Library uploader plus direct styling of SVG elements using CSS.
|
6 |
+
Version: 2.2.1
|
7 |
Author: Benbodhi
|
8 |
Author URI: http://benbodhi.com
|
9 |
Text Domain: svgsupport
|
35 |
/********************************************
|
36 |
* GLOBAL VARIABLES
|
37 |
********************************************/
|
38 |
+
$plugin_version = '2.2.1'; // for use on admin pages
|
39 |
$plugin_file = plugin_basename(__FILE__); // plugin file for reference
|
40 |
define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
|
41 |
$bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table
|