Skip to content
Snippets Groups Projects
Commit abfe98b3 authored by Mohammad Jangda's avatar Mohammad Jangda
Browse files

Regression: fix incorrect empty check in get_site_info

We want to check that the the ID is there if the post exists, not the other way around.
parent a815ef75
No related branches found
No related tags found
No related merge requests found
......@@ -996,7 +996,7 @@ class WP_Push_Syndication_Server {
return array( 'state' => 'new' );
foreach( $slave_post_states as $state => $sites ) {
if( isset( $sites[ $site_ID ] ) && is_array( $sites[ $site_ID ] ) && empty( $sites[ $site_ID ]['ext_ID'] ) ) {
if( isset( $sites[ $site_ID ] ) && is_array( $sites[ $site_ID ] ) && ! empty( $sites[ $site_ID ]['ext_ID'] ) ) {
if( $client->is_post_exists( $sites[ $site_ID ]['ext_ID'] ) ) {
$info = array(
'state' => $state,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment