Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-plugins-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ public function single_row( $item ) {
if ( $paused ) {
$notice_text = __( 'This plugin failed to load properly and is paused during recovery mode.' );

printf( '<p><span class="dashicons dashicons-warning"></span> <strong>%s</strong></p>', $notice_text );
printf( '<p><span class="dashicons dashicons-warning" aria-hidden="true"></span> <strong>%s</strong></p>', $notice_text );

$error = wp_get_plugin_error( $plugin_file );

Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ function do_enclose( $content, $post ) {
}

if ( in_array( substr( $type, 0, strpos( $type, '/' ) ), $allowed_types, true ) ) {
add_post_meta( $post->ID, 'enclosure', "$url\n$len\n$mime\n" );
add_post_meta( $post->ID, 'enclosure', "$url\n$len\n$type\n" );
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/wp-includes/general-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,8 @@ function single_month_title( $prefix = '', $display = true ) {
$m = get_query_var( 'm' );
$year = get_query_var( 'year' );
$monthnum = get_query_var( 'monthnum' );
$my_year = '';
$my_month = '';

if ( ! empty( $monthnum ) && ! empty( $year ) ) {
$my_year = $year;
Expand Down Expand Up @@ -5421,6 +5423,7 @@ function get_the_generator( $type = '' ) {
break;
}
}
$gen = '';

switch ( $type ) {
case 'html':
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3394,6 +3394,7 @@ private function in_body_any_other_end_tag(): bool {
* of boundary in the stack. For example, a `</custom-tag>` should not
* close anything beyond its containing `P` or `DIV` element.
*/
$node = null;
foreach ( $this->state->stack_of_open_elements->walk_up() as $node ) {
if ( 'html' === $node->namespace && $token_name === $node->node_name ) {
break;
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -7489,6 +7489,7 @@ function wp_mime_type_icon( $mime = 0, $preferred_ext = '.png' ) {
$matches = wp_match_mime_types( array_keys( $types ), $post_mimes );
$matches['default'] = array( 'default' );

$icon = false;
foreach ( $matches as $match => $wilds ) {
foreach ( $wilds as $wild ) {
if ( ! isset( $types[ $wild ] ) ) {
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -4275,6 +4275,7 @@ function _wp_privacy_send_request_confirmation_notification( $request_id ) {
return;
}

$manage_url = '';
if ( 'export_personal_data' === $request->action_name ) {
$manage_url = admin_url( 'export-personal-data.php' );
} elseif ( 'remove_personal_data' === $request->action_name ) {
Expand Down
7 changes: 7 additions & 0 deletions tests/phpunit/tests/functions/doEnclose.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,43 +75,43 @@
*/
public function data_do_enclose() {
return array(
'null' => array(

Check warning on line 78 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 21 space(s) between "'null'" and double arrow, but found 18.
'content' => null,
'expected' => '',
),
'empty' => array(

Check warning on line 82 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 20 space(s) between "'empty'" and double arrow, but found 17.
'content' => '',
'expected' => '',
),
'single-bare-movie' => array(

Check warning on line 86 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 8 space(s) between "'single-bare-movie'" and double arrow, but found 5.
'content' => 'movie.mp4',
'expected' => '',
),
'single-bare-audio' => array(

Check warning on line 90 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 8 space(s) between "'single-bare-audio'" and double arrow, but found 5.
'content' => 'audio.ogg',
'expected' => '',
),
'single-relative-movie' => array(

Check warning on line 94 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 4 space(s) between "'single-relative-movie'" and double arrow, but found 1.
'content' => '/movie.mp4',
'expected' => "/movie.mp4\n123\nvideo/mp4\n",
),
'single-relative-audio' => array(

Check warning on line 98 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 4 space(s) between "'single-relative-audio'" and double arrow, but found 1.
'content' => '/audio.ogg',
'expected' => "/audio.ogg\n321\naudio/ogg\n",
),
'single-unknown' => array(

Check warning on line 102 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 11 space(s) between "'single-unknown'" and double arrow, but found 8.
'content' => 'https://example.com/wp-content/uploads/2018/06/file.unknown',
'expected' => '',
),
'single-movie' => array(

Check warning on line 106 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 13 space(s) between "'single-movie'" and double arrow, but found 10.
'content' => 'https://example.com/wp-content/uploads/2018/06/movie.mp4',
'expected' => "https://example.com/wp-content/uploads/2018/06/movie.mp4\n123\nvideo/mp4\n",
),
'single-audio' => array(

Check warning on line 110 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 13 space(s) between "'single-audio'" and double arrow, but found 10.
'content' => 'https://example.com/wp-content/uploads/2018/06/audio.ogg',
'expected' => "https://example.com/wp-content/uploads/2018/06/audio.ogg\n321\naudio/ogg\n",
),
'single-movie-query' => array(

Check warning on line 114 in tests/phpunit/tests/functions/doEnclose.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Array double arrow not aligned correctly; expected 7 space(s) between "'single-movie-query'" and double arrow, but found 4.
'content' => 'https://example.com/wp-content/uploads/2018/06/movie.mp4?test=1',
'expected' => "https://example.com/wp-content/uploads/2018/06/movie.mp4?test=1\n123\nvideo/mp4\n",
),
Expand All @@ -125,6 +125,10 @@
'content' => 'https://example.com?test=1',
'expected' => '',
),
'header-type-no-extension' => array(
'content' => 'https://example.com/media/stream-mp4',
'expected' => "https://example.com/media/stream-mp4\n123\nvideo/mp4\n",
),
);
}

Expand Down Expand Up @@ -276,6 +280,9 @@
$path = parse_url( $url, PHP_URL_PATH );

if ( is_string( $path ) ) {
if ( str_contains( $path, 'stream-mp4' ) ) {
return $fake_headers['mp4'];
}
$extension = pathinfo( $path, PATHINFO_EXTENSION );
if ( isset( $fake_headers[ $extension ] ) ) {
return $fake_headers[ $extension ];
Expand Down
Loading