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

See #22074, #11823.


Built from https://develop.svn.wordpress.org/trunk@25169


git-svn-id: http://core.svn.wordpress.org/trunk@25145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2013-08-29 18:54:09 +00:00
parent 0624fe960b
commit 7c1ea6c95c
2 changed files with 4 additions and 4 deletions

View File

@ -3680,14 +3680,14 @@ function get_pages($args = '') {
$hierarchical = false;
$incpages = wp_parse_id_list( $include );
if ( ! empty( $incpages ) )
$inclusions = ' AND ID IN (' . implode( ',', array_map( 'intval', $incpages ) ) . ')';
$inclusions = ' AND ID IN (' . implode( ',', $incpages ) . ')';
}
$exclusions = '';
if ( ! empty( $exclude ) ) {
$expages = wp_parse_id_list( $exclude );
if ( ! empty( $expages ) )
$exclusions = ' AND ID NOT IN (' . implode( ',', array_map( 'intval', $expages ) ) . ')';
$exclusions = ' AND ID NOT IN (' . implode( ',', $expages ) . ')';
}
$author_query = '';

View File

@ -1304,7 +1304,7 @@ function get_terms($taxonomies, $args = '') {
if ( ! empty( $include ) ) {
$exclude = '';
$exclude_tree = '';
$inclusions = implode( ',', array_map( 'intval', wp_parse_id_list( $include ) ) );
$inclusions = implode( ',', wp_parse_id_list( $include ) );
}
if ( ! empty( $inclusions ) )
@ -1325,7 +1325,7 @@ function get_terms($taxonomies, $args = '') {
}
if ( ! empty( $exclude ) ) {
$exterms = array_map( 'intval', wp_parse_id_list( $exclude ) );
$exterms = wp_parse_id_list( $exclude );
if ( empty( $exclusions ) )
$exclusions = implode( ',', $exterms );
else