Skip to:
Content

Opened 3 months ago

Closed 3 months ago

#3233 closed defect (fixed)

PHP Depricated warning - get_wp_title_rss

Reported by: Venutius Owned by: johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General Keywords: needs-patch
Cc:

Description

I've been getting an occasional error:

[23-Nov-2018 19:42:06 UTC] PHP Notice: get_wp_title_rss was called with an argument that is <strong>deprecated</strong> since version 4.4.0! Use the <code>document_title_separator</code> filter instead. in /wp-includes/functions.php on line 4045

functions.php line 4045 is simply where the error code was generated so not very helpful. I searched my codebase and I think I've found the culprit in plugins/bbpress/includes/replies/functions.php.

Here, in line 1990 there is:

$title = apply_filters( 'wp_title_rss', get_wp_title_rss( ' &#187; ' ) );

According to wp.org, the passing of a string to this function is deprecated.

Change History (2)

#1 @johnjamesjacoby
3 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 2.6
  • Owner set to johnjamesjacoby
  • Status changed from new to assigned

#2 @johnjamesjacoby
3 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

This is already fixed for 2.6.

Thanks for reporting this to us!

Note: See TracTickets for help on using tickets.