[wp-cvs] wordpress xmlrpc.php,1.75,1.76
Michel Valdrighi
michelvaldrighi at users.sourceforge.net
Fri Sep 17 15:03:40 UTC 2004
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14965
Modified Files:
xmlrpc.php
Log Message:
replacing with new shiny xmlrpc support -- sorry for the GIANT DIFF OF DOOM
Index: xmlrpc.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/xmlrpc.php,v
retrieving revision 1.75
retrieving revision 1.76
diff -C2 -d -r1.75 -r1.76
*** xmlrpc.php 5 Sep 2004 01:50:38 -0000 1.75
--- xmlrpc.php 17 Sep 2004 15:03:36 -0000 1.76
***************
*** 4,17 ****
$HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
! include('wp-config.php');
!
! include_once (ABSPATH . WPINC . '/class-xmlrpc.php');
! include_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
! include_once (ABSPATH . WPINC . '/functions-post.php');
// Turn off all warnings and errors.
! error_reporting(0);
[...3066 lines suppressed...]
! return array();
! }
! $pingbacks = array();
! foreach($comments as $comment) {
! if ((strpos($comment->comment_content, '<pingback />') === 0)
! || ('pingback' == $comment->comment_type)) {
! $pingbacks[] = $comment->comment_author_url;
! }
! }
! return $pingbacks;
! }
! }
! $wp_xmlrpc_server = new wp_xmlrpc_server();
! ?>
\ No newline at end of file
More information about the cvs
mailing list