[wp-trac] [WordPress Trac] #38082: Allow negative (placeholder) IDs in calls to get_metadata

WordPress Trac noreply at wordpress.org
Sun Sep 18 05:25:50 UTC 2016


#38082: Allow negative (placeholder) IDs in calls to get_metadata
------------------------------------+------------------
 Reporter:  westonruter             |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  4.7
Component:  Options, Meta APIs      |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------

Comment (by westonruter):

 And #38072 is about removing the use of such negative IDs as placeholders.

 Nevertheless, the `get_{$meta_type}_metadata` filter is actually like
 `pre` filters elsewhere, as it short-circuits the filter returns a value.
 It is similar to `pre_option_{$option}` in this regard.

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


More information about the wp-trac mailing list