Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (5 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r45437 r45583  
    4141
    4242wp_enqueue_script( 'post' );
    43 $_wp_editor_expand = $_content_editor_dfw = false;
     43
     44$_wp_editor_expand   = false;
     45$_content_editor_dfw = false;
    4446
    4547/**
     
    107109$messages = array();
    108110
    109 $preview_post_link_html = $scheduled_post_link_html = $view_post_link_html = '';
    110 $preview_page_link_html = $scheduled_page_link_html = $view_page_link_html = '';
     111$preview_post_link_html   = '';
     112$scheduled_post_link_html = '';
     113$view_post_link_html      = '';
     114
     115$preview_page_link_html   = '';
     116$scheduled_page_link_html = '';
     117$view_page_link_html      = '';
    111118
    112119$preview_url = get_preview_post_link( $post );
     
    577584    if ( 'auto-draft' != $post->post_status ) {
    578585        echo '<span id="last-edit">';
    579         if ( $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) ) ) {
     586        $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) );
     587        if ( $last_user ) {
    580588            /* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time */
    581589            printf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) );
Note: See TracChangeset for help on using the changeset viewer.