SVG Support - Version 2.3.3

Version Description

  • Fix: Missing arguments PHP warnings from new attribute control file.
  • Update settings page text.
Download this release

Release Info

Developer Benbodhi
Plugin Icon 128x128 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 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. Please note, it will currently also add the class to normal images (png, jpg, gif) that are not SVG files when you insert them.', 'svg-support' ); ?></small>
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, $id, $caption, $title, $align, $url, $size, $alt='' ) {
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.2
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.2
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.2'; // 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
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