diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
index 304f27fdb6..9c20b6a06f 100644
a
|
b
|
function _wp_keep_alive_customize_changeset_dependent_auto_drafts( $new_status, |
3679 | 3679 | } |
3680 | 3680 | } |
3681 | 3681 | |
| 3682 | /** |
| 3683 | * Prepares the post formats when registering theme support. |
| 3684 | * |
| 3685 | * @since |
| 3686 | * |
| 3687 | * @access private |
| 3688 | * |
| 3689 | * @return array |
| 3690 | */ |
| 3691 | function _prepare_theme_post_formats( $formats ) { |
| 3692 | $formats = is_array( $formats ) ? array_values( $formats[0] ) : array(); |
| 3693 | $formats = array_merge( array( 'standard' ), $formats ); |
| 3694 | |
| 3695 | return $formats; |
| 3696 | } |
| 3697 | |
3682 | 3698 | /** |
3683 | 3699 | * Creates the initial theme features when the 'setup_theme' action is fired. |
3684 | 3700 | * |
… |
… |
function create_initial_theme_features() { |
4003 | 4019 | ), |
4004 | 4020 | 'default' => array( 'standard' ), |
4005 | 4021 | ), |
4006 | | 'prepare_callback' => static function ( $formats ) { |
4007 | | $formats = is_array( $formats ) ? array_values( $formats[0] ) : array(); |
4008 | | $formats = array_merge( array( 'standard' ), $formats ); |
4009 | | |
4010 | | return $formats; |
4011 | | }, |
| 4022 | 'prepare_callback' => '_prepare_theme_post_formats', |
4012 | 4023 | ), |
4013 | 4024 | ) |
4014 | 4025 | ); |