Make WordPress Core


Ignore:
Timestamp:
06/27/2015 01:02:12 AM (9 years ago)
Author:
wonderboymusic
Message:

For doc block types, favor bool over the few remaining booleans

See #32444.

File:
1 edited

Legend:

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

    r32673 r32964  
    14941494    if ( 'image' == $type && $calling_post_id && current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) )
    14951495        && post_type_supports( get_post_type( $calling_post_id ), 'thumbnail' ) && get_post_thumbnail_id( $calling_post_id ) != $attachment_id ) {
    1496        
     1496
    14971497        $calling_post = get_post( $calling_post_id );
    14981498        $calling_post_type_object = get_post_type_object( $calling_post->post_type );
     
    17441744    $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0;
    17451745
    1746     if ( ! empty( $post_id ) ) { 
    1747         $post_type = get_post_type( $post_id ); 
     1746    if ( ! empty( $post_id ) ) {
     1747        $post_type = get_post_type( $post_id );
    17481748    } else {
    1749         $post_type = ''; 
    1750     } 
     1749        $post_type = '';
     1750    }
    17511751
    17521752    echo '<script type="text/javascript">post_id = ' . $post_id . ';post_type = ' . $post_type . ';</script>';
     
    30253025 *
    30263026 * @param string $file Path to file.
    3027  * @return array|boolean Returns array of metadata, if found.
     3027 * @return array|bool Returns array of metadata, if found.
    30283028 */
    30293029function wp_read_audio_metadata( $file ) {
Note: See TracChangeset for help on using the changeset viewer.