[wp-trac] [WordPress Trac] #38082: Allow negative (placeholder) IDs in calls to get_metadata
WordPress Trac
noreply at wordpress.org
Sun Sep 18 22:53:31 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 peterwilsoncc):
Related #37746. [attachment:37746.diff:ticket:37746] replaces `absint()`
with `intval()` and returns false for negative IDs.
I agree with @dd32 that this behaviour ought not be extended.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38082#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list