diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 3d82ba81b641b..b2711b7c3c11a 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -411,8 +411,8 @@ function the_excerpt() { * @return string Post excerpt. */ function get_the_excerpt( $post = null ) { - if ( is_bool( $post ) ) { - _deprecated_argument( __FUNCTION__, '2.3.0' ); + if ( ! is_null( $post ) && ! is_numeric( $post ) && ! ( $post instanceof WP_Post ) ) { + _deprecated_argument( __FUNCTION__, '2.3.0', __( 'The bool $fakeit argument has been replaced with an int|WP_Post $post argument.' ) ); } $post = get_post( $post );