$label =
$pagination_arrow .
$label;
} $content = '';
// Check if the pagination is for Query that inherits the global context
// and handle appropriately.
if ( isset( $block->context
['query'
]['inherit'
] ) &&
$block->context
['query'
]['inherit'
] ) { $filter_link_attributes =
static function() use ( $wrapper_attributes ) { return $wrapper_attributes;
};
add_filter( 'previous_posts_link_attributes',
$filter_link_attributes );
$content =
get_previous_posts_link( $label );
remove_filter( 'previous_posts_link_attributes',
$filter_link_attributes );
} elseif ( 1 !==
$page ) { $content =
sprintf( '<a href="%1$s" %2$s>%3$s</a>',
esc_url( add_query_arg( $page_key,
$page - 1
) ),
$wrapper_attributes,
$label );
} return $content;
}