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

WordPress Trac noreply at wordpress.org
Wed Jul 13 05:53: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 jeremyfelt):

 Replying to [comment:112 jeremyfelt]:
 > `add_metadata()` does not currently support an `$object_subtype`
 parameter. A new style sanitize filter will not be triggered because
 `add_metadata()` calls `sanitize_meta()` without the object subtype as
 well. We need to add subtype into this part of the process.
 [attachment:35658.39.diff] does this, though 6 parameters on `add_meta()`
 seems like it's stretching it. :/

 This is also the case for `update_metadata()` and
 `update_metadata_by_mid()`, covered in
 https://gist.github.com/jeremyfelt/92c5f4f51716469d4d18582e29bddf65
 because I can't get Trac to let me upload a file. :)

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


More information about the wp-trac mailing list