Subir ajustes de acordeon y SEO
This commit is contained in:
@@ -1551,6 +1551,7 @@ function get_uploaded_header_images() {
|
||||
* Gets the header image data.
|
||||
*
|
||||
* @since 3.4.0
|
||||
* @since 7.1.1 The `width` and `height` are cast to non-negative integers.
|
||||
*
|
||||
* @global array $_wp_default_headers
|
||||
*
|
||||
@@ -1589,7 +1590,14 @@ function get_custom_header() {
|
||||
'height' => get_theme_support( 'custom-header', 'height' ),
|
||||
'video' => get_theme_support( 'custom-header', 'video' ),
|
||||
);
|
||||
return (object) wp_parse_args( $data, $default );
|
||||
|
||||
if ( ! is_array( $data ) && ! is_object( $data ) ) {
|
||||
$data = array();
|
||||
}
|
||||
$header = (object) wp_parse_args( $data, $default );
|
||||
$header->width = absint( $header->width );
|
||||
$header->height = absint( $header->height );
|
||||
return $header;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user