mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 15:20:06 +01:00
Bundled Themes: Prevent a fatal error occurring with Twenty Fourteen paginated navigation.
This changeset replaces `array_map( 'urlencode', $query_args )` with `urlencode_deep( $query_args )` in `twentyfourteen_paging_nav()` to prevent a fatal error when an array is provided in the query vars. Props takayukister, pratiklondhe, rinkalpagdar. Fixes #62972. Built from https://develop.svn.wordpress.org/trunk@59851 git-svn-id: http://core.svn.wordpress.org/trunk@59193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54734b4396
commit
bbe792936c
@ -47,7 +47,7 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) :
|
||||
'total' => $wp_query->max_num_pages,
|
||||
'current' => $paged,
|
||||
'mid_size' => 1,
|
||||
'add_args' => array_map( 'urlencode', $query_args ),
|
||||
'add_args' => urlencode_deep( $query_args ),
|
||||
'prev_text' => __( '← Previous', 'twentyfourteen' ),
|
||||
'next_text' => __( 'Next →', 'twentyfourteen' ),
|
||||
)
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59850';
|
||||
$wp_version = '6.8-alpha-59851';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user