mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
General: Further phpcs cleanup.
In [46312] and [46313] we attempted to do some phpcs cleanup. This commit cleans up three issues that were introduced in [46309]. Fixes #48142. Props: whyisjake, garrett-eclipse, desrosj git-svn-id: https://develop.svn.wordpress.org/trunk@46314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -274,7 +274,7 @@ if ( is_multisite() ) :
|
||||
|
||||
// activate the plugin sitewide
|
||||
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 );
|
||||
|
||||
//deactivate the plugin
|
||||
|
||||
@@ -173,7 +173,7 @@ class Tests_Term_getTerms extends WP_UnitTestCase {
|
||||
// Force last_changed to bump.
|
||||
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' ) );
|
||||
|
||||
// last_changed and num_queries should bump after a term is deleted.
|
||||
|
||||
Reference in New Issue
Block a user