Make WordPress Core

Ticket #36307: 36307.v2.patch

File 36307.v2.patch, 1009 bytes (added by achbed, 8 years ago)

Fix to remove last instances of split()

  • wp-includes/atomlib.php

     
    313313
    314314    function ns_to_prefix($qname, $attr=false) {
    315315        # split 'http://www.w3.org/1999/xhtml:div' into ('http','//www.w3.org/1999/xhtml','div')
    316         $components = split(":", $qname);
     316        $components = explode( ":", $qname );
    317317
    318318        # grab the last one (e.g 'div')
    319319        $name = array_pop($components);
  • wp-includes/rss.php

     
    114114                // check for a namespace, and split if found
    115115                $ns     = false;
    116116                if ( strpos( $element, ':' ) ) {
    117                         list($ns, $el) = split( ':', $element, 2);
     117                        list( $ns, $el ) = explode( ':', $element, 2 );
    118118                }
    119119                if ( $ns and $ns != 'rdf' ) {
    120120                        $this->current_namespace = $ns;