Opened 10 months ago
Closed 9 months ago
#63363 closed defect (bug) (fixed)
Use is_wp_error() instead of instanceof WP_Error in class-wp-customize-custom-css-setting.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | 4.7 |
| Component: | Customize | Keywords: | has-patch commit |
| Focuses: | coding-standards | Cc: |
Description
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().
Change History (3)
This ticket was mentioned in PR #8748 on WordPress/wordpress-develop by @dilipbheda.
10 months ago
#1
Note: See
TracTickets for help on using
tickets.
Introduce in https://core.trac.wordpress.org/changeset/39350