Skip to content

Commit 1b84ef5

Browse files
committed
Include 4 6.8-branch commits
Commit list: e382a52cdef22a091381634deb84d7ef2310ec52 c9d7937947fe5103f16d9676a7419d5ad81a70de 2a39b722ba22456af2fbcfe4a37fec9ea86865f0 a3890730649d580aba96c43b618020a38c688af1 See #60
1 parent 49c72b7 commit 1b84ef5

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

wp-includes/block-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function locate_block_template( $template, $type, array $templates ) {
105105
} else {
106106
if ( $block_template->has_theme_file ) {
107107
// Show contents from theme template if user is not logged in.
108-
$theme_template = _get_block_template_file( 'wp_template', $block_template->slug );
108+
$theme_template = _get_block_template_file( 'wp_template', $block_template->slug );
109109
$_wp_current_template_content = file_get_contents( $theme_template['path'] );
110110
} else {
111111
$_wp_current_template_content = $block_template->content;

wp-includes/class-wp-image-editor-imagick.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ protected function thumbnail_image( $dst_w, $dst_h, $filter_name = 'FILTER_TRIAN
503503
$max_colors = pow( 2, $indexed_pixel_depth );
504504
if ( is_callable( array( $this->image, 'getImageColors' ) ) ) {
505505
$current_colors = $this->image->getImageColors();
506-
$max_colors = min( $max_colors, $current_colors );
506+
$max_colors = min( $max_colors, $current_colors );
507507
}
508508
$this->image->quantizeImage( $max_colors, $this->image->getColorspace(), 0, false, false );
509509

wp-includes/class-wp-query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ public function parse_tax_query( &$q ) {
12301230
if ( ! empty( $q['category__not_in'] ) ) {
12311231
$q['category__not_in'] = array_map( 'absint', array_unique( (array) $q['category__not_in'] ) );
12321232
sort( $q['category__not_in'] );
1233-
$tax_query[] = array(
1233+
$tax_query[] = array(
12341234
'taxonomy' => 'category',
12351235
'terms' => $q['category__not_in'],
12361236
'operator' => 'NOT IN',
@@ -1299,7 +1299,7 @@ public function parse_tax_query( &$q ) {
12991299
if ( ! empty( $q['tag__not_in'] ) ) {
13001300
$q['tag__not_in'] = array_map( 'absint', array_unique( (array) $q['tag__not_in'] ) );
13011301
sort( $q['tag__not_in'] );
1302-
$tax_query[] = array(
1302+
$tax_query[] = array(
13031303
'taxonomy' => 'post_tag',
13041304
'terms' => $q['tag__not_in'],
13051305
'operator' => 'NOT IN',

wp-includes/functions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,22 +2933,22 @@ function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) {
29332933
$mime_to_ext = apply_filters(
29342934
'getimagesize_mimes_to_exts',
29352935
array(
2936-
'image/jpeg' => 'jpg',
2937-
'image/png' => 'png',
2938-
'image/gif' => 'gif',
2939-
'image/bmp' => 'bmp',
2940-
'image/tiff' => 'tif',
2941-
'image/webp' => 'webp',
2942-
'image/avif' => 'avif',
2936+
'image/jpeg' => 'jpg',
2937+
'image/png' => 'png',
2938+
'image/gif' => 'gif',
2939+
'image/bmp' => 'bmp',
2940+
'image/tiff' => 'tif',
2941+
'image/webp' => 'webp',
2942+
'image/avif' => 'avif',
29432943

29442944
/*
29452945
* In theory there are/should be file extensions that correspond to the
29462946
* mime types: .heif, .heics and .heifs. However it seems that HEIC images
29472947
* with any of the mime types commonly have a .heic file extension.
29482948
* Seems keeping the status quo here is best for compatibility.
29492949
*/
2950-
'image/heic' => 'heic',
2951-
'image/heif' => 'heic',
2950+
'image/heic' => 'heic',
2951+
'image/heif' => 'heic',
29522952
'image/heic-sequence' => 'heic',
29532953
'image/heif-sequence' => 'heic',
29542954
)

0 commit comments

Comments
 (0)