mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
External Libraries: Replace split()
with explode()
in the deprecated Atom and MagpieRSS files.
Before PHP7 `split()` was throwing a deprecated notice, in PHP7 the function is completely removed and throws a fatal error. Props achbed. Fixes #20673. Built from https://develop.svn.wordpress.org/trunk@37402 git-svn-id: http://core.svn.wordpress.org/trunk@37368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c33e975f46
commit
b5718124c3
@ -313,7 +313,7 @@ class AtomParser {
|
||||
|
||||
function ns_to_prefix($qname, $attr=false) {
|
||||
# split 'http://www.w3.org/1999/xhtml:div' into ('http','//www.w3.org/1999/xhtml','div')
|
||||
$components = split(":", $qname);
|
||||
$components = explode(":", $qname);
|
||||
|
||||
# grab the last one (e.g 'div')
|
||||
$name = array_pop($components);
|
||||
|
@ -114,7 +114,7 @@ class MagpieRSS {
|
||||
// check for a namespace, and split if found
|
||||
$ns = false;
|
||||
if ( strpos( $element, ':' ) ) {
|
||||
list($ns, $el) = split( ':', $element, 2);
|
||||
list($ns, $el) = explode( ':', $element, 2);
|
||||
}
|
||||
if ( $ns and $ns != 'rdf' ) {
|
||||
$this->current_namespace = $ns;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37383';
|
||||
$wp_version = '4.6-alpha-37402';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user