diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php
index 2933069025..9a883c2a2e 100644
a
|
b
|
function get_the_posts_pagination( $args = array() ) { |
2870 | 2870 | ) |
2871 | 2871 | ); |
2872 | 2872 | |
| 2873 | /** |
| 2874 | * Filters the arguments for posts pagination links. |
| 2875 | * |
| 2876 | * @since 6.1.0 |
| 2877 | * |
| 2878 | * @param array $args { |
| 2879 | * Optional. Default pagination arguments, see paginate_links(). |
| 2880 | * |
| 2881 | * @type string $screen_reader_text Screen reader text for navigation element. |
| 2882 | * Default 'Posts navigation'. |
| 2883 | * @type string $aria_label ARIA label text for the nav element. Default 'Posts'. |
| 2884 | * @type string $class Custom class for the nav element. Default 'pagination'. |
| 2885 | * } |
| 2886 | */ |
| 2887 | $args = apply_filters( 'the_posts_pagination_args', $args ); |
| 2888 | |
2873 | 2889 | // Make sure we get a string back. Plain is the next best thing. |
2874 | 2890 | if ( isset( $args['type'] ) && 'array' === $args['type'] ) { |
2875 | 2891 | $args['type'] = 'plain'; |