Skip to content

Commit 06c30e7

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60215 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a788083 commit 06c30e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wp-includes/customize/class-wp-customize-custom-css-setting.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,10 @@ public function update( $value ) {
197197
)
198198
);
199199

200-
if ( $r instanceof WP_Error ) {
200+
if ( is_wp_error( $r ) ) {
201201
return false;
202202
}
203+
203204
$post_id = $r->ID;
204205

205206
// Cache post ID in theme mod for performance to avoid additional DB query.

0 commit comments

Comments
 (0)