Skip to content

Commit f8bdaba

Browse files
committed
Code cleanup: removing unused code and fixing whitespace
1 parent 7b21cd2 commit f8bdaba

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

class.jetpack-network.php

+4-7
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ function admin_menu_css() {
329329
* @since 2.9
330330
*/
331331
public function jetpack_sites_list() {
332-
$jp = Jetpack::init();
332+
Jetpack::init();
333333

334334
if( isset( $_GET['action'] ) ) {
335335
switch( $_GET['action'] ) {
@@ -421,9 +421,6 @@ public function do_subsiteregister( $site_id = null ) {
421421
// Remote query timeout limit
422422
$timeout = $jp->get_remote_query_timeout_limit();
423423

424-
// Get proof the wpcom server can trust you adding this site
425-
$network_admin_token = '';
426-
427424
// The blog id on WordPress.com of the primary network site
428425
$network_wpcom_blog_id = Jetpack_Options::get_option( 'id' );
429426

@@ -480,7 +477,7 @@ public function do_subsiteregister( $site_id = null ) {
480477

481478
// Attempt to retrieve shadow blog details
482479
$response = Jetpack_Client::_wp_remote_request(
483-
Jetpack::fix_url_for_bad_hosts( Jetpack::api_url( 'subsiteregister' ) ), $args, true
480+
Jetpack::fix_url_for_bad_hosts( Jetpack::api_url( 'subsiteregister' ) ), $args, true
484481
);
485482

486483
/*
@@ -509,9 +506,9 @@ public function do_subsiteregister( $site_id = null ) {
509506
return new Jetpack_Error( 'jetpack_secret', '', $code );
510507

511508
if ( isset( $json->jetpack_public ) ) {
512-
$jetpack_public = (int) $json->jetpack_public;
509+
$jetpack_public = (int) $json->jetpack_public;
513510
} else {
514-
$jetpack_public = false;
511+
$jetpack_public = false;
515512
}
516513

517514
Jetpack_Options::update_options(

0 commit comments

Comments
 (0)