$size ) { // If the size isn't already in the $sizes array, add it. if ( ! array_key_exists( $size, $sizes ) ) { $sizes[ $size ] = $size; } } } return $sizes; } /** * Retrieves the header text classes. * * If not defined in add_theme_support(), defaults from Underscores will be used. * * @since 4.5.0 * @access protected * * @return string String of classes to hide. */ protected function header_text_classes() { $args = get_theme_support( 'site-logo' ); if ( isset( $args[0]['header-text'] ) ) { // Use any classes defined in add_theme_support(). $classes = $args[0]['header-text']; } else { // Otherwise, use these defaults, which will work with any Underscores-based theme. $classes = array( 'site-title', 'site-description', ); } // If there's an array of classes, reduce them to a string for output. if ( is_array( $classes ) ) { $classes = array_map( 'sanitize_html_class', $classes ); $classes = (string) '.' . implode( ', .', $classes ); } else { $classes = (string) '.' . $classes; } return $classes; } } /** * WP_Site_Logo instance. * * @global WP_Site_Logo $wp_site_logo */ $GLOBALS['wp_site_logo'] = new WP_Site_Logo;