[wp-cvs] wordpress xmlrpc.php,1.70,1.71

Michel Valdrighi michelvaldrighi at users.sourceforge.net
Wed Aug 25 16:12:00 UTC 2004


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2530

Modified Files:
	xmlrpc.php 
Log Message:
fixed trackback/pingback on mw.editPost, disabled logging of categories on mw.newPost because it could create problems with php older than 4.3.0

Index: xmlrpc.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/xmlrpc.php,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** xmlrpc.php	11 Aug 2004 18:10:03 -0000	1.70
--- xmlrpc.php	25 Aug 2004 16:11:58 -0000	1.71
***************
*** 962,966 ****
  
  		$catnames = $contentstruct['categories'];
! 		logio("O","Post cats: " . print_r($catnames,true));
  		$post_category = array();
  		if ($catnames) {
--- 962,966 ----
  
  		$catnames = $contentstruct['categories'];
! 		// FIXME: commented until proper fix // logio("O","Post cats: " . print_r($catnames,true));
  		$post_category = array();
  		if ($catnames) {
***************
*** 1079,1085 ****
  		$newpost = compact('ID','post_content','post_title','post_category','post_status','post_excerpt','comment_status','ping_status','post_date','post_date_gmt');
  
! 		$newpost_ID = wp_update_post($newpost);
  		
! 		if (!$newpost_ID) {
  			return new xmlrpcresp(0, $xmlrpcerruser+2, "For some strange yet very annoying reason, your entry could not be posted.");
  		}
--- 1079,1085 ----
  		$newpost = compact('ID','post_content','post_title','post_category','post_status','post_excerpt','comment_status','ping_status','post_date','post_date_gmt');
  
! 		$post_ID = wp_update_post($newpost);
  		
! 		if (!$post_ID) {
  			return new xmlrpcresp(0, $xmlrpcerruser+2, "For some strange yet very annoying reason, your entry could not be posted.");
  		}




More information about the cvs mailing list