Make WordPress Core


Ignore:
Timestamp:
05/06/2014 04:40:52 PM (10 years ago)
Author:
wonderboymusic
Message:

In get_media_item(), $tags and $_tags are set and never used.

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r28271 r28297  
    13071307    $title = esc_attr( $post->post_title );
    13081308
    1309     if ( $_tags = get_the_tags( $attachment_id ) ) {
    1310         foreach ( $_tags as $tag )
    1311             $tags[] = $tag->name;
    1312         $tags = esc_attr( join( ', ', $tags ) );
    1313     }
    1314 
    13151309    $post_mime_types = get_post_mime_types();
    13161310    $keys = array_keys( wp_match_mime_types( array_keys( $post_mime_types ), $post->post_mime_type ) );
Note: See TracChangeset for help on using the changeset viewer.