Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35658, comment 114


Ignore:
Timestamp:
07/13/2016 02:40:45 PM (9 years ago)
Author:
jtsternberg
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35658, comment 114

    initial v1  
    22> `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. :/
    33
    4 This makes the Object_Type and colon-separated object-type schema sound even more appealing. Now multiply this x every function/filter/etc where you now how to take into account a sub-type, or possibility for a sub-type. Retrofitting the existing type parameter w/ optional colon-separated-sub-type makes a ton of sense to me.
     4This makes the Object_Type and colon-separated object-type schema sound even more appealing. Now multiply this X every function/filter/etc where you now have to take into account a sub-type, or possibility for a sub-type. Retrofitting the existing type parameter w/ optional colon-separated-sub-type makes a ton of sense to me.