Remove Query Strings From Static Resources - Version 1.4

Version Description

  • Tested for WordPress 4.7.2
  • Added disclaimer to the plugin description
  • Added reference tests for the plugin
  • New contributor and author of the plugin
Download this release

Release Info

Developer speedupmywebsite
Plugin Icon wp plugin Remove Query Strings From Static Resources
Version 1.4
Comparing to
See all releases

Code changes from version 1.3.1 to 1.4

Files changed (2) hide show
  1. readme.txt +65 -11
  2. remove-query-strings.php +12 -6
readme.txt CHANGED
@@ -1,28 +1,82 @@
1
- === Remove Query Strings From Static Resources ===
2
- Contributors: yourwpexpert
3
- Tags: remove, query, strings, static, resources, pingdom, gtmetrix, yslow, pagespeed
 
4
  Requires at least: 3.0.1
5
- Tested up to: 4.6.1
6
- Stable tag: 1.3.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Remove query strings from static resources like CSS & JS files.
11
 
12
  == Description ==
13
- This plugin will remove query strings from static resources like CSS & JS files, and will improve your speed scores in services like PageSpeed, YSlow, Pingdoom and GTmetrix.
14
 
15
- Resources with a “?” or “&” in the URL are not cached by some proxy caching servers, and moving the query string and encode the parameters into the URL will increase your WordPress site performance significant.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  == Installation ==
18
- 1. Upload the `remove-query-strings-from-static-resources` folder to the `/wp-content/plugins/` directory
19
 
20
- 2. Activate the plugin through the 'Plugins' menu in WordPress.
 
 
 
 
 
 
 
 
 
21
 
22
- 3. That's it!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  == Changelog ==
25
 
 
 
 
 
 
 
 
26
  = 1.3.1 =
27
 
28
  * Tested for WordPress 4.6.1
@@ -31,7 +85,7 @@ Resources with a “?” or “&” in the URL are not cached by some proxy cach
31
 
32
  * Remove query strings from static resources disabled in admin section
33
 
34
- * Reverted back to the old remove query strings function, since the new one was to effective
35
 
36
 
37
  = 1.2 =
1
+ === Remove Query Strings From Static Resources ===
2
+ Contributors: speedupmywebsite
3
+ Donate link: https://www.speedupmywebsite.com/
4
+ Tags: remove, query, strings, static, resources, pingdom, gtmetrix, yslow, pagespeed, speed, optimize, performance, cache
5
  Requires at least: 3.0.1
6
+ Tested up to: 4.9.1
7
+ Stable tag: 1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Remove query strings from static resources like CSS & JS files.
12
 
13
  == Description ==
14
+ This plugin will remove query strings from static resources like CSS & JS files inside the HTML `<head>` element to improve your speed scores in services like Pingdom, GTmetrix, PageSpeed and YSlow.
15
 
