Changeset 3517 for trunk/xmlrpc.php
- Timestamp:
- 02/12/2006 07:53:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r3498 r3517 578 578 } 579 579 } 580 580 581 581 // We've got all the data -- post it: 582 582 $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'comment_status', 'ping_status', 'to_ping'); … … 624 624 625 625 $post_category = array(); 626 626 627 627 if (is_array($catnames)) { 628 628 foreach ($catnames as $cat) { … … 862 862 return new IXR_Error(500, 'Could not write file '.$name); 863 863 } 864 864 865 865 return array('url' => $upload['url']); 866 866 } … … 996 996 $catids[] = $cat['categoryId']; 997 997 } 998 998 999 999 wp_set_post_cats('', $post_ID, $catids); 1000 1000 … … 1200 1200 1201 1201 $p = explode( "\n\n", $linea ); 1202 1202 1203 1203 $sem_regexp_pb = "/(\\/|\\\|\*|\?|\+|\.|\^|\\$|\(|\)|\[|\]|\||\{|\})/"; 1204 1204 $sem_regexp_fix = "\\\\$1"; 1205 1205 $link = preg_replace( $sem_regexp_pb, $sem_regexp_fix, $pagelinkedfrom ); 1206 1206 1207 1207 $finished = false; 1208 1208 foreach ( $p as $para ) { … … 1239 1239 wp_new_comment($commentdata); 1240 1240 do_action('pingback_post', $wpdb->insert_id); 1241 1241 1242 1242 return "Pingback from $pagelinkedfrom to $pagelinkedto registered. Keep the web talking! :-)"; 1243 1243 }
Note: See TracChangeset
for help on using the changeset viewer.