Pages must be published to be valid (https://github.com/woocommerce/woocommerce-blocks/pull/3843)
This commit is contained in:
parent
51789e2105
commit
be4d32d705
|
@ -239,7 +239,7 @@ class Assets {
|
|||
if ( is_numeric( $page ) && $page > 0 ) {
|
||||
$page = get_post( $page );
|
||||
}
|
||||
if ( ! is_a( $page, '\WP_Post' ) ) {
|
||||
if ( ! is_a( $page, '\WP_Post' ) || 'publish' !== $page->post_status ) {
|
||||
return [
|
||||
'id' => 0,
|
||||
'title' => '',
|
||||
|
|
Loading…
Reference in New Issue