Changeset 21194 for trunk/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 06/30/2012 11:49:02 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r21158 r21194 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
Note: See TracChangeset
for help on using the changeset viewer.