[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()
WordPress Trac
noreply at wordpress.org
Fri Jul 15 19:12:46 UTC 2016
#35658: Provide additional data for registered meta through register_meta()
-------------------------------------------------+-------------------------
Reporter: jeremyfelt | Owner: helen
Type: task (blessed) | Status: accepted
Priority: high | Milestone: 4.6
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests needs-testing has- | Focuses:
patch rest-api needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by MikeSchinkel):
Replying to [comment:129 sc0ttkclark]:
> Still open to further feedback.
I would like to advocate that `WP_Curie` instances be immutable and that
they be dispensed from a factory class that checks to see if one exists
for the prefix/reference yet and returns it if so or instantiates it and
keep track of it if not.
My former `WP_Object_Type` class used this approach in
[https://core.trac.wordpress.org/attachment/ticket/35658/35658.17.diff
35658.17.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:132>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list