Skip to content

Commit 02ff9e6

Browse files
committed
Added strict checking
1 parent 247debf commit 02ff9e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/class-purger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ private function _purge_by_options( $post_id, $blog_id, $_purge_page, $_purge_ar
263263

264264
}
265265

266-
$post_types = get_post_types(array('public' => true));
266+
$post_types = get_post_types( array('public' => true) );
267267

268-
if ( isset($post_types[$_post_type]) || in_array($_post_type, $post_types) ) {
268+
if ( in_array($_post_type, $post_types, true) ) {
269269

270270
$this->log( 'Purging date' );
271271

0 commit comments

Comments
 (0)