Changeset 5825 for trunk/xmlrpc.php
- Timestamp:
- 07/30/2007 04:32:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r5807 r5825 708 708 } 709 709 710 /* warning: here we make the assumption that the weblog's URL is on the same server */710 /* warning: here we make the assumption that the blog's URL is on the same server */ 711 711 $filename = get_option('home') . '/'; 712 712 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); … … 743 743 } 744 744 745 /* warning: here we make the assumption that the weblog's URL is on the same server */745 /* warning: here we make the assumption that the blog's URL is on the same server */ 746 746 $filename = get_option('home') . '/'; 747 747 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); … … 778 778 $user = set_current_user(0, $user_login); 779 779 if ( !current_user_can($cap) ) 780 return new IXR_Error(401, __('Sorry, you can not post on this weblog or category.'));780 return new IXR_Error(401, __('Sorry, you are not allowed to post on this blog.')); 781 781 782 782 $post_status = ($publish) ? 'publish' : 'draft'; … … 918 918 $user = set_current_user(0, $user_login); 919 919 if ( !current_user_can($cap) ) 920 return new IXR_Error(401, __('Sorry, you can not post on this weblog or category.'));920 return new IXR_Error(401, __('Sorry, you are not allowed to post on this blog.')); 921 921 922 922 // The post_type defaults to post, but could also be page. … … 1458 1458 1459 1459 1460 /* metaweblog.getCategories ...returns the list of categories on a given weblog */1460 /* metaweblog.getCategories ...returns the list of categories on a given blog */ 1461 1461 function mw_getCategories($args) { 1462 1462 … … 1614 1614 1615 1615 1616 /* mt.getCategoryList ...returns the list of categories on a given weblog */1616 /* mt.getCategoryList ...returns the list of categories on a given blog */ 1617 1617 function mt_getCategoryList($args) { 1618 1618
Note: See TracChangeset
for help on using the changeset viewer.