From 262ab10fedfbe5970af04329f128c15528aaf91f Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sun, 19 Oct 2025 21:11:40 +0000 Subject: [PATCH] Themes: Remove caching todo from `get_uploaded_header_images()`. Remove the note to introduce caching to `get_uploaded_header_images()` as caching has since been introduced to `WP_Query` and therefore `get_posts()`. The comment is out of date. Props audrasjb, desrosj, flixos90, mukesh27, pbearne, pbiron, sachinrajcp123, sergeybiryukov, swissspidy, westonruter, whyisjake. See #49446, #63168. Built from https://develop.svn.wordpress.org/trunk@60979 git-svn-id: http://core.svn.wordpress.org/trunk@60315 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 1 - wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index c2a3a7e838..1a84314777 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1500,7 +1500,6 @@ function header_image() { function get_uploaded_header_images() { $header_images = array(); - // @todo Caching. $headers = get_posts( array( 'post_type' => 'attachment', diff --git a/wp-includes/version.php b/wp-includes/version.php index f8ed1d08a4..c666e95061 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60978'; +$wp_version = '6.9-alpha-60979'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.