diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index ec0fa8d..8fd1a67 100644
|
|
final class WP_Customize_Manager { |
959 | 959 | // Posts & pages. |
960 | 960 | if ( ! empty( $posts ) ) { |
961 | 961 | foreach ( array_keys( $posts ) as $post_symbol ) { |
| 962 | if ( empty( $posts[ $post_symbol ]['post_name'] ) ) { |
| 963 | $posts[ $post_symbol ]['post_name'] = sanitize_title( $posts[ $post_symbol ]['post_title'] ); |
| 964 | } |
| 965 | |
962 | 966 | $posts[ $post_symbol ]['ID'] = wp_insert_post( wp_slash( array_merge( |
963 | 967 | $posts[ $post_symbol ], |
964 | 968 | array( 'post_status' => 'auto-draft' ) |