mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Comments: Avoid a PHP notice in paginate_comments_links() if type argument is set to array.
The function is a wrapper for `paginate_links()`, which returns an array if requested. Props anantajitjg. Fixes #43299. git-svn-id: https://develop.svn.wordpress.org/trunk@42703 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3768,7 +3768,7 @@ function language_attributes( $doctype = 'html' ) {
|
||||
* @type string $before_page_number A string to appear before the page number. Default empty.
|
||||
* @type string $after_page_number A string to append after the page number. Default empty.
|
||||
* }
|
||||
* @return array|string|void String of page links or array of page links.
|
||||
* @return string|array|void String of page links or array of page links.
|
||||
*/
|
||||
function paginate_links( $args = '' ) {
|
||||
global $wp_query, $wp_rewrite;
|
||||
|
||||
Reference in New Issue
Block a user