Build: correct some linting errors.
Fix linting failures after r44948 by running `composer run format`. git-svn-id: https://develop.svn.wordpress.org/trunk@44951 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
67b8f04db4
commit
e6ec0b2fe0
@ -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 ] );
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user