diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
index ea30b93..5a1143e 100644
|
|
|
final class WP_Customize_Manager { |
| 1962 | 1962 | 'transport' => 'postMessage', |
| 1963 | 1963 | ) ); |
| 1964 | 1964 | |
| 1965 | | $this->add_control( new WP_Customize_Media_Control( $this, 'custom_logo', array( |
| | 1965 | $custom_logo_control_args = array( |
| 1966 | 1966 | 'label' => __( 'Logo' ), |
| 1967 | 1967 | 'section' => 'title_tagline', |
| 1968 | 1968 | 'priority' => 8, |
| 1969 | | 'mime_type' => 'image', |
| 1970 | 1969 | 'button_labels' => array( |
| 1971 | 1970 | 'select' => __( 'Select logo' ), |
| 1972 | 1971 | 'change' => __( 'Change logo' ), |
| … |
… |
final class WP_Customize_Manager { |
| 1976 | 1975 | 'frame_title' => __( 'Select logo' ), |
| 1977 | 1976 | 'frame_button' => __( 'Choose logo' ), |
| 1978 | 1977 | ), |
| 1979 | | ) ) ); |
| | 1978 | ); |
| | 1979 | $custom_logo_size = get_theme_support( 'custom-logo', 'size' ); |
| | 1980 | if ( empty( $custom_logo_size ) || ! has_image_size( $custom_logo_size ) ) { |
| | 1981 | $custom_logo_control_class = 'WP_Customize_Media_Control'; |
| | 1982 | $custom_logo_control_args['mime'] = 'image'; |
| | 1983 | } else { |
| | 1984 | $custom_logo_control_class = 'WP_Customize_Cropped_Image_Control'; |
| | 1985 | $custom_logo_control_args['width'] = $GLOBALS['_wp_additional_image_sizes'][ $custom_logo_size ]['width']; |
| | 1986 | $custom_logo_control_args['height'] = $GLOBALS['_wp_additional_image_sizes'][ $custom_logo_size ]['height']; |
| | 1987 | } |
| | 1988 | $this->add_control( new $custom_logo_control_class( $this, 'custom_logo', $custom_logo_control_args ) ); |
| 1980 | 1989 | |
| 1981 | 1990 | if ( isset( $this->selective_refresh ) ) { |
| 1982 | 1991 | $this->selective_refresh->add_partial( 'custom_logo', array( |