[wp-trac] [WordPress Trac] #37415: We need to check is_array( $wp_meta_keys ) in get_registered_meta_keys().

WordPress Trac noreply at wordpress.org
Tue Jul 19 17:55:30 UTC 2016


#37415: We  need to check    is_array( $wp_meta_keys )    in
get_registered_meta_keys().
--------------------------------+-----------------------------
 Reporter:  vishalkakadiya      |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 We need to check that `global $wp_meta_keys` is actual an array or not. We
 missed that in `get_registered_meta_keys()` function.

 We need to make sure that the `$wp_meta_keys` is array, then only proceed
 and also if not is an array then must return `return array()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37415>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list