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/export.php

    r45424 r45583  
    118118    $join = '';
    119119    if ( $args['category'] && 'post' == $args['content'] ) {
    120         if ( $term = term_exists( $args['category'], 'category' ) ) {
     120        $term = term_exists( $args['category'], 'category' );
     121        if ( $term ) {
    121122            $join   = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)";
    122123            $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] );
     
    145146     * or all content.
    146147     */
    147     $cats = $tags = $terms = array();
     148    $cats  = array();
     149    $tags  = array();
     150    $terms = array();
    148151    if ( isset( $term ) && $term ) {
    149152        $cat  = get_term( $term['term_id'], 'category' );
Note: See TracChangeset for help on using the changeset viewer.