[wp-trac] [WordPress Trac] #22746: The metadata_exists() function should return the correct value if the get_$meta_type_metadata filter returns a non null value
WordPress Trac
noreply at wordpress.org
Wed Dec 5 00:04:21 UTC 2012
#22746: The metadata_exists() function should return the correct value if the
get_$meta_type_metadata filter returns a non null value
-----------------------------+--------------------------
Reporter: xknown | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: | Severity: normal
Keywords: |
-----------------------------+--------------------------
The line [http://core.trac.wordpress.org/browser/trunk/wp-
includes/meta.php?rev=23043#L324 324] should return $check instead of
true, otherwise the filter doesn't normally work when someone wants to
always return false for a given meta key.
Here's a quick way to reproduce it
{{{
> add_filter('get_user_metadata', '__return_false'); return
metadata_exists('user', 1, 1)
TRUE
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22746>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list