Version Description
- July 27th, 2019 =
- Remove core file includes throughout WP SVG Icons.
- Remove hard coded paths to certain files.
- Downgrade GPL to v2.
Download this release
Release Info
| Developer | eherman24 |
| Plugin | |
| Version | 3.2.3 |
| Comparing to | |
| See all releases | |
Code changes from version 3.2.2 to 3.2.3
admin/class-wp-svg-icons-admin.php
CHANGED
|
@@ -192,7 +192,30 @@ class WP_SVG_Icons_Admin {
|
|
| 192 |
* 'Insert Icon' Button
|
| 193 |
*/
|
| 194 |
function add_insert_icon_button() {
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
}
|
| 197 |
|
| 198 |
/*
|
|
@@ -242,7 +265,7 @@ class WP_SVG_Icons_Admin {
|
|
| 242 |
// Check if there is a custom pack style file
|
| 243 |
// if there is enqueue it
|
| 244 |
if ( file_exists( $path . $customPackStyles ) ) {
|
| 245 |
-
wp_register_style( 'wp_svg_custom_pack_style' ,
|
| 246 |
wp_enqueue_style( 'wp_svg_custom_pack_style' );
|
| 247 |
}
|
| 248 |
}
|
| 192 |
* 'Insert Icon' Button
|
| 193 |
*/
|
| 194 |
function add_insert_icon_button() {
|
| 195 |
+
|
| 196 |
+
?>
|
| 197 |
+
|
| 198 |
+
<div id="wp-svg-icons" class="wp-svg-icons hidden">
|
| 199 |
+
<?php
|
| 200 |
+
ob_start();
|
| 201 |
+
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/partials/wp-svg-icons-default-icons-page.php';
|
| 202 |
+
echo ob_get_clean();
|
| 203 |
+
?>
|
| 204 |
+
</div>
|
| 205 |
+
|
| 206 |
+
<script type="text/javascript">
|
| 207 |
+
jQuery(document).ready(function() {
|
| 208 |
+
jQuery( '.show-wp-svg-icons' ).click( function() {
|
| 209 |
+
tb_show( '', '#TB_inline?height=300&width=400&inlineId=wp-svg-icons' );
|
| 210 |
+
return false;
|
| 211 |
+
} );
|
| 212 |
+
} );
|
| 213 |
+
</script>
|
| 214 |
+
|
| 215 |
+
<a href="#" class="button show-wp-svg-icons" title="<?php esc_attr_e( 'WP SVG Icons', 'wp-svg-icons' ); ?>"><span class="wp-svg-wordpress"></span> <?php esc_html_e( 'Add Icon', 'wp-svg-icons' ); ?></a>
|
| 216 |
+
|
| 217 |
+
<?php
|
| 218 |
+
|
| 219 |
}
|
| 220 |
|
| 221 |
/*
|
| 265 |
// Check if there is a custom pack style file
|
| 266 |
// if there is enqueue it
|
| 267 |
if ( file_exists( $path . $customPackStyles ) ) {
|
| 268 |
+
wp_register_style( 'wp_svg_custom_pack_style' , $path . $customPackStyles );
|
| 269 |
wp_enqueue_style( 'wp_svg_custom_pack_style' );
|
| 270 |
}
|
| 271 |
}
|
admin/partials/wp-svg-icons-custom-icons-page.php
CHANGED
|
@@ -1,15 +1,18 @@
|
|
| 1 |
<?php
|
| 2 |
-
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
| 3 |
|
| 4 |
-
if(
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
}
|
|
|
|
|
|
|
|
|
|
| 8 |
?>
|
| 9 |
|
| 10 |
<div class="svg-custom-upload-wrap wrap" style="min-width:900px;">
|
| 11 |
|
| 12 |
-
<?php if(
|
| 13 |
<!-- review us container -->
|
| 14 |
<div id="review-wp-svg-icons" style="position:absolute;right:15em;top:0;text-align:center;">
|
| 15 |
<p><?php _e( 'Leave Us A Review!' , 'wp-svg-icons' ); ?></p>
|
| 1 |
<?php
|
|
|
|
| 2 |
|
| 3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
| 4 |
+
|
| 5 |
+
exit; // Exit if accessed directly
|
| 6 |
+
|
| 7 |
}
|
| 8 |
+
|
| 9 |
+
$screen = get_current_screen();
|
| 10 |
+
|
| 11 |
?>
|
| 12 |
|
| 13 |
<div class="svg-custom-upload-wrap wrap" style="min-width:900px;">
|
| 14 |
|
| 15 |
+
<?php if( 'wp-svg-icons_page_wp-svg-icons-custom-set ' === $screen->base ) { ?>
|
| 16 |
<!-- review us container -->
|
| 17 |
<div id="review-wp-svg-icons" style="position:absolute;right:15em;top:0;text-align:center;">
|
| 18 |
<p><?php _e( 'Leave Us A Review!' , 'wp-svg-icons' ); ?></p>
|
admin/partials/wp-svg-icons-default-icons-page.php
CHANGED
|
@@ -1,10 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
if( file_exists( '../../../../../wp-load.php' ) ) {
|
| 3 |
-
// required for _e() to work inside of the modal
|
| 4 |
-
include_once( "../../../../../wp-load.php" );
|
| 5 |
-
}
|
| 6 |
|
| 7 |
-
|
|
|
|
| 8 |
?>
|
| 9 |
|
| 10 |
<script>
|
|
@@ -29,7 +26,7 @@ jQuery( document ).ready( function() {
|
|
| 29 |
<!-- display our icons and stuff -->
|
| 30 |
<div class="wrap wp-svg-icons-wrap">
|
| 31 |
|
| 32 |
-
<?php if(
|
| 33 |
<!-- review us container -->
|
| 34 |
<div id="review-wp-svg-icons" style="position:absolute;right:15em;top:0;text-align:center;">
|
| 35 |
<p><?php _e( 'Leave Us A Review!' , 'wp-svg-icons' ); ?></p>
|
|
@@ -47,8 +44,8 @@ jQuery( document ).ready( function() {
|
|
| 47 |
|
| 48 |
<div class="w-main centered">
|
| 49 |
|
| 50 |
-
<h1 class="wp-svg-title"><span style="color:#FF8000;">WP SVG Icons</span>
|
| 51 |
-
|
| 52 |
|
| 53 |
<div class="help-boxes" >
|
| 54 |
|
| 1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
$screen = get_current_screen();
|
| 4 |
+
|
| 5 |
?>
|
| 6 |
|
| 7 |
<script>
|
| 26 |
<!-- display our icons and stuff -->
|
| 27 |
<div class="wrap wp-svg-icons-wrap">
|
| 28 |
|
| 29 |
+
<?php if( 'wp-svg-icons_page_wp-svg-icons-custom-set ' === $screen->base ) { ?>
|
| 30 |
<!-- review us container -->
|
| 31 |
<div id="review-wp-svg-icons" style="position:absolute;right:15em;top:0;text-align:center;">
|
| 32 |
<p><?php _e( 'Leave Us A Review!' , 'wp-svg-icons' ); ?></p>
|
| 44 |
|
| 45 |
<div class="w-main centered">
|
| 46 |
|
| 47 |
+
<h1 class="wp-svg-title"><span style="color:#FF8000;">WP SVG Icons</span> | <?php _e( "Default Icon Pack" , "wp-svg-icons" ); ?></h1>
|
| 48 |
+
<h4><?php _e( "These icons are scaleable vector graphics, meaning you can set them to whatever size you want with out any loss in quality." , "wp-svg-icons" ); ?> <span style="color:#FF8000;"><?php _e( "Enjoy!" , "wp-svg-icons" ); ?></span></h4>
|
| 49 |
|
| 50 |
<div class="help-boxes" >
|
| 51 |
|
admin/partials/wp-svg-icons-icon-page.php
CHANGED
|
@@ -63,17 +63,29 @@ add_action('admin_menu', 'wordpress_svg_icons_plugin_add_menu_page');
|
|
| 63 |
|
| 64 |
// Callback to render icon listing page
|
| 65 |
function render_wp_svg_icon_page() {
|
|
|
|
|
|
|
| 66 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'partials/wp-svg-icons-default-icons-page.php';
|
|
|
|
|
|
|
| 67 |
}
|
| 68 |
|
| 69 |
// Callback to render icon listing page
|
| 70 |
function render_custom_icon_page() {
|
|
|
|
|
|
|
| 71 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'partials/wp-svg-icons-custom-icons-page.php';
|
|
|
|
|
|
|
| 72 |
}
|
| 73 |
|
| 74 |
// Callback to render support page
|
| 75 |
function render_upgrade_page() {
|
|
|
|
|
|
|
| 76 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'partials/wp-svg-icons-upgrade-page.php';
|
|
|
|
|
|
|
| 77 |
}
|
| 78 |
|
| 79 |
|
| 63 |
|
| 64 |
// Callback to render icon listing page
|
| 65 |
function render_wp_svg_icon_page() {
|
| 66 |
+
|
| 67 |
+
ob_start();
|
| 68 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'partials/wp-svg-icons-default-icons-page.php';
|
| 69 |
+
echo ob_get_clean();
|
| 70 |
+
|
| 71 |
}
|
| 72 |
|
| 73 |
// Callback to render icon listing page
|
| 74 |
function render_custom_icon_page() {
|
| 75 |
+
|
| 76 |
+
ob_start();
|
| 77 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'partials/wp-svg-icons-custom-icons-page.php';
|
| 78 |
+
echo ob_get_clean();
|
| 79 |
+
|
| 80 |
}
|
| 81 |
|
| 82 |
// Callback to render support page
|
| 83 |
function render_upgrade_page() {
|
| 84 |
+
|
| 85 |
+
ob_start();
|
| 86 |
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'partials/wp-svg-icons-upgrade-page.php';
|
| 87 |
+
echo ob_get_clean();
|
| 88 |
+
|
| 89 |
}
|
| 90 |
|
| 91 |
|
readme.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
=== WP SVG Icons ===
|
| 2 |
-
Contributors: eherman24
|
| 3 |
Donate link: https://www.evan-herman.com/contact/?contact-reason=I%20want%20to%20make%20a%20donation%20for%20all%20your%20hard%20work
|
| 4 |
Tags: font icon, responsive, svg, font awesome, icons, bootstrap, navicons, icomoon, custom, FontAwesome, icon font, glyph
|
| 5 |
Requires at least: 3.5
|
| 6 |
Tested up to: 5.2
|
| 7 |
-
Stable tag: 3.2.
|
| 8 |
-
License:
|
| 9 |
-
License URI: https://www.gnu.org/licenses/gpl-
|
| 10 |
|
| 11 |
Quickly and effortlessly enable 490+ beautifully designed SVG font icons, available on the frontend and backend of your site.
|
| 12 |
|
|
@@ -144,6 +144,11 @@ If you buy the pro version you will also receive support and updates for one yea
|
|
| 144 |
|
| 145 |
== Changelog ==
|
| 146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
= 3.2.2 - July 20th, 2019 =
|
| 148 |
* Strengthened custom icon set upload security checks.
|
| 149 |
* Various updates to WPIcons demo links, readme file etc.
|
|
@@ -267,10 +272,10 @@ If you buy the pro version you will also receive support and updates for one yea
|
|
| 267 |
|
| 268 |
== Upgrade Notice ==
|
| 269 |
|
| 270 |
-
= 3.2.
|
| 271 |
-
*
|
| 272 |
-
*
|
| 273 |
-
*
|
| 274 |
|
| 275 |
== Usage Instructions ==
|
| 276 |
|
| 1 |
=== WP SVG Icons ===
|
| 2 |
+
Contributors: eherman24, codeparrots
|
| 3 |
Donate link: https://www.evan-herman.com/contact/?contact-reason=I%20want%20to%20make%20a%20donation%20for%20all%20your%20hard%20work
|
| 4 |
Tags: font icon, responsive, svg, font awesome, icons, bootstrap, navicons, icomoon, custom, FontAwesome, icon font, glyph
|
| 5 |
Requires at least: 3.5
|
| 6 |
Tested up to: 5.2
|
| 7 |
+
Stable tag: 3.2.3
|
| 8 |
+
License: GPLv2 or later
|
| 9 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 11 |
Quickly and effortlessly enable 490+ beautifully designed SVG font icons, available on the frontend and backend of your site.
|
| 12 |
|
| 144 |
|
| 145 |
== Changelog ==
|
| 146 |
|
| 147 |
+
= 3.2.3 - July 27th, 2019 =
|
| 148 |
+
* Remove core file includes throughout WP SVG Icons.
|
| 149 |
+
* Remove hard coded paths to certain files.
|
| 150 |
+
* Downgrade GPL to v2.
|
| 151 |
+
|
| 152 |
= 3.2.2 - July 20th, 2019 =
|
| 153 |
* Strengthened custom icon set upload security checks.
|
| 154 |
* Various updates to WPIcons demo links, readme file etc.
|
| 272 |
|
| 273 |
== Upgrade Notice ==
|
| 274 |
|
| 275 |
+
= 3.2.3 - July 27th, 2019 =
|
| 276 |
+
* Remove core file includes throughout WP SVG Icons.
|
| 277 |
+
* Remove hard coded paths to certain files.
|
| 278 |
+
* Downgrade GPL to v2.
|
| 279 |
|
| 280 |
== Usage Instructions ==
|
| 281 |
|
wp-svg-icons.php
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
* Plugin Name: WP SVG Icons
|
| 9 |
* Plugin URI: https://www.evan-herman.com/wordpress-plugin/wp-svg-icons/
|
| 10 |
* Description: Quickly and effortlessly gain access to 492 beautifully designed SVG font icons, available on the frontend and backend of your site.
|
| 11 |
-
* Version: 3.2.
|
| 12 |
* Author: EH Dev Shop
|
| 13 |
* Author URI: http://evan-herman.com
|
| 14 |
* License: GPL-3.0+
|
| 8 |
* Plugin Name: WP SVG Icons
|
| 9 |
* Plugin URI: https://www.evan-herman.com/wordpress-plugin/wp-svg-icons/
|
| 10 |
* Description: Quickly and effortlessly gain access to 492 beautifully designed SVG font icons, available on the frontend and backend of your site.
|
| 11 |
+
* Version: 3.2.3
|
| 12 |
* Author: EH Dev Shop
|
| 13 |
* Author URI: http://evan-herman.com
|
| 14 |
* License: GPL-3.0+
|
