Changeset 47472
- Timestamp:
- 03/18/2020 07:11:33 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r47304 r47472 470 470 * @access protected 471 471 * 472 * @param string $post_type Post type key.472 * @param string $post_type Post type slug. 473 473 */ 474 474 protected function formats_dropdown( $post_type ) { … … 477 477 * 478 478 * @since 5.2.0 479 * @since 5.5.0 The `$post_type` parameter was added. 479 480 * 480 * @param bool $disable Whether to disable the drop-down. Default false. 481 * @param bool $disable Whether to disable the drop-down. Default false. 482 * @param string $post_type Post type slug. 481 483 */ 482 if ( apply_filters( 'disable_formats_dropdown', false ) ) {484 if ( apply_filters( 'disable_formats_dropdown', false, $post_type ) ) { 483 485 return; 484 486 }
Note: See TracChangeset
for help on using the changeset viewer.