@@ -89,11 +89,9 @@ private function empty_taxonomies() {
8989
9090 // Empty taxonomies and terms
9191 $ terms = $ wpdb ->get_results ( "SELECT term_id, taxonomy FROM $ wpdb ->term_taxonomy " );
92- $ ids = [];
9392 $ taxonomies = [];
9493 foreach ( (array ) $ terms as $ term ) {
9594 $ taxonomies [] = $ term ->taxonomy ;
96- $ ids [] = $ term ->term_id ;
9795 wp_cache_delete ( $ term ->term_id , $ term ->taxonomy );
9896 }
9997
@@ -354,7 +352,7 @@ public function delete( $args, $assoc_args ) {
354352 * $ wp site create --slug=example
355353 * Success: Site 3 created: http://www.example.com/example/
356354 */
357- public function create ( $ _ , $ assoc_args ) {
355+ public function create ( $ args , $ assoc_args ) {
358356 if ( ! is_multisite () ) {
359357 WP_CLI ::error ( 'This is not a multisite installation. ' );
360358 }
@@ -412,11 +410,9 @@ public function create( $_, $assoc_args ) {
412410 if ( is_subdomain_install () ) {
413411 $ newdomain = $ base . '. ' . preg_replace ( '|^www\.| ' , '' , $ current_site ->domain );
414412 $ path = $ current_site ->path ;
415- $ url = $ newdomain ;
416413 } else {
417414 $ newdomain = $ current_site ->domain ;
418415 $ path = $ current_site ->path . $ base . '/ ' ;
419- $ url = $ newdomain . $ path ;
420416 }
421417
422418 $ user_id = email_exists ( $ email );
@@ -539,7 +535,7 @@ private function get_network( $network_id ) {
539535 *
540536 * @subcommand list
541537 */
542- public function list_ ( $ _ , $ assoc_args ) {
538+ public function list_ ( $ args , $ assoc_args ) {
543539 if ( ! is_multisite () ) {
544540 WP_CLI ::error ( 'This is not a multisite installation. ' );
545541 }
0 commit comments