mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Posts, Post Types: Introduce a filter paginate_links()
output.
Props sabernhardt, audrasjb, re.ardestani. Fixes #44018. Built from https://develop.svn.wordpress.org/trunk@49976 git-svn-id: http://core.svn.wordpress.org/trunk@49677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b88116d24f
commit
b5953b551e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user