Changeset 6499
- Timestamp:
- 12/26/2007 07:56:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/xmlrpc.php
r6497 r6499 472 472 } 473 473 474 return(get_users_of_blog()); 474 set_current_user(0, $username); 475 if(!current_user_can("edit_posts")) { 476 return(new IXR_Error(401, __("Sorry, you can not edit posts on this blog."))); 477 } 478 479 do_action('xmlrpc_call', 'wp.getAuthors'); 480 481 $authors = array(); 482 foreach( (array) get_users_of_blog() as $row ) { 483 $authors[] = array( 484 "user_id" => $row->user_id, 485 "user_login" => $row->user_login, 486 "display_name" => $row->display_name 487 ); 488 } 489 490 return($authors); 475 491 } 476 492
Note: See TracChangeset
for help on using the changeset viewer.