[wp-trac] [WordPress Trac] #36717: Allow to access network and site properties using the current naming conventions

WordPress Trac noreply at wordpress.org
Thu Jun 9 18:09:27 UTC 2016


#36717: Allow to access network and site properties using the current naming
conventions
-------------------------------------+------------------------
 Reporter:  flixos90                 |       Owner:  flixos90
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  4.6
Component:  Networks and Sites       |     Version:  4.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  multisite
-------------------------------------+------------------------

Comment (by jeremyfelt):

 In [changeset:"37667"]:
 {{{
 #!CommitTicketReference repository="" revision="37667"
 Multisite: Use `to_array()` method on `WP_Site` objects in
 `wp_get_sites()`

 When an object with private properties is cast directly to an array, those
 properties are no longer available with their original keys.

 Props @flixos90.
 See #36717.
 }}}

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


More information about the wp-trac mailing list