[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 2 23:11:09 UTC 2016


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

Comment (by jeremyfelt):

 [attachment:36717.4.diff] casts the new properties to `int` on get and all
 ID properties to `string` on set.

 This seems nice for `WP_Site` because we'll have `id` and `network_id` and
 both will be `int`. It seems less nice for `WP_Network` because `id` will
 still be a string and only `site_id` would be `int`.

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


More information about the wp-trac mailing list