Make WordPress Core


Ignore:
Timestamp:
08/29/2013 06:53:03 PM (13 years ago)
Author:
wonderboymusic
Message:

No need to re-map the return values of wp_parse_id_list() to int.

See #22074, #11823.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r25164 r25169  
    13051305                $exclude = '';
    13061306                $exclude_tree = '';
    1307                 $inclusions = implode( ',', array_map( 'intval', wp_parse_id_list( $include ) ) );
     1307                $inclusions = implode( ',', wp_parse_id_list( $include ) );
    13081308        }
    13091309
    … …  
    13261326
    13271327        if ( ! empty( $exclude ) ) {
    1328                 $exterms = array_map( 'intval', wp_parse_id_list( $exclude ) );
     1328                $exterms = wp_parse_id_list( $exclude );
    13291329                if ( empty( $exclusions ) )
    13301330                        $exclusions = implode( ',', $exterms );
Note: See TracChangeset for help on using the changeset viewer.