Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 6 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 (6)

#1 @duck_
4 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.

#2 @SergeyBiryukov
4 years ago

  • Component changed from General to External Libraries

#3 @gregrobson
4 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!

#4 @SergeyBiryukov
2 years ago

#27382 was marked as a duplicate.

#5 @SergeyBiryukov
22 months ago

#28760 was marked as a duplicate.

#6 @ocean90
6 weeks ago

#36307 was marked as a duplicate.

Note: See TracTickets for help on using tickets.