[wp-trac] [WordPress Trac] #59774: Undefined array key when using wp_list_pluck function
WordPress Trac
noreply at wordpress.org
Tue Feb 27 20:55:04 UTC 2024
#59774: Undefined array key when using wp_list_pluck function
-------------------------------------------------+-------------------------
Reporter: iamarunchaitanyajami | Owner:
| hellofromTonya
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.5
Component: General | Version: 5.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests changes- | Focuses:
requested |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests changes-
requested
Comment:
PR 6195 includes the fix and various Core classes to test the different
scenarios of method magics and dynamic properties.
There are instances in Core where the `|| isset( $value->$field )`
approach does not work. For example, [https://github.com/WordPress
/wordpress-develop/pull/6195#issuecomment-1967559491 see the issue] with
`isset()` and `WP_Block`'s `attributes` dynamic property. `isset()` fails.
I think the solution needs more time. While a solution might be possible
before RC1 next week, I'm also thinking a longer soak time is needed to
discover unknown scenarios and impacts.
My suggestion:
* Revert r57698.
* Move the ticket to 6.6 and mark for `early`.
It can be recommitted as early as when 6.5 is branched and `trunk` opens
for 6.6 Alpha.
@swissspidy do you agree?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59774#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list