s[ $principle[0] ] = [ 'value' => $option_value, 'schema' => $principle[1], ]; $ids[] = $option_value; } } if ( \count( $ids ) === 0 ) { // Early return to not run an empty query. return []; } if ( $this->indexable_helper->should_index_indexables() && $this->post_type_helper->is_of_indexable_post_type( 'page' ) ) { $indexables = $this->indexable_repository->find_by_multiple_ids_and_type( \array_unique( $ids ), 'post' ); foreach ( $principle_ids as $key => $principle_id ) { foreach ( $indexables as $indexable ) { if ( $indexable && $principle_id['value'] === $indexable->object_id ) { if ( $indexable->post_status === 'publish' && $indexable->is_protected === false ) { $policies[ $key ] = [ 'permalink' => $indexable->permalink, 'schema' => $principle_id['schema'], ]; } break; } } } return $policies; } foreach ( $principle_ids as $key => $principle_id ) { foreach ( $ids as $post_id ) { $post = \get_post( (int) $post_id ); if ( \is_object( $post ) ) { if ( (int) $principle_id['value'] === (int) $post_id && \get_post_status( $post_id ) === 'publish' && $post->post_password === '' ) { $policies[ $key ] = [ 'permalink' => \get_permalink( $post_id ), 'schema' => $principle_id['schema'], ]; break; } } } } return $policies; } }
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/wordpress-seo-premium/src/integrations/opengraph-post-type.php:1) in /htdocs/wp-includes/pluggable.php on line 1531

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/wordpress-seo-premium/src/integrations/opengraph-post-type.php:1) in /htdocs/wp-includes/pluggable.php on line 1534