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

WordPress Trac noreply at wordpress.org
Wed Jun 8 04:13:06 UTC 2016


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

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37657"]:
 {{{
 #!CommitTicketReference repository="" revision="37657"
 Multisite: Allow access to network and site properties using current
 naming conventions

 * Add magic `__get()`, `__set()`, and `__isset()` methods to `WP_Site` and
 `WP_Network.
 * Provide `(int) $network->site_id` for `(string) $network->blog_id`
 * Provide `(int) $site->id` for `(string) $site->blog_id`
 * Provide `(int) $site->network_id` for `(string) $site->site_id`

 Props flixos90, jeremyfelt.
 Fixes #36717.
 }}}

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


More information about the wp-trac mailing list