#20673 closed defect (bug) (fixed)
Function split() is deprecated
Reported by: | gregrobson | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | trivial | Version: | 3.3.2 |
Component: | External Libraries | Keywords: | needs-patch |
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
Attachments (1)
Change History (14)
#1
@
13 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
#3
@
13 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!
#7
@
9 years ago
- Keywords has-patch added
- Milestone set to 4.6
- Resolution wontfix deleted
- Status changed from closed to reopened
Although these are external libraries it's in our responsibility to make sure that it doesn't break an install. Since split()
was completely removed in PHP7 we should go with https://core.trac.wordpress.org/attachment/ticket/36307/36307.v2.patch.
It would also allow hosts to more easily upgrade to PHP7.
#8
@
9 years ago
- Owner set to ocean90
- Resolution set to fixed
- Status changed from reopened to closed
In 37402:
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.