WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 9 months 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:

Description

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 (5)

comment:1 @duck_3 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 @SergeyBiryukov3 years ago

  • Component changed from General to External Libraries

comment:3 @gregrobson3 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 @SergeyBiryukov13 months ago

#27382 was marked as a duplicate.

comment:5 @SergeyBiryukov9 months ago

#28760 was marked as a duplicate.

Note: See TracTickets for help on using tickets.