#20673 closed defect (bug) (fixed)
Function split() is deprecated
| Reported by: | gregrobson | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | External Libraries | Version: | 3.3.2 |
| Severity: | trivial | Keywords: | needs-patch |
| Cc: | Focuses: |
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)
#3
@
14 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
@
10 years ago
- Keywords has-patch added
- Milestone → 4.6
- Resolution wontfix
- Status closed → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.