From 021196cace3cced3c7f85520e80892ab5dcdae5a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 2 May 2025 14:19:26 +0000 Subject: [PATCH] Coding Standards: Use `is_wp_error()` in `WP_Customize_Custom_CSS_Setting`. This brings more consistency with similar checks elsewhere in core. Follow-up to [39350]. Props dilipbheda, mukesh27. Fixes #63363. Built from https://develop.svn.wordpress.org/trunk@60215 git-svn-id: http://core.svn.wordpress.org/trunk@59551 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../customize/class-wp-customize-custom-css-setting.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/customize/class-wp-customize-custom-css-setting.php b/wp-includes/customize/class-wp-customize-custom-css-setting.php index 0e6132f339..aab0e47530 100644 --- a/wp-includes/customize/class-wp-customize-custom-css-setting.php +++ b/wp-includes/customize/class-wp-customize-custom-css-setting.php @@ -197,9 +197,10 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting { ) ); - if ( $r instanceof WP_Error ) { + if ( is_wp_error( $r ) ) { return false; } + $post_id = $r->ID; // Cache post ID in theme mod for performance to avoid additional DB query. diff --git a/wp-includes/version.php b/wp-includes/version.php index fba2a1d5d9..62f039a94d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60213'; +$wp_version = '6.9-alpha-60215'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.