[wp-trac] [WordPress Trac] #36717: Allow to access network and site properties using the current naming conventions
WordPress Trac
noreply at wordpress.org
Thu May 26 03:54: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):
Replying to [comment:10 flixos90]:
> Couldn't we, only for the new properties, ensure that when they're read
they return an integer? And then, when setting the property, ensure it's a
string? That would give the new properties a matching type while
preserving backwards-compatibility with the old properties. Or am I
missing something here?
My first thought was that the juggling seems a little out of place for how
much strict typing we **don't** do in core. However, future endpoints will
likely treat `id` as `int` and the DB schema already does, so it probably
won't hurt.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36717#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list