@@ -329,7 +329,7 @@ function admin_menu_css() {
329
329
* @since 2.9
330
330
*/
331
331
public function jetpack_sites_list () {
332
- $ jp = Jetpack::init ();
332
+ Jetpack::init ();
333
333
334
334
if ( isset ( $ _GET ['action ' ] ) ) {
335
335
switch ( $ _GET ['action ' ] ) {
@@ -421,9 +421,6 @@ public function do_subsiteregister( $site_id = null ) {
421
421
// Remote query timeout limit
422
422
$ timeout = $ jp ->get_remote_query_timeout_limit ();
423
423
424
- // Get proof the wpcom server can trust you adding this site
425
- $ network_admin_token = '' ;
426
-
427
424
// The blog id on WordPress.com of the primary network site
428
425
$ network_wpcom_blog_id = Jetpack_Options::get_option ( 'id ' );
429
426
@@ -480,7 +477,7 @@ public function do_subsiteregister( $site_id = null ) {
480
477
481
478
// Attempt to retrieve shadow blog details
482
479
$ 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
484
481
);
485
482
486
483
/*
@@ -509,9 +506,9 @@ public function do_subsiteregister( $site_id = null ) {
509
506
return new Jetpack_Error ( 'jetpack_secret ' , '' , $ code );
510
507
511
508
if ( isset ( $ json ->jetpack_public ) ) {
512
- $ jetpack_public = (int ) $ json ->jetpack_public ;
509
+ $ jetpack_public = (int ) $ json ->jetpack_public ;
513
510
} else {
514
- $ jetpack_public = false ;
511
+ $ jetpack_public = false ;
515
512
}
516
513
517
514
Jetpack_Options::update_options (
0 commit comments