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

WordPress Trac noreply at wordpress.org
Wed May 25 22:40:11 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):

 Replying to [comment:5 jeremyfelt]:
 > To recap, we'll get:
 >
 > * `$network->ID`
 > * `$network->site_id`
 > * `$site->ID`
 > * `$site->network_id`

 `id` vs `ID` was covered in core chat today and everyone seems to agree
 that `id` is best.

 So now:

 * `$network->id`
 * `$network->site_id`
 * `$site->id`
 * `$site->network_id`

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


More information about the wp-trac mailing list