Version Description
- Fix: Missing arguments PHP warnings from new attribute control file.
- Update settings page text.
Download this release
Release Info
Developer | Benbodhi |
Plugin | SVG Support |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3.2 to 2.3.3
- admin/svgs-settings-page.php +1 -1
- functions/attribute-control.php +1 -1
- readme.txt +10 -1
- svg-support.php +2 -2
admin/svgs-settings-page.php
CHANGED
@@ -84,7 +84,7 @@
|
|
84 |
<td>
|
85 |
<?php printf(
|
86 |
'<input id="bodhi_svgs_settings[auto_insert_class]" name="bodhi_svgs_settings[auto_insert_class]" type="checkbox" %2$s />', 'bodhi_svgs_settings_auto_insert_class', checked( isset( $bodhi_svgs_options['auto_insert_class'] ), true, false ) ); ?>
|
87 |
-
<?php _e( 'Yes', 'svg-support' ); ?><br /><small class="description"><?php _e(' Checking this will make sure that either the default class or the custom one you set below is inserted into the style attributes of <code>img</code> tags when you insert images. Additionally, it will remove all of the default WordPress classes.
|
88 |
</td>
|
89 |
</tr>
|
90 |
<tr valign="top" class="svgs-advanced">
|
84 |
<td>
|
85 |
<?php printf(
|
86 |
'<input id="bodhi_svgs_settings[auto_insert_class]" name="bodhi_svgs_settings[auto_insert_class]" type="checkbox" %2$s />', 'bodhi_svgs_settings_auto_insert_class', checked( isset( $bodhi_svgs_options['auto_insert_class'] ), true, false ) ); ?>
|
87 |
+
<?php _e( 'Yes', 'svg-support' ); ?><br /><small class="description"><?php _e(' Checking this will make sure that either the default class or the custom one you set below is inserted into the style attributes of <code>img</code> tags when you insert SVG images. Additionally, it will remove all of the default WordPress classes. It will leave normal image types as default and only affect SVG files.', 'svg-support' ); ?></small>
|
88 |
</td>
|
89 |
</tr>
|
90 |
<tr valign="top" class="svgs-advanced">
|
functions/attribute-control.php
CHANGED
@@ -14,7 +14,7 @@ if ( bodhi_svgs_advanced_mode() ) {
|
|
14 |
/**
|
15 |
* Strip HTML of all attributes and add custom class if the file is .svg
|
16 |
*/
|
17 |
-
function bodhi_svgs_auto_insert_class( $html, $
|
18 |
|
19 |
global $bodhi_svgs_options;
|
20 |
|
14 |
/**
|
15 |
* Strip HTML of all attributes and add custom class if the file is .svg
|
16 |
*/
|
17 |
+
function bodhi_svgs_auto_insert_class( $html, $alt='' ) {
|
18 |
|
19 |
global $bodhi_svgs_options;
|
20 |
|
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, animation
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.8-alpha-39901
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -138,6 +138,11 @@ If you are using SVG Support with Visual Composer or any other page builders, yo
|
|
138 |
|
139 |
== Changelog ==
|
140 |
|
|
|
|
|
|
|
|
|
|
|
141 |
= 2.3.2 =
|
142 |
|
143 |
* Modified the attribute control code that auto inserts our class to only apply to SVG files.
|
@@ -255,6 +260,10 @@ If you are using SVG Support with Visual Composer or any other page builders, yo
|
|
255 |
|
256 |
== Upgrade Notice ==
|
257 |
|
|
|
|
|
|
|
|
|
258 |
= 2.3.2 =
|
259 |
|
260 |
* Changes to the way the auto class insert works.
|
4 |
Tags: svg, vector, css, style, mime, mime type, embed, img, inline, animation
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.8-alpha-39901
|
7 |
+
Stable tag: 2.3.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
138 |
|
139 |
== Changelog ==
|
140 |
|
141 |
+
= 2.3.3 =
|
142 |
+
|
143 |
+
* Fix: Missing arguments PHP warnings from new attribute control file.
|
144 |
+
* Update settings page text.
|
145 |
+
|
146 |
= 2.3.2 =
|
147 |
|
148 |
* Modified the attribute control code that auto inserts our class to only apply to SVG files.
|
260 |
|
261 |
== Upgrade Notice ==
|
262 |
|
263 |
+
= 2.3.3 =
|
264 |
+
|
265 |
+
* This update fixes some PHP warnings introduced in 2.3.2 and also has updated settings page text.
|
266 |
+
|
267 |
= 2.3.2 =
|
268 |
|
269 |
* Changes to the way the auto class insert works.
|
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 the ability to inline SVG files for direct targeting of SVG elements for CSS and JS.
|
6 |
-
Version: 2.3.
|
7 |
Author: Benbodhi
|
8 |
Author URI: http://benbodhi.com
|
9 |
Text Domain: svg-support
|
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
22 |
/**
|
23 |
* Global variables
|
24 |
*/
|
25 |
-
$svgs_plugin_version = '2.3.
|
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: Allow SVG file uploads using the WordPress Media Library uploader plus the ability to inline SVG files for direct targeting of SVG elements for CSS and JS.
|
6 |
+
Version: 2.3.3
|
7 |
Author: Benbodhi
|
8 |
Author URI: http://benbodhi.com
|
9 |
Text Domain: svg-support
|
22 |
/**
|
23 |
* Global variables
|
24 |
*/
|
25 |
+
$svgs_plugin_version = '2.3.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
|