From d95e220e4eb0d1437b104c8db4b41da01cf24ea2 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Tue, 11 Oct 2016 12:00:09 -0400 Subject: [PATCH] Ensure that the value 'off' is properly read as a false boolean. --- includes/class-wp-push-syndication-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wp-push-syndication-server.php b/includes/class-wp-push-syndication-server.php index e1524a9..56711d3 100644 --- a/includes/class-wp-push-syndication-server.php +++ b/includes/class-wp-push-syndication-server.php @@ -191,7 +191,7 @@ public function manage_columns( $column_name, $id ) { break; case 'site_status': $site_status = get_post_meta( $id, 'syn_site_enabled', true ); - if ( ! $site_status ) { + if ( ! filter_var( $site_status, FILTER_VALIDATE_BOOLEAN ) ) { esc_html_e( 'disabled', 'push-syndication' ); } else { esc_html_e( 'enabled', 'push-syndication' );