Boone Gorges
fb691a449b
In paginate_links(), don't override custom format arguments when setting up default 'add_args'.
...
Since 4.1 [29780], the default value of the 'add_args' argument in
`paginate_links()` has been determined by parsing the current URL. This change
had the side effect of overriding custom values of 'format' that changed the
pagination query var, with the result that plugins using `paginate_links()`
with a custom format generated the incorrect links unless explicitly
declaring 'add_args=false' to prevent the default values from overriding. We
fix this behavior by parsing URL query vars into the 'add_args' array only
after the explicit function params have been parsed, and by skipping the
current page's pagination query var when doing this parsing (to avoid the
override).
Props obenland.
Fixes #30831 for trunk.
Built from https://develop.svn.wordpress.org/trunk@31203
git-svn-id: http://core.svn.wordpress.org/trunk@31184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-01-16 15:49:25 +00:00
..
2014-12-07 03:13:22 +00:00
2015-01-16 03:00:23 +00:00
2014-12-09 19:34:23 +00:00
2014-11-25 06:12:22 +00:00
2015-01-14 21:33:25 +00:00
2014-11-30 21:41:22 +00:00
2014-12-06 21:32:24 +00:00
2015-01-13 07:45:22 +00:00
2015-01-12 16:40:23 +00:00
2014-11-24 04:42:22 +00:00
2015-01-08 07:05:25 +00:00
2015-01-10 06:54:23 +00:00
2015-01-12 16:40:23 +00:00
2015-01-16 01:49:25 +00:00
2015-01-16 01:06:24 +00:00
2014-11-17 17:37:23 +00:00
2015-01-16 01:06:24 +00:00
2015-01-10 06:54:23 +00:00
2014-12-30 20:41:23 +00:00
2015-01-11 22:27:23 +00:00
2014-11-20 16:03:24 +00:00
2015-01-11 00:13:23 +00:00
2015-01-08 21:20:22 +00:00
2015-01-16 01:06:24 +00:00
2015-01-10 06:54:23 +00:00
2015-01-10 06:54:23 +00:00
2015-01-10 06:54:23 +00:00
2014-12-07 00:45:24 +00:00
2015-01-09 10:28:23 +00:00
2015-01-07 07:51:22 +00:00
2015-01-16 01:06:24 +00:00
2014-12-01 01:34:24 +00:00
2015-01-03 22:02:24 +00:00
2015-01-10 06:57:22 +00:00
2015-01-10 06:57:22 +00:00
2015-01-16 01:06:24 +00:00
2015-01-11 01:56:22 +00:00
2015-01-16 01:06:24 +00:00
2015-01-10 23:27:21 +00:00
2014-11-24 04:58:22 +00:00
2015-01-16 01:11:23 +00:00
2015-01-03 04:10:21 +00:00
2015-01-08 21:29:24 +00:00
2015-01-16 02:39:23 +00:00
2015-01-16 01:06:24 +00:00
2014-12-01 01:34:24 +00:00
2015-01-14 16:51:24 +00:00
2015-01-06 01:57:22 +00:00
2015-01-12 16:40:23 +00:00
2014-12-20 22:47:22 +00:00
2015-01-16 01:06:24 +00:00
2014-12-06 21:32:24 +00:00
2014-12-06 21:32:24 +00:00
2014-12-06 21:32:24 +00:00
2014-12-01 01:34:24 +00:00
2015-01-16 03:54:24 +00:00
2015-01-13 00:51:21 +00:00
2015-01-16 05:38:21 +00:00
2015-01-16 02:42:22 +00:00
2015-01-16 15:49:25 +00:00
2014-11-30 23:24:25 +00:00
2015-01-12 16:40:23 +00:00
2015-01-08 07:05:25 +00:00
2015-01-12 00:23:24 +00:00
2015-01-10 04:59:22 +00:00
2015-01-10 06:54:23 +00:00
2014-12-31 20:41:24 +00:00
2015-01-12 16:40:23 +00:00
2015-01-08 07:05:25 +00:00
2015-01-14 05:33:25 +00:00
2015-01-12 16:40:23 +00:00
2014-12-20 22:47:22 +00:00
2015-01-16 01:06:24 +00:00
2014-12-20 22:47:22 +00:00
2015-01-12 16:40:23 +00:00
2015-01-08 07:05:25 +00:00
2014-12-16 05:52:23 +00:00
2014-11-30 22:19:25 +00:00
2015-01-16 01:06:24 +00:00
2015-01-08 07:05:25 +00:00
2015-01-12 16:40:23 +00:00
2015-01-08 07:05:25 +00:00
2015-01-04 23:10:21 +00:00
2015-01-16 01:06:24 +00:00
2015-01-11 22:41:24 +00:00
2014-11-30 22:56:25 +00:00
2015-01-10 06:54:23 +00:00
2015-01-16 01:11:23 +00:00
2014-11-13 15:21:21 +00:00
2015-01-12 16:40:23 +00:00
2015-01-12 16:40:23 +00:00
2015-01-16 01:06:24 +00:00
2015-01-16 01:06:24 +00:00
2015-01-12 16:40:23 +00:00
2015-01-16 01:06:24 +00:00
2015-01-16 15:49:25 +00:00
2015-01-16 01:06:24 +00:00
2015-01-08 08:45:22 +00:00
2015-01-10 22:58:24 +00:00