[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 23:56:06 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.3.diff] adjusts things so that the "new" properties are
more visible to IDEs as @flixos90 described [comment:3 earlier]:
* Make `$blog_id` and `$site_id` in `WP_Site` private
* Make `$site_id` in `WP_Network` private
* Add `@property` docs for the class
* Add setters so that the now private properties can still be set by
legacy code.
I started trying to convert the new properties to `int`, but I think that
gets too messy.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36717#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list