[wp-trac] [WordPress Trac] #55523: Remove deprecation notice from get_the_excerpt
WordPress Trac
noreply at wordpress.org
Mon Apr 4 12:04:58 UTC 2022
#55523: Remove deprecation notice from get_the_excerpt
-------------------------------+------------------------------
Reporter: jamesglendenning | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 5.9.2
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> The deprecation notice for is_bool inside `get_the_excerpt` has long been
> redundant, it's been well over a decade since this function took a bool
> value of $fakeit & the deprecation notice is now just making noise, as it
> will still pass this value through to get_post regardless of it it's a
> bool value or not.
>
> The line for this notice is: https://github.com/WordPress/wordpress-
> develop/blob/5.9/src/wp-includes/post-template.php#L408
>
> There was previously a Trac ticket that looked at removing the notice,
> but it looks like it never made it into core:
> https://core.trac.wordpress.org/ticket/27246
New description:
The deprecation notice for is_bool inside `get_the_excerpt` has long been
redundant, it's been well over a decade since this function took a bool
value of $fakeit & the deprecation notice is now just making noise, as it
will still pass this value through to get_post regardless of it it's a
bool value or not.
The line for this notice is: https://github.com/WordPress/wordpress-
develop/blob/5.9/src/wp-includes/post-template.php#L408
There was previously a Trac ticket that looked at removing the notice, but
it looks like it never made it into core: #27246.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55523#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list