Skip to content

Commit

Permalink
Bundled Themes: Prevent a fatal error occurring with Twenty Fourteen …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
audrasjb committed Feb 20, 2025
1 parent ee94557 commit fec79b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentyfourteen/inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function 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' ),
)
Expand Down

0 comments on commit fec79b7

Please sign in to comment.