WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/19/2020 08:43:34 PM (14 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS issues in [49207].

See #46866.

File:
1 edited

Legend:

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

    r49207 r49209  
    32963296        $uploaded_by_name = $author->display_name ? $author->display_name : $author->nickname;
    32973297        $uploaded_by_link = get_edit_user_link( $author->ID );
    3298     } ?>
     3298    }
     3299    ?>
    32993300    <div class="misc-pub-section misc-pub-uploadedby">
    3300         <?php if ( $uploaded_by_link ) : ?>
    3301             <?php _e( 'Uploaded by:' ); ?> <a href="<?php echo $uploaded_by_link ?>"><strong><?php echo $uploaded_by_name ?></strong></a>
    3302         <?php else: ?>
    3303             <?php _e( 'Uploaded by:' ); ?> <strong><?php echo $uploaded_by_name ?></strong>
    3304         <?php endif; ?>
     3301        <?php if ( $uploaded_by_link ) { ?>
     3302            <?php _e( 'Uploaded by:' ); ?> <a href="<?php echo $uploaded_by_link; ?>"><strong><?php echo $uploaded_by_name; ?></strong></a>
     3303        <?php } else { ?>
     3304            <?php _e( 'Uploaded by:' ); ?> <strong><?php echo $uploaded_by_name; ?></strong>
     3305        <?php } ?>
    33053306    </div>
    33063307
    3307     <?php if ( $post->post_parent ) :
     3308    <?php
     3309    if ( $post->post_parent ) {
    33083310        $post_parent = get_post( $post->post_parent );
    3309         if ( $post_parent ) :
     3311        if ( $post_parent ) {
    33103312            $uploaded_to_title = $post_parent->post_title ? $post_parent->post_title : __( '(no title)' );
    3311             $uploaded_to_link = get_edit_post_link( $post->post_parent, 'raw' ); ?>
     3313            $uploaded_to_link  = get_edit_post_link( $post->post_parent, 'raw' );
     3314            ?>
    33123315            <div class="misc-pub-section misc-pub-uploadedto">
    3313                 <?php if ( $uploaded_to_link ) : ?>
    3314                     <?php _e( 'Uploaded to:' ); ?> <a href="<?php echo $uploaded_to_link ?>"><strong><?php echo $uploaded_to_title; ?></strong></a>
    3315                 <?php else: ?>
     3316                <?php if ( $uploaded_to_link ) { ?>
     3317                    <?php _e( 'Uploaded to:' ); ?> <a href="<?php echo $uploaded_to_link; ?>"><strong><?php echo $uploaded_to_title; ?></strong></a>
     3318                <?php } else { ?>
    33163319                    <?php _e( 'Uploaded to:' ); ?> <strong><?php echo $uploaded_to_title; ?></strong>
    3317                 <?php endif; ?>
     3320                <?php } ?>
    33183321            </div>
    3319         <?php endif; ?>
    3320     <?php endif; ?>
     3322            <?php
     3323        }
     3324    }
     3325    ?>
    33213326
    33223327    <div class="misc-pub-section misc-pub-attachment">
Note: See TracChangeset for help on using the changeset viewer.