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 git-svn-id: https://develop.svn.wordpress.org/trunk@46312 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
61f86f6986
commit
ad7b57b611
@ -98,10 +98,10 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
|
|||||||
|
|
||||||
$output .= isset( $title ) ? esc_html( $title ) : esc_html( $item->title );
|
$output .= isset( $title ) ? esc_html( $title ) : esc_html( $item->title );
|
||||||
|
|
||||||
if ( empty( $item->label ) && isset( $item->post_type ) && 'page' === $item->post_type ) {
|
if ( empty( $item->label ) && isset( $item->post_type ) && 'page' === $item->post_type ) {
|
||||||
// Append post states.
|
// Append post states.
|
||||||
$output .= _post_states( $item, false );
|
$output .= _post_states( $item, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= '</label>';
|
$output .= '</label>';
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ class WP_Links_List_Table extends WP_List_Table {
|
|||||||
echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>';
|
echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>';
|
||||||
wp_dropdown_categories( $dropdown_options );
|
wp_dropdown_categories( $dropdown_options );
|
||||||
submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
|
submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -274,7 +274,7 @@ if ( is_multisite() ) :
|
|||||||
|
|
||||||
// activate the plugin sitewide
|
// activate the plugin sitewide
|
||||||
activate_plugin( $path, '', $network_wide = true );
|
activate_plugin( $path, '', $network_wide = true );
|
||||||
$active_plugins = wp_get_active_network_plugins();
|
$active_plugins = wp_get_active_network_plugins();
|
||||||
$this->assertEquals( array( WP_PLUGIN_DIR . '/hello.php' ), $active_plugins );
|
$this->assertEquals( array( WP_PLUGIN_DIR . '/hello.php' ), $active_plugins );
|
||||||
|
|
||||||
//deactivate the plugin
|
//deactivate the plugin
|
||||||
|
@ -173,7 +173,7 @@ class Tests_Term_getTerms extends WP_UnitTestCase {
|
|||||||
// Force last_changed to bump.
|
// Force last_changed to bump.
|
||||||
wp_delete_term( $terms[0]->term_id, 'post_tag' );
|
wp_delete_term( $terms[0]->term_id, 'post_tag' );
|
||||||
|
|
||||||
$num_queries = $wpdb->num_queries;
|
$num_queries = $wpdb->num_queries;
|
||||||
$this->assertNotEquals( $time1, $time2 = wp_cache_get( 'last_changed', 'terms' ) );
|
$this->assertNotEquals( $time1, $time2 = wp_cache_get( 'last_changed', 'terms' ) );
|
||||||
|
|
||||||
// last_changed and num_queries should bump after a term is deleted.
|
// last_changed and num_queries should bump after a term is deleted.
|
||||||
|
Loading…
Reference in New Issue
Block a user