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:
Tony Volpe
2023-12-05 23:05:59 +00:00
parent ba16964e7a
commit 725d3043d5
1463 changed files with 142461 additions and 89421 deletions

View File

@@ -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(