[wp-trac] [WordPress Trac] #55161: Full Site Editing: PHP Warning with incomplete presets
WordPress Trac
noreply at wordpress.org
Mon Feb 14 10:47:22 UTC 2022
#55161: Full Site Editing: PHP Warning with incomplete presets
-------------------------------------+-----------------------------
Reporter: jeherve | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: administration
-------------------------------------+-----------------------------
Changes (by swissspidy):
* keywords: has-patch => has-patch needs-testing
* milestone: Awaiting Review => Future Release
Comment:
Instead of `isset( $preset_metadata['value_key'] ) && isset( $preset[
$preset_metadata['value_key'] ] )` you can just combine the `isset()`
calls like so:
`isset( $preset_metadata['value_key'], $preset[
$preset_metadata['value_key'] ] )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55161#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list