From 349fda670cc4ca5df98e3004a72431981d27b6c0 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 19 Nov 2025 22:24:29 +0000 Subject: [PATCH 1/3] Twenty Twenty-Five: Remove redundant comments for conditionally-defined functions. This also improves consistency with other themes. Follow-up to [59146]. Fixes #64265. See #64226. Props hbhalodia, huzaifaalmesbah. Built from https://develop.svn.wordpress.org/trunk@61272 git-svn-id: http://core.svn.wordpress.org/trunk@60584 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyfive/functions.php | 7 ------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/wp-content/themes/twentytwentyfive/functions.php b/wp-content/themes/twentytwentyfive/functions.php index c97f11755b..8e4acf1e35 100644 --- a/wp-content/themes/twentytwentyfive/functions.php +++ b/wp-content/themes/twentytwentyfive/functions.php @@ -9,7 +9,6 @@ * @since Twenty Twenty-Five 1.0 */ -// Adds theme support for post formats. if ( ! function_exists( 'twentytwentyfive_post_format_setup' ) ) : /** * Adds theme support for post formats. @@ -24,7 +23,6 @@ if ( ! function_exists( 'twentytwentyfive_post_format_setup' ) ) : endif; add_action( 'after_setup_theme', 'twentytwentyfive_post_format_setup' ); -// Enqueues editor-style.css in the editors. if ( ! function_exists( 'twentytwentyfive_editor_style' ) ) : /** * Enqueues editor-style.css in the editors. @@ -39,7 +37,6 @@ if ( ! function_exists( 'twentytwentyfive_editor_style' ) ) : endif; add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' ); -// Enqueues the theme stylesheet on the front. if ( ! function_exists( 'twentytwentyfive_enqueue_styles' ) ) : /** * Enqueues the theme stylesheet on the front. @@ -67,7 +64,6 @@ if ( ! function_exists( 'twentytwentyfive_enqueue_styles' ) ) : endif; add_action( 'wp_enqueue_scripts', 'twentytwentyfive_enqueue_styles' ); -// Registers custom block styles. if ( ! function_exists( 'twentytwentyfive_block_styles' ) ) : /** * Registers custom block styles. @@ -96,7 +92,6 @@ if ( ! function_exists( 'twentytwentyfive_block_styles' ) ) : endif; add_action( 'init', 'twentytwentyfive_block_styles' ); -// Registers pattern categories. if ( ! function_exists( 'twentytwentyfive_pattern_categories' ) ) : /** * Registers pattern categories. @@ -126,7 +121,6 @@ if ( ! function_exists( 'twentytwentyfive_pattern_categories' ) ) : endif; add_action( 'init', 'twentytwentyfive_pattern_categories' ); -// Registers block binding sources. if ( ! function_exists( 'twentytwentyfive_register_block_bindings' ) ) : /** * Registers the post format block binding source. @@ -147,7 +141,6 @@ if ( ! function_exists( 'twentytwentyfive_register_block_bindings' ) ) : endif; add_action( 'init', 'twentytwentyfive_register_block_bindings' ); -// Registers block binding callback function for the post format name. if ( ! function_exists( 'twentytwentyfive_format_binding' ) ) : /** * Callback function for the post format name block binding source. diff --git a/wp-includes/version.php b/wp-includes/version.php index 1c732aac81..60e129862e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61271'; +$wp_version = '7.0-alpha-61272'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. From e7d59738bac56a478299953a8d6430ff7d225493 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Thu, 20 Nov 2025 00:44:30 +0000 Subject: [PATCH 2/3] Docs: Detail 6.9.0 changes for `esc_url_raw()` and `sanitize_url()`. Duplicates the `@since 6.9.0` annotation on `esc_url()` to the two wrapper functions affected by the change. Props peterwilsoncc, westonruter. Fixes #52886. Built from https://develop.svn.wordpress.org/trunk@61273 git-svn-id: http://core.svn.wordpress.org/trunk@60585 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index e6ff44d123..bd2d349fa2 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4594,6 +4594,8 @@ function esc_url( $url, $protocols = null, $_context = 'display' ) { * * @since 2.8.0 * @since 6.1.0 Turned into an alias for sanitize_url(). + * @since 6.9.0 Prepends `https://` to the URL if it does not already contain a scheme + * and the first item in `$protocols` is 'https'. * * @see sanitize_url() * @@ -4612,6 +4614,8 @@ function esc_url_raw( $url, $protocols = null ) { * @since 2.3.1 * @since 2.8.0 Deprecated in favor of esc_url_raw(). * @since 5.9.0 Restored (un-deprecated). + * @since 6.9.0 Prepends `https://` to the URL if it does not already contain a scheme + * and the first item in `$protocols` is 'https'. * * @see esc_url() * diff --git a/wp-includes/version.php b/wp-includes/version.php index 60e129862e..2087200e1e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61272'; +$wp_version = '7.0-alpha-61273'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. From b924099da883c55c513087fef74e59ae626ebfb4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 20 Nov 2025 19:29:34 +0000 Subject: [PATCH 3/3] Docs: Improve description for `wp_insert_post()`. Follow-up to [6379], [8669]. Props rutujaparamane2004. See #64224. Built from https://develop.svn.wordpress.org/trunk@61275 git-svn-id: http://core.svn.wordpress.org/trunk@60587 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 67d4d31f11..b646a2116c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -4435,9 +4435,10 @@ function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) { } /** - * Inserts or update a post. + * Inserts or updates a post in the database. * - * If the $postarr parameter has 'ID' set to a value, then post will be updated. + * If the `$postarr` parameter contains an 'ID', the corresponding post will be updated. + * If not, a new post will be created using the values provided. * * You can set the post date manually, by setting the values for 'post_date' * and 'post_date_gmt' keys. You can close the comments or open the comments by diff --git a/wp-includes/version.php b/wp-includes/version.php index 2087200e1e..dd83be9cac 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61273'; +$wp_version = '7.0-alpha-61275'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.