[wp-trac] [WordPress Trac] #63363: Use is_wp_error() instead of instanceof WP_Error in class-wp-customize-custom-css-setting.php
WordPress Trac
noreply at wordpress.org
Mon Apr 28 10:06:03 UTC 2025
#63363: Use is_wp_error() instead of instanceof WP_Error in class-wp-customize-
custom-css-setting.php
------------------------------+-----------------------------
Reporter: dilipbheda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Keywords: has-patch
Focuses: coding-standards |
------------------------------+-----------------------------
While reviewing the `update` function in `class-wp-customize-custom-css-
setting.php`, I noticed that it uses a direct `instanceof WP_Error` check
instead of the `is_wp_error()` function.
For consistency with WordPress coding standards, direct `instanceof
WP_Error` checks should be replaced with `is_wp_error()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63363>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list