From bbe792936c6fdd17be7e47cc590dbcf498f7b6c5 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 20 Feb 2025 23:32:23 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentyfourteen/inc/template-tags.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyfourteen/inc/template-tags.php b/wp-content/themes/twentyfourteen/inc/template-tags.php index 7e48884089..26def1afc0 100644 --- a/wp-content/themes/twentyfourteen/inc/template-tags.php +++ b/wp-content/themes/twentyfourteen/inc/template-tags.php @@ -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' ), ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 61e173895f..a7e9cbdd95 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.