WP SVG Icons - Version 3.1.8.2

Version Description

  • September 14th, 2015 =
  • Important Security Updates
Download this release

Release Info

Developer eherman24
Plugin Icon 128x128 WP SVG Icons
Version 3.1.8.2
Comparing to
See all releases

Code changes from version 3.1.8.1 to 3.1.8.2

admin/class-wp-svg-icons-admin.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  /**
3
  * The dashboard-specific functionality of the plugin.
4
  *
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * The dashboard-specific functionality of the plugin.
8
  *
admin/partials/wp-svg-icons-custom-icons-page.php CHANGED
@@ -1,4 +1,8 @@
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" );
@@ -29,6 +33,18 @@ if( file_exists( '../../../../../wp-load.php' ) ) {
29
 
30
  if ( isset( $_FILES['custom_icon_pack'] ) ) {
31
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  $uploadedfile = $_FILES['custom_icon_pack'];
33
  $upload_overrides = array( 'test_form' => false );
34
 
@@ -295,6 +311,10 @@ if( file_exists( '../../../../../wp-load.php' ) ) {
295
  <!-- Handling Custom Font Pack Uploads -->
296
  <!-- currently uploads to Uploads > WP SVG Icons > Custom Pack -->
297
  <form id="wp_svg_icons_upload_custom_pack_form" enctype="multipart/form-data" action="" method="POST">
 
 
 
 
298
  <p id="async-upload-wrap" style="margin-bottom:0;">
299
  <label for="async-upload"><?php _e( 'Import a Custom Font Pack' , 'wp-svg-icons' ); ?> :</label><br />
300
  <input type="file" id="wp_svg_custom_pack_field" name="custom_icon_pack" required="required">
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  if( file_exists( '../../../../../wp-load.php' ) ) {
7
  // required for _e() to work inside of the modal
8
  include_once( "../../../../../wp-load.php" );
33
 
34
  if ( isset( $_FILES['custom_icon_pack'] ) ) {
35
 
36
+ /*
37
+ Validate our nonce for security reasons
38
+ @since 3.1.8.2
39
+ */
40
+ if ( ! empty( $_POST['wp_svg_icons_upload_validation'] ) ) {
41
+ if( ! check_admin_referer( 'validate_wp_svg_icons', 'wp_svg_icons_upload_validation' ) ) {
42
+ wp_die( __( 'Sorry, your nonce did not verify. Please try again.', 'wp-svg-icons' ) );
43
+ exit;
44
+ }
45
+ }
46
+
47
+
48
  $uploadedfile = $_FILES['custom_icon_pack'];
49
  $upload_overrides = array( 'test_form' => false );
50
 
311
  <!-- Handling Custom Font Pack Uploads -->
312
  <!-- currently uploads to Uploads > WP SVG Icons > Custom Pack -->
313
  <form id="wp_svg_icons_upload_custom_pack_form" enctype="multipart/form-data" action="" method="POST">
314
+ <?php
315
+ /* Security Nonces */
316
+ wp_nonce_field( 'validate_wp_svg_icons', 'wp_svg_icons_upload_validation' );
317
+ ?>
318
  <p id="async-upload-wrap" style="margin-bottom:0;">
319
  <label for="async-upload"><?php _e( 'Import a Custom Font Pack' , 'wp-svg-icons' ); ?> :</label><br />
320
  <input type="file" id="wp_svg_custom_pack_field" name="custom_icon_pack" required="required">
