WordPress.org

Make WordPress Core

Changeset 46312


Ignore:
Timestamp:
09/25/2019 10:52:54 PM (3 months ago)
Author:
whyisjake
Message:

General: Linter cleanup

phpcbf was able to clean up a few files. Tests were breaking as a result of code formatting.

Fixes #48142
Props whyisjake

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-walker-nav-menu-checklist.php

    r46309 r46312  
    9999        $output .= isset( $title ) ? esc_html( $title ) : esc_html( $item->title );
    100100
    101         if ( empty( $item->label ) && isset( $item->post_type ) && 'page' === $item->post_type ) {
    102             // Append post states.
    103             $output .= _post_states( $item, false );
    104         }
     101        if ( empty( $item->label ) && isset( $item->post_type ) && 'page' === $item->post_type ) {
     102            // Append post states.
     103            $output .= _post_states( $item, false );
     104        }
    105105
    106106        $output .= '</label>';
  • trunk/src/wp-admin/includes/class-wp-links-list-table.php

    r45932 r46312  
    118118            wp_dropdown_categories( $dropdown_options );
    119119            submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    120         ?>
     120            ?>
    121121        </div>
    122122        <?php
  • trunk/tests/phpunit/tests/multisite/network.php

    r45910 r46312  
    275275            // activate the plugin sitewide
    276276            activate_plugin( $path, '', $network_wide = true );
    277             $active_plugins                           = wp_get_active_network_plugins();
     277            $active_plugins = wp_get_active_network_plugins();
    278278            $this->assertEquals( array( WP_PLUGIN_DIR . '/hello.php' ), $active_plugins );
    279279
  • trunk/tests/phpunit/tests/term/getTerms.php

    r45607 r46312  
    174174        wp_delete_term( $terms[0]->term_id, 'post_tag' );
    175175
    176         $num_queries                           = $wpdb->num_queries;
     176        $num_queries = $wpdb->num_queries;
    177177        $this->assertNotEquals( $time1, $time2 = wp_cache_get( 'last_changed', 'terms' ) );
    178178
Note: See TracChangeset for help on using the changeset viewer.