Changes from branches/2.7/xmlrpc.php at r10381 to trunk/xmlrpc.php at r10150
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r10381 r10150 1259 1259 $logged_in = true; 1260 1260 set_current_user( 0, $username ); 1261 if ( !current_user_can( 'moderate_comments' ) ) 1262 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this blog.' ) ); 1261 1263 } 1262 1264 … … 1284 1286 if ( isset($content_struct['author']) ) 1285 1287 $comment['comment_author'] = $content_struct['author']; 1286 1287 1288 $comment['comment_author_email'] = ''; 1288 if ( isset($content_struct['author _email']) )1289 if ( isset($content_struct['author']) ) 1289 1290 $comment['comment_author_email'] = $content_struct['author_email']; 1290 1291 1291 $comment['comment_author_url'] = ''; 1292 if ( isset($content_struct['author _url']) )1292 if ( isset($content_struct['author']) ) 1293 1293 $comment['comment_author_url'] = $content_struct['author_url']; 1294 1295 1294 $comment['user_ID'] = 0; 1296 1295 … … 2763 2762 $struct['categoryId'] = $cat->term_id; 2764 2763 $struct['parentId'] = $cat->parent; 2765 $struct['description'] = $cat->name; 2766 $struct['categoryDescription'] = $cat->description; 2764 $struct['description'] = $cat->description; 2767 2765 $struct['categoryName'] = $cat->name; 2768 2766 $struct['htmlUrl'] = wp_specialchars(get_category_link($cat->term_id));
Note: See TracChangeset
for help on using the changeset viewer.