Make WordPress Core


Ignore:
Timestamp:
03/19/2010 09:15:00 PM (15 years ago)
Author:
nacin
Message:

Remove unnecessary ternary operators such as (expr) ? true : false.

File:
1 edited

Legend:

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

    r13382 r13769  
    11171117
    11181118            // Use oEmbed to get the HTML
    1119             $attr['discover'] = ( apply_filters('embed_oembed_discover', false) && author_can( $post_ID, 'unfiltered_html' ) ) ? true : false;
     1119            $attr['discover'] = ( apply_filters('embed_oembed_discover', false) && author_can( $post_ID, 'unfiltered_html' ) );
    11201120            $html = wp_oembed_get( $url, $attr );
    11211121
Note: See TracChangeset for help on using the changeset viewer.