Skip to content

Commit 103c23c

Browse files
committed
Tweak metaboxes.
Signed-off-by: Kev Provance <kevin.provance@gmail.com>
1 parent b5daa9e commit 103c23c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,10 +866,6 @@ private function url_to_postid( string $url ) {
866866
}
867867
}
868868

869-
if ( ( empty( $query['page'] ) ) && ( empty( $query['pagename'] ) ) ) {
870-
return 0;
871-
}
872-
873869
$query = new WP_Query( $query );
874870

875871
if ( ! empty( $query->posts ) && $query->is_singular ) {
@@ -880,7 +876,9 @@ private function url_to_postid( string $url ) {
880876
if ( isset( $query->query['post_type'] ) && 'product' === $query->query['post_type'] && class_exists( 'WooCommerce' ) ) {
881877
return get_option( 'woocommerce_shop_page_id' );
882878
}
879+
}
883880

881+
if ( ( empty( $query['page'] ) ) && ( empty( $query['pagename'] ) ) ) {
884882
return 0;
885883
}
886884
}

0 commit comments

Comments
 (0)