[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
Mon Mar 17 19:38:20 UTC 2014


#22746: The metadata_exists() function should return the correct value if the
get_$meta_type_metadata filter returns a non null value
--------------------------------+------------------
 Reporter:  xknown              |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  3.9
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+------------------
Changes (by nacin):

 * keywords:  has-patch needs-unit-tests needs-docs => has-patch


Comment:

 Replying to [comment:4 SergeyBiryukov]:
 > > Cast to bool to match the metadata_exists() documentation.
 >
 > I think the documentation should be changed to `@return mixed` instead

 This is for metadata_exists(), not get_metadata(). It either exists or
 doesn't.

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


More information about the wp-trac mailing list