Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#52466 closed defect (bug) (invalid)

Deprecated wp_no_robots used

Reported by: abcdatos's profile ABCdatos 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)

#1 follow-up: @SergeyBiryukov
3 years ago

  • Keywords close reporter-feedback added

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.

#2 in reply to: ↑ 1 @ABCdatos
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.

#3 @desrosj
3 years ago

  • Keywords close reporter-feedback removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.