diff --git a/admin/class-sitemaps-admin.php b/admin/class-sitemaps-admin.php index 15d5b90d126..d2f1fb66fad 100644 --- a/admin/class-sitemaps-admin.php +++ b/admin/class-sitemaps-admin.php @@ -26,9 +26,11 @@ function delete_sitemaps() { if ( $options['enablexmlsitemap'] === true ) { $file_to_check_for = array( - // ABSPATH . 'sitemap.xml', - // ABSPATH . 'sitemap.xslt', - // ABSPATH . 'sitemap.xsl', + /** + * ABSPATH . 'sitemap.xml', + * ABSPATH . 'sitemap.xslt', + * ABSPATH . 'sitemap.xsl', + */ ABSPATH . 'sitemap_index.xml', ); @@ -56,7 +58,6 @@ function delete_sitemaps() { * @param string $new_status New post status. * @param string $old_status Old post status. * @param \WP_Post $post Post object. - */ function status_transition( $new_status, $old_status, $post ) { if ( $new_status != 'publish' ) { diff --git a/admin/index.php b/admin/index.php index 42711ec10ef..e94d9a42cad 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,2 +1,4 @@ users INNER JOIN $wpdb->usermeta ON ($wpdb->users.ID = $wpdb->usermeta.user_id) diff --git a/inc/index.php b/inc/index.php index 42711ec10ef..e94d9a42cad 100644 --- a/inc/index.php +++ b/inc/index.php @@ -1,2 +1,4 @@ '.$resp['body'].''; - if ( ( $resp && ! is_wp_error( $resp ) ) && ( 200 == $resp['response']['code'] && isset( $resp['body'] ) ) ) { $res = preg_match( '`