From 1967dfe8984b9f20dc0306a12bb0f9bb82f391e0 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 29 Sep 2014 04:03:16 +0000 Subject: [PATCH] In `paginate_links()`, ensure that query string args are propagated to the resulting paginated links. Adds unit tests that use `DOMDocument` since `assertTag` is being deprecated - see #29545, [29746]. Props obenland, wonderboymusic. Fixes #29636. Built from https://develop.svn.wordpress.org/trunk@29780 git-svn-id: http://core.svn.wordpress.org/trunk@29552 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 61665ad5af..5acf4ad605 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -2485,7 +2485,7 @@ function paginate_links( $args = '' ) { 'end_size' => 1, 'mid_size' => 2, 'type' => 'plain', - 'add_args' => false, // array of query args to add + 'add_args' => $query_args, // array of query args to add 'add_fragment' => '', 'before_page_number' => '', 'after_page_number' => ''