[wp-trac] [WordPress Trac] #61039: Interactivity API: Some property access does not work well in server directives

WordPress Trac noreply at wordpress.org
Thu Apr 18 16:05:02 UTC 2024


#61039: Interactivity API: Some property access does not work well in server
directives
-------------------------+------------------------------
 Reporter:  jonsurrell   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by jonsurrell):

 [https://developer.wordpress.org/reference/classes/wpdb/get_results/
 wpdb::get_results] by default returns an array (the rows) of objects by
 default. That's one example where this type of property access would be
 handy.

 Using the `$wpdb->get_results( …, ARRAY_A )` does provide associative
 arrays for each row which can be accessed from the Interactivity API
 without issues.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61039#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list