Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#37415 closed defect (bug) (fixed)

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

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


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 8 years ago.

Download all attachments as: .zip

Change History (4)

#1 @DrewAPicture
8 years ago

  • Keywords has-patch added

Related #37403, #35658.

#2 @jeremyfelt
8 years ago

  • Milestone changed from Awaiting Review to 4.6
  • Owner set to jeremyfelt
  • Status changed from new to reviewing

#3 @jeremyfelt
8 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

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.