SVG Support - Version 2.5.1

Version Description

  • Added missing quotes in uninstall.php.
Download this release

Release Info

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

Code changes from version 2.5 to 2.5.1

Files changed (4) hide show
  1. config.codekit3 +26 -48
  2. readme.txt +8 -1
  3. svg-support.php +2 -2
  4. uninstall.php +3 -5
config.codekit3 CHANGED
@@ -7,7 +7,7 @@
7
  "uuidString" : "FDF09C14-788E-4A4D-A218-DA6A56580A0D"
8
  }
9
  ],
10
- "creatorBuild" : "34335",
11
  "files" : {
12
  "\/admin\/admin-init.php" : {
13
  "cB" : 0,
@@ -1332,10 +1332,6 @@
1332
  "active" : 0,
1333
  "optionString" : "'1tbs', {'allowSingleLine': true}"
1334
  },
1335
- "callback-return" : {
1336
- "active" : 0,
1337
- "optionString" : "['callback', 'cb', 'next']"
1338
- },
1339
  "camelcase" : {
1340
  "active" : 0,
1341
  "optionString" : "{'properties': 'always'}"
@@ -1427,6 +1423,10 @@
1427
  "active" : 0,
1428
  "optionString" : "'expression'"
1429
  },
 
 
 
 
1430
  "function-paren-newline" : {
1431
  "active" : 0,
1432
  "optionString" : "'multiline'"
@@ -1439,9 +1439,6 @@
1439
  "active" : 0,
1440
  "optionString" : "{'allowImplicit': false}"
1441
  },
1442
- "global-require" : {
1443
- "active" : 0
1444
- },
1445
  "grouped-accessor-pairs" : {
1446
  "active" : 0,
1447
  "optionString" : "'anyOrder'"
@@ -1449,11 +1446,7 @@
1449
  "guard-for-in" : {
1450
  "active" : 0
1451
  },
1452
- "handle-callback-err" : {
1453
- "active" : 0,
1454
- "optionString" : "'err'"
1455
- },
1456
- "id-blacklist" : {
1457
  "active" : 0,
1458
  "optionString" : "'data', 'err', 'e', 'cb', 'callback'"
1459
  },
@@ -1577,9 +1570,6 @@
1577
  "active" : 0,
1578
  "optionString" : "{'allow': ['~'], 'int32Hint': true}"
1579
  },
1580
- "no-buffer-constructor" : {
1581
- "active" : 0
1582
- },
1583
  "no-caller" : {
1584
  "active" : 0
1585
  },
@@ -1607,6 +1597,9 @@
1607
  "no-const-assign" : {
1608
  "active" : 1
1609
  },
 
 
 
1610
  "no-constant-condition" : {
1611
  "active" : 1,
1612
  "optionString" : "{'checkLoops': true}"
@@ -1641,6 +1634,9 @@
1641
  "no-dupe-keys" : {
1642
  "active" : 1
1643
  },
 
 
 
1644
  "no-duplicate-imports" : {
1645
  "active" : 0,
1646
  "optionString" : "{'includeExports': false}"
@@ -1682,7 +1678,7 @@
1682
  "no-extra-boolean-cast" : {
1683
  "active" : 1
1684
  },
1685
- "no-extra-labels" : {
1686
  "active" : 0
1687
  },
1688
  "no-extra-parens" : {
@@ -1770,10 +1766,6 @@
1770
  "active" : 0,
1771
  "optionString" : "{'groups': [['+', '-', '*', '\/', '%', '**'], ['&', '|', '^', '~', '<<', '>>', '>>>'], ['==', '!=', '===', '!==', '>', '>=', '<', '<='], ['&&', '||'], ['in', 'instanceof']], 'allowSamePrecedence': true}"
1772
  },
1773
- "no-mixed-requires" : {
1774
- "active" : 0,
1775
- "optionString" : "{'grouping': false, 'allowCall': false }"
1776
- },
1777
  "no-mixed-spaces-and-tabs" : {
1778
  "active" : 0,
1779
  "optionString" : ""
@@ -1808,9 +1800,6 @@
1808
  "no-new-object" : {
1809
  "active" : 0
1810
  },
1811
- "no-new-require" : {
1812
- "active" : 0
1813
- },
1814
  "no-new-symbol" : {
1815
  "active" : 1
1816
  },
@@ -1833,19 +1822,10 @@
1833
  "active" : 0,
1834
  "optionString" : "{'props': false}"
1835
  },
1836
- "no-path-concat" : {
1837
- "active" : 0
1838
- },
1839
  "no-plusplus" : {
1840
  "active" : 0,
1841
  "optionString" : "{'allowForLoopAfterthoughts': false}"
1842
  },
1843
- "no-process-env" : {
1844
- "active" : 0
1845
- },
1846
- "no-process-exit" : {
1847
- "active" : 0
1848
- },
1849
  "no-promise-executor-return" : {
1850
  "active" : 0
1851
  },
@@ -1871,9 +1851,6 @@
1871
  "optionString" : "'event', 'fdescribe'"
1872
  },
1873
  "no-restricted-imports" : {
1874
- "active" : 0
1875
- },
1876
- "no-restricted-modules" : {
1877
  "active" : 0,
1878
  "optionString" : ""
1879
  },
@@ -1919,10 +1896,6 @@
1919
  "no-sparse-arrays" : {
1920
  "active" : 1
1921
  },
1922
- "no-sync" : {
1923
- "active" : 0,
1924
- "optionString" : ""
1925
- },
1926
  "no-tabs" : {
1927
  "active" : 0,
1928
  "optionString" : ""
@@ -2154,10 +2127,6 @@
2154
  "require-await" : {
2155
  "active" : 0
2156
  },
2157
- "require-jsdoc" : {
2158
- "active" : 0,
2159
- "optionString" : "{'require': {'FunctionDeclaration': true, 'MethodDefinition': false, 'ClassDeclaration': false, 'ArrowFunctionExpression': false}}"
2160
- },
2161
  "require-unicode-regexp" : {
2162
  "active" : 0
2163
  },
@@ -2243,10 +2212,6 @@
2243
  "active" : 1,
2244
  "optionString" : ""
2245
  },
2246
- "valid-jsdoc" : {
2247
- "active" : 0,
2248
- "optionString" : "{'prefer': {'return': 'returns'}, 'requireReturn': true, 'requireReturnDescription': true, 'requireReturnType': true, 'requireParamDescription': true}"
2249
- },
2250
  "valid-typeof" : {
2251
  "active" : 1,
2252
  "optionString" : "{'requireStringLiterals': true}"
@@ -2515,6 +2480,7 @@
2515
  "createDeclarationFile" : 0,
2516
  "jsxMode" : 0,
2517
  "minifierStyle" : 0,
 
2518
  "moduleResolutionType" : 0,
2519
  "moduleType" : 2,
2520
  "removeComments" : 0,
@@ -2747,6 +2713,10 @@
2747
  "active" : 0,
2748
  "flagValue" : -1
2749
  },
 
 
 
 
2750
  "keep_quoted_props" : {
2751
  "active" : 0,
2752
  "flagValue" : -1
@@ -2771,6 +2741,10 @@
2771
  "active" : 1,
2772
  "flagValue" : 1
2773
  },
 
 
 
 
2774
  "properties" : {
2775
  "active" : 1,
2776
  "flagValue" : -1
@@ -2875,6 +2849,10 @@
2875
  "active" : 0,
2876
  "flagValue" : -1
2877
  },
 
 
 
 
2878
  "wrap_iife" : {
2879
  "active" : 0,
2880
  "flagValue" : -1
7
  "uuidString" : "FDF09C14-788E-4A4D-A218-DA6A56580A0D"
8
  }
9
  ],
10
+ "creatorBuild" : "34418",
11
  "files" : {
12
  "\/admin\/admin-init.php" : {
13
  "cB" : 0,
1332
  "active" : 0,
1333
  "optionString" : "'1tbs', {'allowSingleLine': true}"
1334
  },
 
 
 
 
1335
  "camelcase" : {
1336
  "active" : 0,
1337
  "optionString" : "{'properties': 'always'}"
1423
  "active" : 0,
1424
  "optionString" : "'expression'"
1425
  },
1426
+ "function-call-argument-newline" : {
1427
+ "active" : 0,
1428
+ "optionString" : "'always'"
1429
+ },
1430
  "function-paren-newline" : {
1431
  "active" : 0,
1432
  "optionString" : "'multiline'"
1439
  "active" : 0,
1440
  "optionString" : "{'allowImplicit': false}"
1441
  },
 
 
 
1442
  "grouped-accessor-pairs" : {
1443
  "active" : 0,
1444
  "optionString" : "'anyOrder'"
1446
  "guard-for-in" : {
1447
  "active" : 0
1448
  },
1449
+ "id-denylist" : {
 
 
 
 
1450
  "active" : 0,
1451
  "optionString" : "'data', 'err', 'e', 'cb', 'callback'"
1452
  },
1570
  "active" : 0,
1571
  "optionString" : "{'allow': ['~'], 'int32Hint': true}"
1572
  },
 
 
 
1573
  "no-caller" : {
1574
  "active" : 0
1575
  },
1597
  "no-const-assign" : {
1598
  "active" : 1
1599
  },
1600
+ "no-constant-binary-expression" : {
1601
+ "active" : 0
1602
+ },
1603
  "no-constant-condition" : {
1604
  "active" : 1,
1605
  "optionString" : "{'checkLoops': true}"
1634
  "no-dupe-keys" : {
1635
  "active" : 1
1636
  },
1637
+ "no-duplicate-case" : {
1638
+ "active" : 1
1639
+ },
1640
  "no-duplicate-imports" : {
1641
  "active" : 0,
1642
  "optionString" : "{'includeExports': false}"
1678
  "no-extra-boolean-cast" : {
1679
  "active" : 1
1680
  },
1681
+ "no-extra-label" : {
1682
  "active" : 0
1683
  },
1684
  "no-extra-parens" : {
1766
  "active" : 0,
1767
  "optionString" : "{'groups': [['+', '-', '*', '\/', '%', '**'], ['&', '|', '^', '~', '<<', '>>', '>>>'], ['==', '!=', '===', '!==', '>', '>=', '<', '<='], ['&&', '||'], ['in', 'instanceof']], 'allowSamePrecedence': true}"
1768
  },
 
 
 
 
1769
  "no-mixed-spaces-and-tabs" : {
1770
  "active" : 0,
1771
  "optionString" : ""
1800
  "no-new-object" : {
1801
  "active" : 0
1802
  },
 
 
 
1803
  "no-new-symbol" : {
1804
  "active" : 1
1805
  },
1822
  "active" : 0,
1823
  "optionString" : "{'props': false}"
1824
  },
 
 
 
1825
  "no-plusplus" : {
1826
  "active" : 0,
1827
  "optionString" : "{'allowForLoopAfterthoughts': false}"
1828
  },
 
 
 
 
 
 
1829
  "no-promise-executor-return" : {
1830
  "active" : 0
1831
  },
1851
  "optionString" : "'event', 'fdescribe'"
1852
  },
1853
  "no-restricted-imports" : {
 
 
 
1854
  "active" : 0,
1855
  "optionString" : ""
1856
  },
1896
  "no-sparse-arrays" : {
1897
  "active" : 1
1898
  },
 
 
 
 
1899
  "no-tabs" : {
1900
  "active" : 0,
1901
  "optionString" : ""
2127
  "require-await" : {
2128
  "active" : 0
2129
  },
 
 
 
 
2130
  "require-unicode-regexp" : {
2131
  "active" : 0
2132
  },
2212
  "active" : 1,
2213
  "optionString" : ""
2214
  },
 
 
 
 
2215
  "valid-typeof" : {
2216
  "active" : 1,
2217
  "optionString" : "{'requireStringLiterals': true}"
2480
  "createDeclarationFile" : 0,
2481
  "jsxMode" : 0,
2482
  "minifierStyle" : 0,
2483
+ "moduleDetectionType" : 0,
2484
  "moduleResolutionType" : 0,
2485
  "moduleType" : 2,
2486
  "removeComments" : 0,
2713
  "active" : 0,
2714
  "flagValue" : -1
2715
  },
2716
+ "keep_numbers" : {
2717
+ "active" : 0,
2718
+ "flagValue" : -1
2719
+ },
2720
  "keep_quoted_props" : {
2721
  "active" : 0,
2722
  "flagValue" : -1
2741
  "active" : 1,
2742
  "flagValue" : 1
2743
  },
2744
+ "preserve_annotations" : {
2745
+ "active" : 0,
2746
+ "flagValue" : -1
2747
+ },
2748
  "properties" : {
2749
  "active" : 1,
2750
  "flagValue" : -1
2849
  "active" : 0,
2850
  "flagValue" : -1
2851
  },
2852
+ "wrap_func_args" : {
2853
+ "active" : 1,
2854
+ "flagValue" : -1
2855
+ },
2856
  "wrap_iife" : {
2857
  "active" : 0,
2858
  "flagValue" : -1
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: svg, vector, safesvg, safe svg, sanitization, sanitisation, sanitizer, san
5
  Requires at least: 4.8
6
  Tested up to: 6.0
7
  Requires PHP: 7.2
8
- Stable tag: 2.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -161,6 +161,9 @@ You need to add the mime type for svg and svgz to: "MLA Settings > Media Library
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = 2.5 =
165
  * Cleaned up spelling mistakes and general formatting.
166
  * Addressed security concern.
@@ -378,6 +381,10 @@ You need to add the mime type for svg and svgz to: "MLA Settings > Media Library
378
 
379
  == Upgrade Notice ==
380
 
 
 
 
 
381
  = 2.5 =
382
  Adds new features and addresses a number of recent issues raised. Please take a backup before updating!
383
 
5
  Requires at least: 4.8
6
  Tested up to: 6.0
7
  Requires PHP: 7.2
8
+ Stable tag: 2.5.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
161
 
162
  == Changelog ==
163
 
164
+ = 2.5.1 =
165
+ * Added missing quotes in uninstall.php.
166
+
167
  = 2.5 =
168
  * Cleaned up spelling mistakes and general formatting.
169
  * Addressed security concern.
381
 
382
  == Upgrade Notice ==
383
 
384
+ = 2.5.1 =
385
+ 2.5 Adds new features and addresses a number of recent issues raised. Please take a backup before updating!
386
+ 2.5.1 fixes the uninstall file.
387
+
388
  = 2.5 =
389
  Adds new features and addresses a number of recent issues raised. Please take a backup before updating!
390
 
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.5
7
  Author: Benbodhi
8
  Author URI: https://benbodhi.com
9
  Text Domain: svg-support
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
22
  /**
23
  * Global variables
24
  */
25
- $svgs_plugin_version = '2.5'; // 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.5.1
7
  Author: Benbodhi
8
  Author URI: https://benbodhi.com
9
  Text Domain: svg-support
22
  /**
23
  * Global variables
24
  */
25
+ $svgs_plugin_version = '2.5.1'; // 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
uninstall.php CHANGED
@@ -2,11 +2,9 @@
2
  exit;
3
  }
4
 
5
- $bodhi_options_on_deletion = get_option('bodhi_svgs_settings');
6
 
7
- if( $bodhi_options_on_deletion[del_plugin_data] === 'on' ) {
8
  delete_option( 'bodhi_svgs_plugin_version' );
9
  delete_option( 'bodhi_svgs_settings' );
10
- }
11
-
12
- ?>
2
  exit;
3
  }
4
 
5
+ $bodhi_options_on_deletion = get_option( 'bodhi_svgs_settings' );
6
 
7
+ if ( $bodhi_options_on_deletion[ 'del_plugin_data' ] === 'on' ) {
8
  delete_option( 'bodhi_svgs_plugin_version' );
9
  delete_option( 'bodhi_svgs_settings' );
10
+ }