Version Description
Download this release
Release Info
Developer | sstoqnov |
Plugin | SG Optimizer |
Version | 5.2.4 |
Comparing to | |
See all releases |
Code changes from version 5.2.3 to 5.2.4
- core/Helper/Helper.php +19 -0
- readme.txt +3 -0
- sg-cachepress.php +3 -3
core/Helper/Helper.php
CHANGED
@@ -27,6 +27,7 @@ class Helper {
|
|
27 |
add_action( 'init', array( new Install_Service(), 'install' ) );
|
28 |
add_action( 'plugins_loaded', array( $this, 'is_plugin_installed' ) );
|
29 |
add_action( 'init', array( $this, 'hide_warnings_in_rest_api' ) );
|
|
|
30 |
|
31 |
set_error_handler( array( $this, 'error_handler' ) );
|
32 |
|
@@ -247,4 +248,22 @@ class Helper {
|
|
247 |
|
248 |
return trailingslashit( $url );
|
249 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
27 |
add_action( 'init', array( new Install_Service(), 'install' ) );
|
28 |
add_action( 'plugins_loaded', array( $this, 'is_plugin_installed' ) );
|
29 |
add_action( 'init', array( $this, 'hide_warnings_in_rest_api' ) );
|
30 |
+
add_filter( 'xmlrpc_login_error', array( $this, 'filter_xmlrpc_login_error' ), 10, 2 );
|
31 |
|
32 |
set_error_handler( array( $this, 'error_handler' ) );
|
33 |
|
248 |
|
249 |
return trailingslashit( $url );
|
250 |
}
|
251 |
+
|
252 |
+
/**
|
253 |
+
* Send notification to SiteGround on login error
|
254 |
+
*
|
255 |
+
* @since 5.2.4
|
256 |
+
*
|
257 |
+
* @param string $this_error The XML-RPC error message.
|
258 |
+
* @param object $user WP_User object.
|
259 |
+
*
|
260 |
+
* @return string The XML-RPC error message.
|
261 |
+
*/
|
262 |
+
public function filter_xmlrpc_login_error( $this_error, $user ) {
|
263 |
+
if ( function_exists( 'c74ce9b9ffdebe0331d8e43e97206424_notify' ) ) {
|
264 |
+
c74ce9b9ffdebe0331d8e43e97206424_notify( 'wpxmlrpc', getcwd(), 'UNKNOWN' );
|
265 |
+
}
|
266 |
+
|
267 |
+
return $this_error;
|
268 |
+
}
|
269 |
}
|
readme.txt
CHANGED
@@ -169,6 +169,9 @@ Our plugin uses a cookie in order to function properly. It does not store person
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
172 |
= Version 5.2.3 =
|
173 |
* Improved LazyLoad
|
174 |
|
169 |
|
170 |
== Changelog ==
|
171 |
|
172 |
+
= Version 5.2.4 =
|
173 |
+
* Improved XML RCP checks compatibility
|
174 |
+
|
175 |
= Version 5.2.3 =
|
176 |
* Improved LazyLoad
|
177 |
|
sg-cachepress.php
CHANGED
@@ -10,9 +10,9 @@
|
|
10 |
* Plugin Name: SG Optimizer
|
11 |
* Plugin URI: https://siteground.com
|
12 |
* Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
|
13 |
-
* Version: 5.2.
|
14 |
* Author: SiteGround
|
15 |
-
*
|
16 |
* Text Domain: sg-cachepress
|
17 |
* Domain Path: /languages
|
18 |
*/
|
@@ -31,7 +31,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
31 |
|
32 |
// Define version constant.
|
33 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
34 |
-
define( __NAMESPACE__ . '\VERSION', '5.2.
|
35 |
}
|
36 |
|
37 |
// Define slug constant.
|
10 |
* Plugin Name: SG Optimizer
|
11 |
* Plugin URI: https://siteground.com
|
12 |
* Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
|
13 |
+
* Version: 5.2.4
|
14 |
* Author: SiteGround
|
15 |
+
* Author URI: https://www.siteground.com
|
16 |
* Text Domain: sg-cachepress
|
17 |
* Domain Path: /languages
|
18 |
*/
|
31 |
|
32 |
// Define version constant.
|
33 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
34 |
+
define( __NAMESPACE__ . '\VERSION', '5.2.4' );
|
35 |
}
|
36 |
|
37 |
// Define slug constant.
|