mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
General: Add a new filter for the_posts_pagination_args
.
Props pbiron, joyously, audrasjb, robinwpdeveloper. Fixes 53392. Built from https://develop.svn.wordpress.org/trunk@54144 git-svn-id: http://core.svn.wordpress.org/trunk@53703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4229519bec
commit
2608eae664
@ -2870,6 +2870,22 @@ function get_the_posts_pagination( $args = array() ) {
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* Filters the arguments for posts pagination links.
|
||||
*
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @param array $args {
|
||||
* Optional. Default pagination arguments, see paginate_links().
|
||||
*
|
||||
* @type string $screen_reader_text Screen reader text for navigation element.
|
||||
* Default 'Posts navigation'.
|
||||
* @type string $aria_label ARIA label text for the nav element. Default 'Posts'.
|
||||
* @type string $class Custom class for the nav element. Default 'pagination'.
|
||||
* }
|
||||
*/
|
||||
$args = apply_filters( 'the_posts_pagination_args', $args );
|
||||
|
||||
// Make sure we get a string back. Plain is the next best thing.
|
||||
if ( isset( $args['type'] ) && 'array' === $args['type'] ) {
|
||||
$args['type'] = 'plain';
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-54143';
|
||||
$wp_version = '6.1-alpha-54144';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user