Make WordPress Core

Ticket #39215: 39215.2.patch

File 39215.2.patch, 464 bytes (added by tyxla, 7 years ago)

Improve initial patch by using wp_parse_args() instead of explode()

  • src/wp-includes/taxonomy.php

     
    18771877                $object_ids = array($object_ids);
    18781878        $object_ids = array_map('intval', $object_ids);
    18791879
     1880        if ( is_string( $args ) ) {
     1881                $args = wp_parse_args( $args );
     1882        }
     1883
    18801884        $args['taxonomy'] = $taxonomies;
    18811885        $args['object_ids'] = $object_ids;
    18821886