Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#58143 closed defect (bug) (invalid)

Deprecated: Function get_page_by_title is deprecated since version 6.2.0!

Reported by: twinkle182 Owned by:
Priority: normal Milestone:
Component: Query Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Hello My site - ​https://vibrant-technology.com/ is using wordpress theme. I'm currently facing the following issue - Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead. in /home/mywebsite/wp-includes/functions.php on line 5413.
Kindly help me to resolve this issue at the earliest.

Change History (2)

#1 @knutsp
4 years ago

  • Component General → Query
  • Resolution → invalid
  • Severity critical → normal
  • Status new → closed

Hello @twinkle182, welcome to Trac and thanks for the ticket.

This place is for WordPress Core development. Individual support takes place here ​https://wordpress.org/support/forum/

A function being deprecated does not mean it will not work or cause errors. It means it has flaws that can't be fixed, there are better replacements, and might theoretically be removed some time in the future.

Errors/warnings should never be displayed front end, only to the error log. So there should not be anything critical in this situation.

I quick search gave me this article ​https://make.wordpress.org/core/2023/03/06/get_page_by_title-deprecated/ If you need more help, please try the forums.

As this is not the right place, I close it as "invalid" (just means not further action here).

Last edited 4 years ago by knutsp (previous) (diff)

#2 @SergeyBiryukov
4 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.