[wp-trac] [WordPress Trac] #37369: registered_meta_key_exists() must return only Boolean, not WP_error as it is used by unregister_meta_key() and get_registered_metadata() which alredy return WP_error

WordPress Trac noreply at wordpress.org
Sat Jul 16 22:28:03 UTC 2016


#37369: registered_meta_key_exists()  must return only Boolean, not WP_error as it
is used by unregister_meta_key() and get_registered_metadata() which alredy
return WP_error
--------------------------------+--------------------
 Reporter:  vishalkakadiya      |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  4.6
Component:  Options, Meta APIs  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+--------------------

Comment (by jeremyfelt):

 Thanks for the ticket and patch @vishalkakadiya. I've incorporated the
 boolean return type in the latest patch on #35658.

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


More information about the wp-trac mailing list