Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -32,14 +32,10 @@ function render_block_core_query_no_results( $attributes, $content, $block ) {
|
||||
$query = new WP_Query( $query_args );
|
||||
}
|
||||
|
||||
if ( $query->have_posts() ) {
|
||||
if ( $query->post_count > 0 ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( ! $use_global_query ) {
|
||||
wp_reset_postdata();
|
||||
}
|
||||
|
||||
$classes = ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) ? 'has-link-color' : '';
|
||||
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );
|
||||
return sprintf(
|
||||
|
||||
Reference in New Issue
Block a user