#52466 closed defect (bug) (invalid)
Deprecated wp_no_robots used
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 5.7 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Error says it at all in 5.7.0 Beta 1
Got error 'PHP message: PHP Deprecated: wp_no_robots is <strong>deprecated</strong> since version 5.7.0! Use wp_robots_no_robots() instead. in [...]/public_html/wp-includes/functions.php on line 4861'
Change History (3)
#2
in reply to:
↑ 1
@
3 years ago
- Resolution set to invalid
- Status changed from new to closed
Replying to SergeyBiryukov:
Even though the message points to
wp-includes/functions.php
, that's just where the _deprecated_function() message is triggered and not where the function itself is called.
I'm sorry, I think there was a remanent call there.
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to WordPress Trac! Thanks for the report.
Does the issue still happen with all plugins disabled and a default theme (Twenty Twenty-One) activated?
Even though the message points to
wp-includes/functions.php
, that's just where the _deprecated_function() message is triggered and not where the function itself is called.As of [49992] / #51511,
wp_no_robots()
is no longer called anywhere in WordPress core, so the message most likely comes from a plugin or theme. I would suggest trying the support forums if you need any further help in finding out where the deprecated call comes from.