Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#58143 closed defect (bug) (invalid)

Deprecated: Function get_page_by_title is deprecated since version 6.2.0!

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

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
2 years ago

  • Component changed from General to Query
  • Resolution set to invalid
  • Severity changed from critical to normal
  • Status changed from new to 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 2 years ago by knutsp (previous) (diff)

#2 @SergeyBiryukov
2 years ago

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