@@ -23,9 +23,9 @@ final class SPCL {
23
23
public static function init () {
24
24
// Skip DOING_X.
25
25
if ( ( defined ( 'DOING_AUTOSAVE ' ) && DOING_AUTOSAVE )
26
- || ( defined ( 'DOING_CRON ' ) && DOING_CRON )
27
- || ( defined ( 'DOING_AJAX ' ) && DOING_AJAX )
28
- || ( defined ( 'XMLRPC_REQUEST ' ) && XMLRPC_REQUEST ) ) {
26
+ || ( defined ( 'DOING_CRON ' ) && DOING_CRON )
27
+ || ( defined ( 'DOING_AJAX ' ) && DOING_AJAX )
28
+ || ( defined ( 'XMLRPC_REQUEST ' ) && XMLRPC_REQUEST ) ) {
29
29
return ;
30
30
}
31
31
@@ -215,8 +215,8 @@ public static function validate_links( $id ) {
215
215
if ( is_wp_error ( $ response ) ) {
216
216
// Response code.
217
217
$ found [] = array (
218
- 'url ' => $ url ,
219
- 'error ' => $ response ->get_error_message (),
218
+ 'url ' => $ url ,
219
+ 'error ' => $ response ->get_error_message (),
220
220
'error_text ' => sprintf (
221
221
/* translators: 1: URL 2: error message, ending with a period already */
222
222
esc_html__ ( 'Check for URL %1$s failed with error: %2$s ' , 'spcl ' ),
@@ -229,8 +229,8 @@ public static function validate_links( $id ) {
229
229
$ code = (int ) wp_remote_retrieve_response_code ( $ response );
230
230
if ( $ code >= 400 && 405 !== $ code ) {
231
231
$ found [] = array (
232
- 'url ' => $ url ,
233
- 'code ' => $ code ,
232
+ 'url ' => $ url ,
233
+ 'code ' => $ code ,
234
234
'error_text ' => sprintf (
235
235
/* translators: 1: URL 2: HTTP status code */
236
236
esc_html__ ( 'Check for URL %1$s failed with status code %2$s. ' , 'spcl ' ),
0 commit comments