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

WordPress Trac noreply at wordpress.org
Thu Jun 30 04:13:37 UTC 2016


#35658: Provide additional data for registered meta through register_meta()
-------------------------------------------------+-------------------------
 Reporter:  jeremyfelt                           |       Owner:  helen
     Type:  task (blessed)                       |      Status:  accepted
 Priority:  normal                               |   Milestone:  4.6
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests needs-testing has-  |     Focuses:
  patch rest-api                                 |
-------------------------------------------------+-------------------------

Comment (by georgestephanis):

 Yay merged.

 > + * @type string $sanitize_callback A function or method to call when
 sanitizing `$meta_key` data.

 Shouldn't that line have been

 > + * @type string|array $sanitize_callback A function or method to call
 when sanitizing `$meta_key` data.

 ? As callbacks can be arrays and stuff, if it's a class method?  Also for
 the `$auth_callback` item.

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


More information about the wp-trac mailing list