Opened 2 months ago
Closed 2 months ago
#64636 closed enhancement (fixed)
WP_Theme_JSON: Remove unnecessary array check for value return
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | 6.3 |
| Component: | Editor | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
We should remove the unnecessary array check for value return at the end of the get_property_value() method in WP_Theme_JSON.
<?php if ( is_array( $value ) ) { return $value; } return $value; }
This is a backport of https://github.com/WordPress/gutenberg/pull/75515
Change History (6)
This ticket was mentioned in PR #10928 on WordPress/wordpress-develop by @Soean.
2 months ago
#1
- Keywords has-patch added
#2
@
2 months ago
- Component changed from General to Editor
- Keywords commit added
- Milestone changed from Awaiting Review to 7.0
- Type changed from defect (bug) to enhancement
@westonruter commented on PR #10928:
2 months ago
#4
This issue was introduced in https://github.com/WordPress/gutenberg/commit/ccd529d7a6af as part of https://github.com/WordPress/gutenberg/pull/50366. (Props Gemini for locating that.)
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/64636