Subir ajustes de acordeon y SEO

This commit is contained in:
Gabriel
2026-10-23 11:18:13 -06:00
parent 03333c3ce7
commit 14b96152a5
103 changed files with 6638 additions and 5316 deletions
+9 -1
View File
@@ -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;
}
/**