admin/partials/wp-svg-icons-default-icons-page.php CHANGED
@@ -1,4 +1,8 @@
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" );
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  if( file_exists( '../../../../../wp-load.php' ) ) {
7
  // required for _e() to work inside of the modal
8
  include_once( "../../../../../wp-load.php" );
admin/partials/wp-svg-icons-icon-page.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
 
 
 
 
3
  // Create Menu Pages
4
  // Create Sub Menu pages for Custom Icon Pack Uploads
5
  function wordpress_svg_icons_plugin_add_menu_page() {
1
  <?php
2
 
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  // Create Menu Pages
7
  // Create Sub Menu pages for Custom Icon Pack Uploads
8
  function wordpress_svg_icons_plugin_add_menu_page() {
admin/partials/wp-svg-icons-upgrade-page.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  // enqueue our upgrade page script
3
  wp_register_script( 'upgrade-page-script' , plugin_dir_url(__FILE__).'../js/upgrade-page-script.js' , array( 'jquery' ), 'all' );
4
  wp_enqueue_script( 'upgrade-page-script' );
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  // enqueue our upgrade page script
7
  wp_register_script( 'upgrade-page-script' , plugin_dir_url(__FILE__).'../js/upgrade-page-script.js' , array( 'jquery' ), 'all' );
8
  wp_enqueue_script( 'upgrade-page-script' );
admin/partials/wp-svg-icons-views-test.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
 
 
 
 
3
  /**
4
  * Class wp_svg_icons_view
5
  * handles the creation of [wp-svg-icons] shortcode
1
  <?php
2
 
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * Class wp_svg_icons_view
8
  * handles the creation of [wp-svg-icons] shortcode
includes/class-wp-svg-icons-activator.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  /**
3
  * Fired during plugin activation.
4
  *
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * Fired during plugin activation.
8
  *
includes/class-wp-svg-icons-deactivator.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  /**
3
  * Fired during plugin deactivation.
4
  *
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * Fired during plugin deactivation.
8
  *
includes/class-wp-svg-icons-i18n.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  /**
3
  * Define the internationalization functionality.
4
  *
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * Define the internationalization functionality.
8
  *
includes/class-wp-svg-icons-loader.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  /**
3
  * Register all actions and filters for the plugin.
4
  *
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * Register all actions and filters for the plugin.
8
  *
includes/class-wp-svg-icons-uninstall.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  /**
3
  * Fired during plugin uninstall.
4
  *
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * Fired during plugin uninstall.
8
  *
includes/class-wp-svg-icons.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  /**
3
  * The file that defines the core plugin class
4
  *
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * The file that defines the core plugin class
8
  *
public/class-wp-svg-icons-public.php CHANGED
@@ -1,4 +1,8 @@
1
  <?php
 
 
 
 
2
  /**
3
  * The public-facing functionality of the plugin.
4
  *
1
  <?php
2
+
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * The public-facing functionality of the plugin.
8
  *
public/partials/wp-svg-icons-shortcodes.php CHANGED
@@ -1,5 +1,8 @@
1
  <?php
2
 
 
 
 
3
  /**
4
  * Function to process our shortcode and render our WP SVG Icon
5
  *
1
  <?php
2
 
3
+ /* If the file is hit directly, abort... */
4
+ defined('ABSPATH') or die("Nice try....");
5
+
6
  /**
7
  * Function to process our shortcode and render our WP SVG Icon
8
  *
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.evan-herman.com/contact/?contact-reason=I%20want%20to%2
4
  Tags: wordpress, bootstrap, font icon, font awesome more, fontstrap, icons, ui, ux, design, free, boot, strap, menus, menu, custom, nav, navigation, navicons, icons, evan, herman, icon, set, svg, wp, icomoon, ico, moon, wp, zoom, wp-zoom, wpzoom, broccolidry, metoicons, iconic, plugin, responsive, bootstrap, font, awesome, font awesome, twitter, glyphicons, glyph, web, font, webfont, custom, icons, import, upload, zip, font, icon, svg font icon, fonticon, iconfont, fontello, css3, svg animation, free, genericons, genericon, icon stack, stack, icons stack, menu icons, menu, customizable, customize, customizer, bootstrap, dropdown, navigation, scale, vector, icons
5
  Requires at least: 3.5
6
  Tested up to: 4.3
7
- Stable tag: 3.1.8.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -143,6 +143,9 @@ If you buy the pro version you will also receive support and updates for one yea
143
 
144
  == Changelog ==
145
 
 
 
 
146
  = 3.1.8.1 - July 21st, 2015 =
147
  * Update link to the pro/upgrade site
148
 
@@ -241,6 +244,12 @@ If you buy the pro version you will also receive support and updates for one yea
241
 
242
  == Upgrade Notice ==
243
 
 
 
 
 
 
 
244
  = 3.1.8 - May 5th, 2015 =
245
  * Hide 10 icon notice for users not using 10 or more icons
246
  * Update tested to 4.2.1
4
  Tags: wordpress, bootstrap, font icon, font awesome more, fontstrap, icons, ui, ux, design, free, boot, strap, menus, menu, custom, nav, navigation, navicons, icons, evan, herman, icon, set, svg, wp, icomoon, ico, moon, wp, zoom, wp-zoom, wpzoom, broccolidry, metoicons, iconic, plugin, responsive, bootstrap, font, awesome, font awesome, twitter, glyphicons, glyph, web, font, webfont, custom, icons, import, upload, zip, font, icon, svg font icon, fonticon, iconfont, fontello, css3, svg animation, free, genericons, genericon, icon stack, stack, icons stack, menu icons, menu, customizable, customize, customizer, bootstrap, dropdown, navigation, scale, vector, icons
5
  Requires at least: 3.5
6
  Tested up to: 4.3
7
+ Stable tag: 3.1.8.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
143
 
144
  == Changelog ==
145
 
146
+ = 3.1.8.2 - September 14th, 2015 =
147
+ * Important Security Updates
148
+
149
  = 3.1.8.1 - July 21st, 2015 =
150
  * Update link to the pro/upgrade site
151
 
244
 
245
  == Upgrade Notice ==
246
 
247
+ = 3.1.8.2 - September 14th, 2015 =
248
+ * Important Security Updates
249
+
250
+ = 3.1.8.1 - July 21st, 2015 =
251
+ * Update link to the pro/upgrade site
252
+
253
  = 3.1.8 - May 5th, 2015 =
254
  * Hide 10 icon notice for users not using 10 or more icons
255
  * Update tested to 4.2.1
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.1.8.1
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.1.8.2
12
  * Author: EH Dev Shop
13
  * Author URI: http://evan-herman.com
14
  * License: GPL-3.0+