Skip to content

Commit

Permalink
Call get_block_wrapper_attributes directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Sep 24, 2021
1 parent 802f437 commit ba98be8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-library/src/query-pagination/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
* @return string Returns the wrapper for the Query pagination.
*/
function render_block_core_query_pagination( $attributes, $content ) {
$wrapper_attributes = get_block_wrapper_attributes();

if ( empty( trim( $content ) ) ) {
return '';
}

return sprintf(
'<div %1$s>%2$s</div>',
$wrapper_attributes,
get_block_wrapper_attributes(),
$content
);
}
Expand Down

0 comments on commit ba98be8

Please sign in to comment.