Changeset 48880 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 08/27/2020 02:46:22 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r48760 r48880 121 121 122 122 if ( is_array( $parsed_args['selected_cats'] ) ) { 123 $args['selected_cats'] = $parsed_args['selected_cats'];123 $args['selected_cats'] = array_map( 'intval', $parsed_args['selected_cats'] ); 124 124 } elseif ( $post_id ) { 125 125 $args['selected_cats'] = wp_get_object_terms( $post_id, $taxonomy, array_merge( $args, array( 'fields' => 'ids' ) ) ); … … 129 129 130 130 if ( is_array( $parsed_args['popular_cats'] ) ) { 131 $args['popular_cats'] = $parsed_args['popular_cats'];131 $args['popular_cats'] = array_map( 'intval', $parsed_args['popular_cats'] ); 132 132 } else { 133 133 $args['popular_cats'] = get_terms(
Note: See TracChangeset
for help on using the changeset viewer.