Actualizacion 7.1.2

This commit is contained in:
2026-09-25 12:02:42 -06:00
parent fa60d1f364
commit 32351c9497
221 changed files with 19735 additions and 6951 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;
}
/**