16
+ = Looking For WordPress Speed Optimization? =
17
+
18
+ Want to speed up your WordPress site, get better rankings in Google, improve your conversions and bring more visitors to your website? Then check out [Speed Up My Website](https://www.speedupmywebsite.com/).
19
+
20
+ = Disclaimer =
21
+
22
+ This plugin will ONLY remove query strings from resources located inside the HTML `<head>` element, any query strings located inside the HTML "body" element shall and will not be removed by this plugin.
23
+
24
+ = Looking For Support? =
25
+
26
+ The plugin author does not provide active support on the wordpress.org forum. Support and requests for custom configurations to the plugin are available at [Speed Up My Website](https://www.speedupmywebsite.com/).
27
+
28
+ = Reference tests using the latest WordPress version =
29
+
30
+ Reference test from: [Pingdom](https://tools.pingdom.com/#!/devpiY/https://www.removequerystringsfromstaticresources.com/)
31
+
32
+ Reference test from: [GTMetrix](https://gtmetrix.com/reports/www.removequerystringsfromstaticresources.com/JHlVY6uO)
33
+
34
+ Reference site: [Remove Query Strings From Static Resources](https://www.removequerystringsfromstaticresources.com/)
35
+
36
+
37
+ = Do you like this plugin? =
38
+
39
+ Please don't hesitate to [leave your feedback here](https://wordpress.org/support/plugin/remove-query-strings-from-static-resources/reviews/#postform).
40
 
41
  == Installation ==
 
42
 
43
+ There are 3 different ways to install Remove Query Strings From Static Resources for WordPress, as with any other wordpress.org plugin.
44
+
45
+ = Using the WordPress dashboard =
46
+
47
+ 1. Navigate to the 'Add New' in the plugins dashboard
48
+ 2. Search for 'Remove Query Strings From Static Resources'
49
+ 3. Click 'Install Now'
50
+ 4. Activate the plugin on the Plugin dashboard
51
+
52
+ = Uploading in WordPress Dashboard =
53
 
54
+ 1. Download the latest version of this plugin from https://wordpress.org/plugins/remove-query-strings-from-static-resources/
55
+ 2. Navigate to the 'Add New' in the plugins dashboard
56
+ 3. Navigate to the 'Upload' area
57
+ 4. Select the zip file (from step 1.) from your computer
58
+ 5. Click 'Install Now'
59
+ 6. Activate the plugin in the Plugin dashboard
60
+
61
+ = Using FTP =
62
+
63
+ 1. Download the latest version of this plugin from https://wordpress.org/plugins/remove-query-strings-from-static-resources/
64
+ 2. Unzip the zip file, which will extract the "remove-query-strings-from-static-resources" directory to your computer
65
+ 3. Upload the "remove-query-strings-from-static-resources directory" to the /wp-content/plugins/ directory in your FTP
66
+ 4. Activate the plugin in the Plugin dashboard
67
+
68
+ == Frequently Asked Questions ==
69
+ Please visit [Speed Up My Website](https://www.speedupmywebsite.com/) if you have any questions or issues with this plugin.
70
 
71
  == Changelog ==
72
 
73
+ = 1.4 =
74
+
75
+ * Tested for WordPress 4.7.2
76
+ * Added disclaimer to the plugin description
77
+ * Added reference tests for the plugin
78
+ * New contributor and author of the plugin
79
+
80
  = 1.3.1 =
81
 
82
  * Tested for WordPress 4.6.1
85
 
86
  * Remove query strings from static resources disabled in admin section
87
 
88
+ * Reverted back to the old remove query strings function, since the new one was too effective
89
 
90
 
91
  = 1.2 =
remove-query-strings.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
- Plugin Name: Remove query strings from static resources
4
- Plugin URI: http://www.yourwpexpert.com/remove-query-strings-from-static-resources-wordpress-plugin/
5
- Description: Remove query strings from static resources like CSS & JS files. This plugin will improve your scores in services like PageSpeed, YSlow, Pingdoom and GTmetrix.
6
- Author: Your WP Expert
7
- Version: 1.3.1
8
- Author URI: http://www.yourwpexpert.com/
9
  */
10
  function _remove_query_strings_1( $src ){
11
  $rqs = explode( '?ver', $src );
@@ -32,4 +32,10 @@ function _remove_query_strings_2( $src ){
32
  add_filter( 'script_loader_src', '_remove_query_strings_2', 15, 1 );
33
  add_filter( 'style_loader_src', '_remove_query_strings_2', 15, 1 );
34
  }
 
 
 
 
 
 
35
  ?>
1
  <?php
2
  /*
3
+ Plugin Name: Remove Query Strings From Static Resources
4
+ Plugin URI: https://www.speedupmywebsite.com/
5
+ Description: Remove query strings from static resources like CSS & JS files to improve your scores in Pingdom, GTmetrix, PageSpeed and YSlow. Support and speed optimization available at <a href="https://www.speedupmywebsite.com/">Speed Up My Website</a>.
6
+ Author: Speed Up My Website
7
+ Version: 1.4
8
+ Author URI: https://www.speedupmywebsite.com/
9
  */
10
  function _remove_query_strings_1( $src ){
11
  $rqs = explode( '?ver', $src );
32
  add_filter( 'script_loader_src', '_remove_query_strings_2', 15, 1 );
33
  add_filter( 'style_loader_src', '_remove_query_strings_2', 15, 1 );
34
  }
35
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'remove_query_strings_link' );
36
+
37
+ function remove_query_strings_link( $links ) {
38
+ $links[] = '<a href="https://www.speedupmywebsite.com/" target="_blank">Speed Up My Website</a>';
39
+ return $links;
40
+ }
41
  ?>