File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
redux-core/inc/extensions/metaboxes Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -866,10 +866,6 @@ private function url_to_postid( string $url ) {
866
866
}
867
867
}
868
868
869
- if ( ( empty ( $ query ['page ' ] ) ) && ( empty ( $ query ['pagename ' ] ) ) ) {
870
- return 0 ;
871
- }
872
-
873
869
$ query = new WP_Query ( $ query );
874
870
875
871
if ( ! empty ( $ query ->posts ) && $ query ->is_singular ) {
@@ -880,7 +876,9 @@ private function url_to_postid( string $url ) {
880
876
if ( isset ( $ query ->query ['post_type ' ] ) && 'product ' === $ query ->query ['post_type ' ] && class_exists ( 'WooCommerce ' ) ) {
881
877
return get_option ( 'woocommerce_shop_page_id ' );
882
878
}
879
+ }
883
880
881
+ if ( ( empty ( $ query ['page ' ] ) ) && ( empty ( $ query ['pagename ' ] ) ) ) {
884
882
return 0 ;
885
883
}
886
884
}
You can’t perform that action at this time.
0 commit comments