Ticket #20665: 20665.diff
| File 20665.diff, 914 bytes (added by nacin, 12 months ago) |
|---|
-
wp-includes/class-wp-xmlrpc-server.php
473 473 continue; 474 474 475 475 $blog_id = $blog->userblog_id; 476 switch_to_blog($blog_id); 477 $is_admin = current_user_can('manage_options'); 476 $is_admin = current_user_can_for_blog( $blog_id, 'manage_options' ); 478 477 479 478 $struct[] = array( 480 479 'isAdmin' => $is_admin, 481 'url' => get_ option( 'home' ) . '/',480 'url' => get_home_url( $blog_id, '/' ), 482 481 'blogid' => (string) $blog_id, 483 'blogName' => get_ option('blogname' ),484 'xmlrpc' => site_url('xmlrpc.php' )482 'blogName' => get_blog_option( $blog_id, 'blogname' ), 483 'xmlrpc' => get_site_url( $blog_id, 'xmlrpc.php' ) 485 484 ); 486 487 restore_current_blog();488 485 } 489 486 490 487 return $struct;