diff --git src/wp-admin/includes/class-wp-posts-list-table.php src/wp-admin/includes/class-wp-posts-list-table.php
index 71c77d8..01eeafe 100644
|
|
class WP_Posts_List_Table extends WP_List_Table { |
476 | 476 | * Filters whether to remove the 'Formats' drop-down from the post list table. |
477 | 477 | * |
478 | 478 | * @since 5.2.0 |
| 479 | * @since 5.3.0 The `$post_type` parameter was added. |
479 | 480 | * |
480 | 481 | * @param bool $disable Whether to disable the drop-down. Default false. |
481 | 482 | */ |
482 | | if ( apply_filters( 'disable_formats_dropdown', false ) ) { |
| 483 | if ( apply_filters( 'disable_formats_dropdown', false, $post_type ) ) { |
483 | 484 | return; |
484 | 485 | } |
485 | 486 | |