Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (6 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/includes/dashboard.php

    r45536 r45583  
    596596        echo '<div class="draft-title"><a href="' . esc_url( $url ) . '" aria-label="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ) . '">' . esc_html( $title ) . '</a>';
    597597        echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( __( 'F j, Y' ), $draft ) . '</time></div>';
    598         if ( $the_content = wp_trim_words( $draft->post_content, $draft_length ) ) {
     598        $the_content = wp_trim_words( $draft->post_content, $draft_length );
     599        if ( $the_content ) {
    599600            echo '<p>' . $the_content . '</p>';
    600601        }
     
    10131014    $locale    = get_user_locale();
    10141015    $cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale );
    1015     if ( false !== ( $output = get_transient( $cache_key ) ) ) {
     1016    $output    = get_transient( $cache_key );
     1017    if ( false !== $output ) {
    10161018        echo $output;
    10171019        return true;
     
    10741076 */
    10751077function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) {
    1076     if ( ! $widget_options = get_option( 'dashboard_widget_options' ) ) {
     1078    $widget_options = get_option( 'dashboard_widget_options' );
     1079    if ( ! $widget_options ) {
    10771080        $widget_options = array();
    10781081    }
     
    15671570    $key = md5( $_SERVER['HTTP_USER_AGENT'] );
    15681571
    1569     if ( false === ( $response = get_site_transient( 'browser_' . $key ) ) ) {
     1572    $response = get_site_transient( 'browser_' . $key );
     1573    if ( false === $response ) {
    15701574        // include an unmodified $wp_version
    15711575        include( ABSPATH . WPINC . '/version.php' );
Note: See TracChangeset for help on using the changeset viewer.