Opened 6 years ago
Closed 6 years ago
#3233 closed defect (bug) (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( ' » ' ) );
According to wp.org, the passing of a string to this function is deprecated.
This is already fixed for 2.6.
Thanks for reporting this to us!