mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
[28785] introduced a bug, where encoded query arguments were decoded by parse_str()
inside of wp_parse_str()
but never re-encoded later on.
This encodes them, adds unit test. Props obenland. Fixes #29636. Built from https://develop.svn.wordpress.org/trunk@30133 git-svn-id: http://core.svn.wordpress.org/trunk@30133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c19b3d1740
commit
8d0e8942eb
@ -2475,6 +2475,7 @@ function paginate_links( $args = '' ) {
|
||||
|
||||
if ( isset( $url_parts[1] ) ) {
|
||||
wp_parse_str( $url_parts[1], $query_args );
|
||||
$query_args = urlencode_deep( $query_args );
|
||||
}
|
||||
|
||||
$pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link );
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.1-alpha-30132';
|
||||
$wp_version = '4.1-alpha-30133';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user