- Timestamp:
- 08/27/2020 03:06:22 AM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/wp-admin/includes/class-walker-category-checklist.php
r47557 r48882 82 82 } 83 83 84 $args['popular_cats'] = empty( $args['popular_cats'] ) ? array() : $args['popular_cats'];84 $args['popular_cats'] = ! empty( $args['popular_cats'] ) ? array_map( 'intval', $args['popular_cats'] ) : array(); 85 85 86 86 $class = in_array( $category->term_id, $args['popular_cats'], true ) ? ' class="popular-category"' : ''; 87 87 88 $args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats'];88 $args['selected_cats'] = ! empty( $args['selected_cats'] ) ? array_map( 'intval', $args['selected_cats'] ) : array(); 89 89 90 90 if ( ! empty( $args['list_only'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.