[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()

WordPress Trac noreply at wordpress.org
Sun Jan 31 11:47:50 UTC 2016


#35658: Provide additional data for registered meta through register_meta()
------------------------------------------+------------------------------
 Reporter:  jeremyfelt                    |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Options, Meta APIs            |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by akibjorklund):

 While it is a cool idea to default the last parameter of `get_post_meta`
 according to the registered meta, I think we ''do'' have to worry about
 backwards compatibility there. Say your favorite meta UI plugin starts to
 use this API and the third parameter of `get_post_meta` changes the
 default for those now registered fields. Now, things will suddenly break
 for code that has already been developed against the old behavior. To
 prevent that, the plugin cannot start using the new API without changing
 their API.

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


More information about the wp-trac mailing list