Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit d1487c8

Browse files
author
Ryan Kienstra
committed
Issue #17 : Add is_array() to $should_filter_content conditional.
Before iterating through the settings to unset, Ensure that the settings are in an array, as expected.
1 parent f76b4a6 commit d1487c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

php/class-post-type.php

+2
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@ public function filter_out_settings_if_removed_in_metabox( $content ) {
707707
&&
708708
! empty( $_REQUEST[ $key_for_settings ] )
709709
&&
710+
is_array( $_REQUEST[ $key_for_settings ] )
711+
&&
710712
isset( $_REQUEST[ static::SLUG ] )
711713
&&
712714
wp_verify_nonce( $_REQUEST[ static::SLUG ], static::SLUG . '_settings' )

0 commit comments

Comments
 (0)