Skip to content

Commit fec79b7

Browse files
committed
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
1 parent ee94557 commit fec79b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-content/themes/twentyfourteen/inc/template-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function twentyfourteen_paging_nav() {
4747
'total' => $wp_query->max_num_pages,
4848
'current' => $paged,
4949
'mid_size' => 1,
50-
'add_args' => array_map( 'urlencode', $query_args ),
50+
'add_args' => urlencode_deep( $query_args ),
5151
'prev_text' => __( '← Previous', 'twentyfourteen' ),
5252
'next_text' => __( 'Next →', 'twentyfourteen' ),
5353
)

0 commit comments

Comments
 (0)