Version Description
- Updated author URL in main plugin file.
- Updated donate links.
- Cleaned up plugin action meta links and settings page.
- Rolled back a fix in functions/attachment.php due to it removing meta from other attachments.
Download this release
Release Info
Developer | Benbodhi |
Plugin | SVG Support |
Version | 2.3.18 |
Comparing to | |
See all releases |
Code changes from version 2.3.17 to 2.3.18
- admin/plugin-action-meta-links.php +3 -3
- admin/svgs-settings-page-help.php +1 -1
- admin/svgs-settings-page.php +11 -2
- functions/attachment.php +2 -1
- readme.txt +12 -3
- svg-support.php +3 -3
admin/plugin-action-meta-links.php
CHANGED
@@ -34,8 +34,8 @@ function bodhi_svgs_plugin_meta_links( $links, $file ) {
|
|
34 |
$links,
|
35 |
array(
|
36 |
'<a target="_blank" href="https://wordpress.org/support/plugin/svg-support">' . __( 'Get Support', 'svg-support') . '</a>',
|
37 |
-
'<a target="_blank" href="https://
|
38 |
-
'<a target="_blank" href="https://
|
39 |
)
|
40 |
);
|
41 |
}
|
@@ -43,4 +43,4 @@ function bodhi_svgs_plugin_meta_links( $links, $file ) {
|
|
43 |
return $links;
|
44 |
|
45 |
}
|
46 |
-
add_filter( 'plugin_row_meta', 'bodhi_svgs_plugin_meta_links', 10, 2 );
|
34 |
$links,
|
35 |
array(
|
36 |
'<a target="_blank" href="https://wordpress.org/support/plugin/svg-support">' . __( 'Get Support', 'svg-support') . '</a>',
|
37 |
+
'<a target="_blank" href="https://wordpress.org/support/plugin/svg-support/reviews/">' . __( 'Leave a Review', 'svg-support' ) . '</a>',
|
38 |
+
'<a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ&source=url">' . __( 'Donate to author', 'svg-support') . '</a>'
|
39 |
)
|
40 |
);
|
41 |
}
|
43 |
return $links;
|
44 |
|
45 |
}
|
46 |
+
add_filter( 'plugin_row_meta', 'bodhi_svgs_plugin_meta_links', 10, 2 );
|
admin/svgs-settings-page-help.php
CHANGED
@@ -137,7 +137,7 @@ function bodhi_svgs_help_tab () {
|
|
137 |
|
138 |
$bodhi_svgs_help_tab_donations .= '<p><strong>' . __( 'PayPal: ', 'svg-support' ) . '</strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ" target="_blank">Click Here</a><br/><strong>' . __( 'BTC: 1qF8r2HkTLifND7WLGfWmvxfXc9ze55DZ', 'svg-support' ) . '</strong><br/><strong>' . __( 'LTC: LUnQPJrSk6cVFmMqBMv5FAqweJbnzRUz4o', 'svg-support' ) . '</strong><br/><strong>' . __( 'ETH: 0x599695Eb51aFe2e5a0DAD60aD9c89Bc8f10B54f4', 'svg-support' ) . '</strong></p>';
|
139 |
|
140 |
-
$bodhi_svgs_help_tab_donations .= '<p>' . __( 'Need to buy some crypto to donate?', 'svg-support' ) . '</br>' . __( 'My Coinbase referral link will get $10 USD worth of BTC for free when you spend $100.', 'svg-support' ) . '</br>' . __( '(You don\'t need to send me that much
|
141 |
|
142 |
// register featured images tab
|
143 |
$screen->add_help_tab( array(
|
137 |
|
138 |
$bodhi_svgs_help_tab_donations .= '<p><strong>' . __( 'PayPal: ', 'svg-support' ) . '</strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ" target="_blank">Click Here</a><br/><strong>' . __( 'BTC: 1qF8r2HkTLifND7WLGfWmvxfXc9ze55DZ', 'svg-support' ) . '</strong><br/><strong>' . __( 'LTC: LUnQPJrSk6cVFmMqBMv5FAqweJbnzRUz4o', 'svg-support' ) . '</strong><br/><strong>' . __( 'ETH: 0x599695Eb51aFe2e5a0DAD60aD9c89Bc8f10B54f4', 'svg-support' ) . '</strong></p>';
|
139 |
|
140 |
+
$bodhi_svgs_help_tab_donations .= '<p>' . __( 'Need to buy some crypto to donate?', 'svg-support' ) . '</br>' . __( 'My Coinbase referral link will get $10 USD worth of BTC for free when you spend $100.', 'svg-support' ) . '</br>' . __( '(You don\'t need to send me that much though, anything is appreciated!)', 'svg-support' ) . '<br/><a href="https://www.coinbase.com/join/59be646cb87715012bbdcc6b" target="_blank">https://www.coinbase.com/join/59be646cb87715012bbdcc6b</a></p>';
|
141 |
|
142 |
// register featured images tab
|
143 |
$screen->add_help_tab( array(
|
admin/svgs-settings-page.php
CHANGED
@@ -30,13 +30,13 @@
|
|
30 |
<h3><span><?php _e( 'Send Some Love', 'svg-support' ); ?></span></h3>
|
31 |
<div class="inside">
|
32 |
|
33 |
-
<p><?php _e( 'SVG Support has grown to be installed on
|
34 |
<p><strong>
|
35 |
<?php _e( 'BTC: 1qF8r2HkTLifND7WLGfWmvxfXc9ze55DZ', 'svg-support' ); ?><br/>
|
36 |
<?php _e( 'LTC: LUnQPJrSk6cVFmMqBMv5FAqweJbnzRUz4o', 'svg-support' ); ?><br/>
|
37 |
<?php _e( 'ETH: 0x599695Eb51aFe2e5a0DAD60aD9c89Bc8f10B54f4', 'svg-support' ); ?>
|
38 |
</strong></p>
|
39 |
-
<p><?php _e( '
|
40 |
|
41 |
</div> <!-- .inside -->
|
42 |
|
@@ -254,6 +254,15 @@
|
|
254 |
</div> <!-- .inside -->
|
255 |
</div> <!-- .postbox -->
|
256 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
<div class="postbox">
|
258 |
<h3><span><?php _e( 'SVG Support Features', 'svg-support' ); ?></span></h3>
|
259 |
<div class="inside">
|
30 |
<h3><span><?php _e( 'Send Some Love', 'svg-support' ); ?></span></h3>
|
31 |
<div class="inside">
|
32 |
|
33 |
+
<p><?php _e( 'SVG Support has grown to be installed on 300,000+ active websites. That\'s insane! It\'s developed and maintained by one person alone. If you find it useful, please consider donating to help keep it going. I truly appreciate any contribution.', 'svg-support' ); ?></p>
|
34 |
<p><strong>
|
35 |
<?php _e( 'BTC: 1qF8r2HkTLifND7WLGfWmvxfXc9ze55DZ', 'svg-support' ); ?><br/>
|
36 |
<?php _e( 'LTC: LUnQPJrSk6cVFmMqBMv5FAqweJbnzRUz4o', 'svg-support' ); ?><br/>
|
37 |
<?php _e( 'ETH: 0x599695Eb51aFe2e5a0DAD60aD9c89Bc8f10B54f4', 'svg-support' ); ?>
|
38 |
</strong></p>
|
39 |
+
<p><?php _e( 'You can also', 'svg-support' ); ?> <a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ&source=url"><?php _e( 'Donate using PayPal', 'svg-support' ); ?></a></p>
|
40 |
|
41 |
</div> <!-- .inside -->
|
42 |
|
254 |
</div> <!-- .inside -->
|
255 |
</div> <!-- .postbox -->
|
256 |
|
257 |
+
<div class="postbox">
|
258 |
+
<h3><span><?php _e( 'Having Issues?', 'svg-support' ); ?></span></h3>
|
259 |
+
<div class="inside">
|
260 |
+
<p><?php _e( 'I\'m always happy to help out!', 'svg-support' ); ?>
|
261 |
+
<br><?php _e( 'Support is handled exlusively through WordPress.org by my one man team - me.', 'svg-support' ); ?></p>
|
262 |
+
<p><a href="https://wordpress.org/support/plugin/svg-support/" target="_blank" class="button-primary">Get Support</a></p>
|
263 |
+
</div> <!-- .inside -->
|
264 |
+
</div> <!-- .postbox -->
|
265 |
+
|
266 |
<div class="postbox">
|
267 |
<h3><span><?php _e( 'SVG Support Features', 'svg-support' ); ?></span></h3>
|
268 |
<div class="inside">
|
functions/attachment.php
CHANGED
@@ -120,4 +120,5 @@ function bodhi_svgs_get_attachment_metadata( $data ) {
|
|
120 |
return $res;
|
121 |
|
122 |
}
|
123 |
-
add_filter( 'wp_get_attachment_metadata' , 'bodhi_svgs_get_attachment_metadata' );
|
|
120 |
return $res;
|
121 |
|
122 |
}
|
123 |
+
// add_filter( 'wp_get_attachment_metadata' , 'bodhi_svgs_get_attachment_metadata' );
|
124 |
+
// Commented this out 20200307 because it was stripping metadata from other attachments as well. Need to make this target only SVG attachments.
|
readme.txt
CHANGED
@@ -3,13 +3,13 @@ Contributors: Benbodhi
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ
|
4 |
Tags: svg, vector, safesvg, css, style, mime, mime type, embed, img, inline, animation, animate, js
|
5 |
Requires at least: 4.8
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.2
|
8 |
-
Stable tag: 2.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
-
Safely upload SVG files to the Media Library.
|
13 |
|
14 |
|
15 |
== Description ==
|
@@ -140,6 +140,12 @@ You need to add the mime type for svg and svgz to: "MLA Settings > Media Library
|
|
140 |
|
141 |
== Changelog ==
|
142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
= 2.3.17 =
|
144 |
* Added setting to choose whether to load frontend CSS or not.
|
145 |
|
@@ -308,6 +314,9 @@ You need to add the mime type for svg and svgz to: "MLA Settings > Media Library
|
|
308 |
|
309 |
== Upgrade Notice ==
|
310 |
|
|
|
|
|
|
|
311 |
= 2.3.17 =
|
312 |
Added a setting to choose whether to load the frontend CSS file or not. It was previously enabled by default, so you may want to flick that on after the update. This allows you to leave it out so your site has one less file to load :)
|
313 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ
|
4 |
Tags: svg, vector, safesvg, css, style, mime, mime type, embed, img, inline, animation, animate, js
|
5 |
Requires at least: 4.8
|
6 |
+
Tested up to: 5.5-alpha-47549
|
7 |
Requires PHP: 5.2
|
8 |
+
Stable tag: 2.3.18
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
+
Safely upload SVG files to the Media Library. Ability to render your SVG files inline for direct styling/animation of an SVG's internal elements.
|
13 |
|
14 |
|
15 |
== Description ==
|
140 |
|
141 |
== Changelog ==
|
142 |
|
143 |
+
= 2.3.18 =
|
144 |
+
* Updated author URL in main plugin file.
|
145 |
+
* Updated donate links.
|
146 |
+
* Cleaned up plugin action meta links and settings page.
|
147 |
+
* Rolled back a fix in functions/attachment.php due to it removing meta from other attachments.
|
148 |
+
|
149 |
= 2.3.17 =
|
150 |
* Added setting to choose whether to load frontend CSS or not.
|
151 |
|
314 |
|
315 |
== Upgrade Notice ==
|
316 |
|
317 |
+
= 2.3.18 =
|
318 |
+
General clean up of plugin, testing on latest nightly build plus fixed issue with metadata being removed from non SVG attachments.
|
319 |
+
|
320 |
= 2.3.17 =
|
321 |
Added a setting to choose whether to load the frontend CSS file or not. It was previously enabled by default, so you may want to flick that on after the update. This allows you to leave it out so your site has one less file to load :)
|
322 |
|
svg-support.php
CHANGED
@@ -3,9 +3,9 @@
|
|
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.
|
7 |
Author: Benbodhi
|
8 |
-
Author URI:
|
9 |
Text Domain: svg-support
|
10 |
Domain Path: /languages
|
11 |
License: GPLv2 or later
|
@@ -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: 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.18
|
7 |
Author: Benbodhi
|
8 |
+
Author URI: https://benbodhi.com
|
9 |
Text Domain: svg-support
|
10 |
Domain Path: /languages
|
11 |
License: GPLv2 or later
|
22 |
/**
|
23 |
* Global variables
|
24 |
*/
|
25 |
+
$svgs_plugin_version = '2.3.18'; // 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
|