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
This commit is contained in:
Tammie Lister 2024-05-29 19:43:11 +00:00
parent a22b094047
commit 2fba811824
2 changed files with 12 additions and 3 deletions

View File

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

View File

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