- Timestamp:
- 06/28/2020 02:28:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r47879 r48203 486 486 } 487 487 488 // Return if the post type doesn't have post formats or if we're in the Trash. 489 if ( ! is_object_in_taxonomy( $post_type, 'post_format' ) || $this->is_trash ) { 490 return; 491 } 492 488 493 // Make sure the dropdown shows only formats with a post count greater than 0. 489 494 $used_post_formats = get_terms( … … 494 499 ); 495 500 496 /* 497 * Return if the post type doesn't have post formats, or there are no posts using formats, 498 * or if we're in the Trash. 499 */ 500 if ( ! is_object_in_taxonomy( $post_type, 'post_format' ) || ! $used_post_formats || $this->is_trash ) { 501 // Return if there are no posts using formats. 502 if ( ! $used_post_formats ) { 501 503 return; 502 504 }
Note: See TracChangeset
for help on using the changeset viewer.