SVG Support - Version 2.3.15

Version Description

  • Had to roll back a recent PHP warnings fix due to it breaking some theme compatibility.
Download this release

Release Info

Developer Benbodhi
Plugin Icon 128x128 SVG Support
Version 2.3.15
Comparing to
See all releases

Code changes from version 2.3.14 to 2.3.15

admin/svgs-settings-page.php CHANGED
@@ -70,7 +70,7 @@
70
  <td>
71
  <?php printf(
72
  '<input id="bodhi_svgs_settings[restrict]" name="bodhi_svgs_settings[restrict]" type="checkbox" %2$s />', 'bodhi_svgs_settings_restrict', checked( isset( $bodhi_svgs_options['restrict'] ), true, false ) ); ?>
73
- <?php _e( 'Yes', 'svg-support' ); ?><br /><small class="description"><?php _e(' Restricts SVG upload priveledges to Administrators.', 'svg-support' ); ?></small>
74
  </td>
75
  </tr>
76
 
70
  <td>
71
  <?php printf(
72
  '<input id="bodhi_svgs_settings[restrict]" name="bodhi_svgs_settings[restrict]" type="checkbox" %2$s />', 'bodhi_svgs_settings_restrict', checked( isset( $bodhi_svgs_options['restrict'] ), true, false ) ); ?>
73
+ <?php _e( 'Yes', 'svg-support' ); ?><br /><small class="description"><?php _e(' Restricts SVG upload privileges to Administrators.', 'svg-support' ); ?></small>
74
  </td>
75
  </tr>
76
 
config.codekit3 CHANGED
@@ -284,6 +284,17 @@
284
  "oA": 2,
285
  "oAP": "\/svg-support.php",
286
  "oF": 0
 
 
 
 
 
 
 
 
 
 
 
287
  }
288
  },
289
  "hooks": [
@@ -294,7 +305,7 @@
294
  "creationDate": 507572464,
295
  "displayValue": "svg-support",
296
  "displayValueWasSetByUser": 0,
297
- "iconImageName": "meme-ariel",
298
  "iconImageWasSetByUser": 0
299
  },
300
  "projectSettings": {
284
  "oA": 2,
285
  "oAP": "\/svg-support.php",
286
  "oF": 0
287
+ },
288
+ "\/svg-support.png": {
289
+ "ft": 32768,
290
+ "iS": 38215,
291
+ "oA": 0,
292
+ "oAP": "\/svg-support.png",
293
+ "oF": 0,
294
+ "oIPL": 0,
295
+ "opt": 0,
296
+ "oT": 1,
297
+ "q": 100
298
  }
299
  },
300
  "hooks": [
305
  "creationDate": 507572464,
306
  "displayValue": "svg-support",
307
  "displayValueWasSetByUser": 0,
308
+ "iconImageName": "\/svg-support.png",
309
  "iconImageWasSetByUser": 0
310
  },
311
  "projectSettings": {
functions/attachment-modal.php CHANGED
@@ -20,7 +20,7 @@ function bodhi_svgs_response_for_svg( $response, $attachment, $meta ) {
20
  $dimensions = bodhi_svgs_get_dimensions( $svg_path );
21
 
22
  $response['sizes'] = array(
23
- 'custom' => array(
24
  'url' => $response['url'],
25
  'width' => $dimensions->width,
26
  'height' => $dimensions->height,
20
  $dimensions = bodhi_svgs_get_dimensions( $svg_path );
21
 
22
  $response['sizes'] = array(
23
+ 'full' => array(
24
  'url' => $response['url'],
25
  'width' => $dimensions->width,
26
  'height' => $dimensions->height,
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: Benbodhi
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline, animation, animate, js
5
  Requires at least: 4.8
6
- Tested up to: 5.0-alpha-42985
7
  Requires PHP: 5.2
8
- Stable tag: 2.3.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -145,6 +145,9 @@ You need to add the mime type for svg and svgz to: "MLA Settings > Media Library
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = 2.3.14 =
149
  * Fixed: Fatal error in some cases when removing old option from the database.
150
 
@@ -302,6 +305,9 @@ You need to add the mime type for svg and svgz to: "MLA Settings > Media Library
302
 
303
  == Upgrade Notice ==
304
 
 
 
 
305
  = 2.3.14 =
306
  Fixes fatal error in some cases when removing old option from the database.
307
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline, animation, animate, js
5
  Requires at least: 4.8
6
+ Tested up to: 5.0-alpha-42993
7
  Requires PHP: 5.2
8
+ Stable tag: 2.3.15
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
145
 
146
  == Changelog ==
147
 
148
+ = 2.3.15 =
149
+ * Had to roll back a recent PHP warnings fix due to it breaking some theme compatibility.
150
+
151
  = 2.3.14 =
152
  * Fixed: Fatal error in some cases when removing old option from the database.
153
 
305
 
306
  == Upgrade Notice ==
307
 
308
+ = 2.3.15 =
309
+ Had to roll back a recent PHP warnings fix due to it breaking some theme compatibility.
310
+
311
  = 2.3.14 =
312
  Fixes fatal error in some cases when removing old option from the database.
313
 
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.3.14
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.14'; // 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: 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.3.15
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.15'; // 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
svg-support.png ADDED
Binary file