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:
audrasjb 2025-02-20 23:32:23 +00:00
parent 54734b4396
commit bbe792936c
2 changed files with 2 additions and 2 deletions

View File

@ -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' ),
)

View File

@ -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.