Skip to content

Commit 6527f31

Browse files
committed
feat: Improve deprecation notice in get_the_excerpt function to clarify argument changes
1 parent 69c6b7f commit 6527f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/post-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function the_excerpt() {
412412
*/
413413
function get_the_excerpt( $post = null ) {
414414
if ( ! is_null( $post ) && ! is_numeric( $post ) && ! ( $post instanceof WP_Post ) ) {
415-
_deprecated_argument( __FUNCTION__, '2.3.0' );
415+
_deprecated_argument( __FUNCTION__, '2.3.0', __( 'The bool $fakeit argument has been replaced with an int|WP_Post $post argument.' ) );
416416
}
417417

418418
$post = get_post( $post );

0 commit comments

Comments
 (0)