From 2fba811824ecdfbcb84a98e196f400984ab3036b Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Wed, 29 May 2024 19:43:11 +0000 Subject: [PATCH] Twenty Seventeen: Updates docblock for function. The new function twentyseventeen_should_show_featured_image was missing documentation for the custom filter. This brings that in. Props poena. Fixes #39281. Built from https://develop.svn.wordpress.org/trunk@58237 git-svn-id: http://core.svn.wordpress.org/trunk@57700 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/functions.php | 13 +++++++++++-- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index fcc9f78ebd..968c4a675f 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -690,8 +690,17 @@ if ( ! function_exists( 'wp_get_list_item_separator' ) ) : endif; /** - * If a regular post or page, and not the front page, show the featured image below the header. - * Using get_queried_object_id() here since the $post global may not be set before a call to the_post(). + * Show the featured image below the header on single posts and pages, unless the + * page is the front page. + * + * Use the filter `twentyseventeen_should_show_featured_image` in a child theme or + * plugin to change when the image is shown. This example prevents the image + * from showing: + * + * add_filter( + * 'twentyseventeen_should_show_featured_image', + * '__return_false' + * ); * * @since Twenty Seventeen 3.7 * diff --git a/wp-includes/version.php b/wp-includes/version.php index a99bd7de9e..0baf3eb2b9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58236'; +$wp_version = '6.6-alpha-58237'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.