Skip to:
Content

bbPress.org

Opened 6 years ago

Closed 6 years ago

#3233 closed defect (bug) (fixed)

PHP Depricated warning - get_wp_title_rss

Reported by: venutius's profile Venutius Owned by: johnjamesjacoby's profile 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
6 years 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
6 years 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.