mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 05:20:01 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@59851 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ee9455762a
commit
fec79b74d7
@ -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' ),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user