From 581bc56b1661c7d089fc1e73fda4c67ecd2b1f0d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 18 May 2020 12:53:34 +0000 Subject: [PATCH] Themes: Remove extra whitespace from `wp-admin/includes/ajax-actions.php` and `wp-admin/includes/theme.php`. Follow-up to [47816]. See #48491. git-svn-id: https://develop.svn.wordpress.org/trunk@47818 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/ajax-actions.php | 4 ++-- src/wp-admin/includes/theme.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index f7e03b191e..5b740af44c 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -3573,8 +3573,8 @@ function wp_ajax_query_themes() { $theme->num_ratings = number_format_i18n( $theme->num_ratings ); $theme->preview_url = set_url_scheme( $theme->preview_url ); - $theme->compatible_wp = is_wp_version_compatible( $theme->requires ); - $theme->compatible_php = is_php_version_compatible( $theme->requires_php ); + $theme->compatible_wp = is_wp_version_compatible( $theme->requires ); + $theme->compatible_php = is_php_version_compatible( $theme->requires_php ); } wp_send_json_success( $api ); diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index efdb4fa53a..09473c1a50 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -692,8 +692,8 @@ function wp_prepare_themes_for_js( $themes = null ) { 'authorAndUri' => $theme->display( 'Author' ), 'tags' => $theme->display( 'Tags' ), 'version' => $theme->get( 'Version' ), - 'compatibleWP' => is_wp_version_compatible( $theme->get( 'RequiresWP' ) ), - 'compatiblePHP' => is_php_version_compatible( $theme->get( 'RequiresPHP' ) ), + 'compatibleWP' => is_wp_version_compatible( $theme->get( 'RequiresWP' ) ), + 'compatiblePHP' => is_php_version_compatible( $theme->get( 'RequiresPHP' ) ), 'parent' => $parent, 'active' => $slug === $current_theme, 'hasUpdate' => isset( $updates[ $slug ] ),