diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index a84ffce694..2963113ef0 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -4111,7 +4111,7 @@ function language_attributes( $doctype = 'html' ) { } /** - * Retrieve paginated link for archive post pages. + * Retrieves paginated links for archive post pages. * * Technically, the function can be used to create paginated link list for any * area. The 'base' argument is used to reference the url, which will be used to @@ -4357,6 +4357,16 @@ function paginate_links( $args = '' ) { break; } + /** + * Filters the HTML output of paginated links for archives. + * + * @since 5.7.0 + * + * @param string $r HTML output. + * @param array $args An array of arguments. See paginate_links() for accepted arguments. + */ + $r = apply_filters( 'paginate_links_output', $r, $args ); + return $r; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 2539329e77..61f966b21a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49975'; +$wp_version = '5.7-alpha-49976'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.