diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index f56318392f..db150ab975 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -3578,7 +3578,7 @@ function wp_enqueue_media( $args = array() ) { // Filter to show only available mime types. $avail_post_mime_types = get_available_post_mime_types( 'attachment' ); - $mimeTypes = wp_list_pluck( get_post_mime_types(), 0 ); + $mimeTypes = wp_list_pluck( get_post_mime_types(), 0 ); foreach ( $mimeTypes as $mime_type => $label ) { if ( ! wp_match_mime_types( $mime_type, $avail_post_mime_types ) ) { unset( $mimeTypes[ $mime_type ] ); diff --git a/tests/phpunit/tests/feed/rss2.php b/tests/phpunit/tests/feed/rss2.php index 3fad4c1fb1..4b17ac747a 100644 --- a/tests/phpunit/tests/feed/rss2.php +++ b/tests/phpunit/tests/feed/rss2.php @@ -399,7 +399,6 @@ class Tests_Feeds_RSS2 extends WP_UnitTestCase { // Queries performed on valid feed endpoints should contain posts. $this->assertTrue( have_posts() ); - // Check to see if we have the expected XML output from the feed template. $feed = $this->do_rss2();