Version Description
Download this release
Release Info
Developer | dipakcg |
Plugin | WP Performance Score Booster |
Version | 1.9.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.2 to 1.9.2.1
- readme.txt +7 -3
- wp-performance-score-booster.php +9 -6
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: performance, speed, gzip, booster, query string
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.9.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -58,12 +58,16 @@ Alternatively, you can open a [support thread](http://wordpress.org/support/plug
|
|
58 |
1. Admin Settings
|
59 |
|
60 |
== Changelog ==
|
61 |
-
= 1.9.2, May
|
|
|
|
|
|
|
|
|
62 |
* Fixed bug with Review Plugin notice.
|
63 |
* - Review Plugin notice is now dismissible (permanently) when a user click the (X) on the top right.
|
64 |
* Improved user experience (by implementing jQuery - Ajax calls).
|
65 |
|
66 |
-
= 1.9.1, May 02,
|
67 |
* Added Review Plugin - admin notice
|
68 |
* Improved Recommendations tab
|
69 |
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.9.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
58 |
1. Admin Settings
|
59 |
|
60 |
== Changelog ==
|
61 |
+
= 1.9.2.1, May 26, 2018 =
|
62 |
+
* Fixed jQuery conflict with Review Plugin notice.
|
63 |
+
* Fixed minor typo
|
64 |
+
|
65 |
+
= 1.9.2, May 11, 2018 =
|
66 |
* Fixed bug with Review Plugin notice.
|
67 |
* - Review Plugin notice is now dismissible (permanently) when a user click the (X) on the top right.
|
68 |
* Improved user experience (by implementing jQuery - Ajax calls).
|
69 |
|
70 |
+
= 1.9.1, May 02, 2018 =
|
71 |
* Added Review Plugin - admin notice
|
72 |
* Improved Recommendations tab
|
73 |
|
wp-performance-score-booster.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Performance Score Booster
|
4 |
Plugin URI: https://github.com/dipakcg/wp-performance-score-booster
|
5 |
Description: Speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix.
|
6 |
-
Version: 1.9.2
|
7 |
Author: Dipak C. Gajjar
|
8 |
Author URI: https://dipakgajjar.com
|
9 |
Text Domain: wp-performance-score-booster
|
@@ -16,7 +16,7 @@ include_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); // to is_plugin_activ
|
|
16 |
|
17 |
// Define plugin version for future releases
|
18 |
if (!defined('WPPSB_PLUGIN_VERSION')) {
|
19 |
-
define('WPPSB_PLUGIN_VERSION', '1.9.2');
|
20 |
}
|
21 |
|
22 |
define( 'WPPSB_PATH', WP_PLUGIN_DIR . '/' . basename( dirname( __FILE__ ) ) ); // plugin Path
|
@@ -61,6 +61,9 @@ function wppsb_master_admin_init () {
|
|
61 |
// check for admin notice dismissal
|
62 |
if ( isset( $_POST['wppsb-already-reviewed'] ) ) {
|
63 |
update_option( 'wppsb_review_notice', "" );
|
|
|
|
|
|
|
64 |
}
|
65 |
|
66 |
// display admin notice after 30 days if clicked 'May be later'
|
@@ -72,7 +75,7 @@ function wppsb_master_admin_init () {
|
|
72 |
$install_date = get_option( 'wppsb_activation_date' );
|
73 |
$past_date = strtotime( '-30 days' );
|
74 |
|
75 |
-
if ( $past_date >= $install_date ) {
|
76 |
update_option( 'wppsb_review_notice', "on" );
|
77 |
delete_option( 'wppsb_activation_date' );
|
78 |
}
|
@@ -222,7 +225,7 @@ function wppsb_submit_review_notice() {
|
|
222 |
|
223 |
$notice_contents = "<p> Thank you for using <strong>WP Performance Score Booster</strong>. </p>";
|
224 |
$notice_contents .= "<p> Could you please do me a BIG favour and give this plugin a 5-star rating on WordPress? It will help me spread the word and boost my motivation. — Dipak C. Gajjar </p>";
|
225 |
-
$notice_contents .= "<p> <a href=\"#\"id=\"letMeReview\" class=\"button button-primary\">Yes, you deserve it</a> <a href=\"#\" id=\"willReviewLater\" class=\"button button-primary\">
|
226 |
?>
|
227 |
<div class="notice notice-info is-dismissible" id="wppsb-review-notice"> <?php _e($notice_contents, 'wp-performance-score-booster'); ?> </div>
|
228 |
<script type="text/javascript">
|
@@ -272,13 +275,13 @@ function wppsb_submit_review_notice() {
|
|
272 |
});
|
273 |
});
|
274 |
/* If top-right X button clicked */
|
275 |
-
$j(
|
276 |
$j.ajax({
|
277 |
url: loc,
|
278 |
type: 'POST',
|
279 |
data: {
|
280 |
"wppsb-already-reviewed": ''
|
281 |
-
}
|
282 |
});
|
283 |
});
|
284 |
});
|
3 |
Plugin Name: WP Performance Score Booster
|
4 |
Plugin URI: https://github.com/dipakcg/wp-performance-score-booster
|
5 |
Description: Speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix.
|
6 |
+
Version: 1.9.2.1
|
7 |
Author: Dipak C. Gajjar
|
8 |
Author URI: https://dipakgajjar.com
|
9 |
Text Domain: wp-performance-score-booster
|
16 |
|
17 |
// Define plugin version for future releases
|
18 |
if (!defined('WPPSB_PLUGIN_VERSION')) {
|
19 |
+
define('WPPSB_PLUGIN_VERSION', '1.9.2.1');
|
20 |
}
|
21 |
|
22 |
define( 'WPPSB_PATH', WP_PLUGIN_DIR . '/' . basename( dirname( __FILE__ ) ) ); // plugin Path
|
61 |
// check for admin notice dismissal
|
62 |
if ( isset( $_POST['wppsb-already-reviewed'] ) ) {
|
63 |
update_option( 'wppsb_review_notice', "" );
|
64 |
+
if ( get_option( 'wppsb_activation_date' ) ) {
|
65 |
+
delete_option( 'wppsb_activation_date' );
|
66 |
+
}
|
67 |
}
|
68 |
|
69 |
// display admin notice after 30 days if clicked 'May be later'
|
75 |
$install_date = get_option( 'wppsb_activation_date' );
|
76 |
$past_date = strtotime( '-30 days' );
|
77 |
|
78 |
+
if ( FALSE !== get_option( 'wppsb_activation_date' ) && $past_date >= $install_date ) {
|
79 |
update_option( 'wppsb_review_notice', "on" );
|
80 |
delete_option( 'wppsb_activation_date' );
|
81 |
}
|
225 |
|
226 |
$notice_contents = "<p> Thank you for using <strong>WP Performance Score Booster</strong>. </p>";
|
227 |
$notice_contents .= "<p> Could you please do me a BIG favour and give this plugin a 5-star rating on WordPress? It will help me spread the word and boost my motivation. — Dipak C. Gajjar </p>";
|
228 |
+
$notice_contents .= "<p> <a href=\"#\"id=\"letMeReview\" class=\"button button-primary\">Yes, you deserve it</a> <a href=\"#\" id=\"willReviewLater\" class=\"button button-primary\">Maybe later</a> <a href=\"#\" id=\"alredyReviewed\" class=\"button button-primary\">I already did it</a> </p>";
|
229 |
?>
|
230 |
<div class="notice notice-info is-dismissible" id="wppsb-review-notice"> <?php _e($notice_contents, 'wp-performance-score-booster'); ?> </div>
|
231 |
<script type="text/javascript">
|
275 |
});
|
276 |
});
|
277 |
/* If top-right X button clicked */
|
278 |
+
$j(document).on('click', '#wppsb-review-notice .notice-dismiss', function() {
|
279 |
$j.ajax({
|
280 |
url: loc,
|
281 |
type: 'POST',
|
282 |
data: {
|
283 |
"wppsb-already-reviewed": ''
|
284 |
+
}
|
285 |
});
|
286 |
});
|
287 |
});
|