Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#37415 closed defect (bug) (fixed)

We need to check is_array( $wp_meta_keys ) in get_registered_meta_keys().

Reported by: vishalkakadiya Owned by: jeremyfelt
Priority: normal Milestone: 4.6
Component: Options, Meta APIs Version: 4.6
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

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().

Attachments (1)

37415.patch (440 bytes ) - added by vishalkakadiya 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @DrewAPicture
10 years ago

  • Keywords has-patch added

Related #37403, #35658.

#2 @jeremyfelt
10 years ago

  • Milestone Awaiting Review4.6
  • Owner set to jeremyfelt
  • Status newreviewing

#3 @jeremyfelt
10 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 38108:

Meta: Ensure $wp_meta_keys is an array in get_registered_meta_keys().

Props vishalkakadiya.
Fixes #37415, See #35658.

Note: See TracTickets for help on using tickets.