Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 5 weeks ago

#20673 closed defect (bug) (wontfix)

Function split() is deprecated

Reported by: gregrobson Owned by:
Milestone: Priority: normal
Severity: trivial Version: 3.3.2
Component: External Libraries Keywords:
Focuses: Cc:


Encountered the following email error from a plugin.

Bei Fen has encountered an error: 8192, Function split() is deprecated, /wp-includes/rss.php, 104

I have checked rss.php, on line 104.

list($ns, $el) = split( ':', $element, 2);[[BR]]

change to

list($ns, $el) = explode( ':', $element, 2);[[BR]]

split() is now deprecated in PHP 5.3

Change History (4)

comment:1 duck_2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

wp-includes/rss.php is an external library that has been deprecated in WordPress (use SimplePie instead) so it will not be changed.

See #16325.

comment:2 SergeyBiryukov2 years ago

  • Component changed from General to External Libraries

comment:3 gregrobson2 years ago

Okay, I'll contact the writer of the Bei Fen plugin - I had 80+ emails in the space of a minute due to it's reliance on this file. This is only from one installation of WordPress!

Didn't realise the deprecated files would not be updated. This is the first time I've ever filed a suspected bug!

comment:4 SergeyBiryukov5 weeks ago

#27382 was marked as a duplicate.

Note: See TracTickets for help on using tickets.