mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
No need to re-map the return values of wp_parse_id_list()
to int.
See #22074, #11823. git-svn-id: https://develop.svn.wordpress.org/trunk@25169 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f458d16c01
commit
59b9a3a6f8
@ -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 = '';
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user