diff --git a/wp-includes/post.php b/wp-includes/post.php index 25606cd4e1..0312f6457e 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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 = ''; diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 4fdd4888a2..0d06c51a09 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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