diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-05 17:45:26 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-05 17:45:26 +0000 |
| commit | 767c3538b9f4aa2684429a7efea8f7728034c754 (patch) | |
| tree | 8cc7b4bc82bfc8e5cc2179b7a8aa7b4f9a2be193 /xmlrpc.php | |
| parent | 23c0a299ada091cdeece968ad5cd3bdd20f5ef3c (diff) | |
| download | wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.gz wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.xz wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.zip | |
WP Merge to rev 4347
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@789 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'xmlrpc.php')
| -rw-r--r-- | xmlrpc.php | 31 |
1 files changed, 4 insertions, 27 deletions
@@ -58,31 +58,8 @@ function starify($string) { return str_repeat('*', $i); } -logIO("I", $HTTP_RAW_POST_DATA); - - -function mkdir_p($target) { - // from php.net/mkdir user contributed notes - if (file_exists($target)) { - if (!is_dir($target)) { - return false; - } else { - return true; - } - } - - // Attempting to create the directory may clutter up our display. - if (@mkdir($target)) { - return true; - } - - // If the above failed, attempt to create the parent node, then try again. - if (mkdir_p(dirname($target))) { - return mkdir_p($target); - } - - return false; -} +if ( isset($HTTP_RAW_POST_DATA) ) + logIO("I", $HTTP_RAW_POST_DATA); class wp_xmlrpc_server extends IXR_Server { @@ -1238,8 +1215,8 @@ class wp_xmlrpc_server extends IXR_Server { $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type'); - $comment_ID = wp_new_comment($commentdata); - do_action('pingback_post', $comment_ID); + wp_new_comment($commentdata); + do_action('pingback_post', $wpdb->insert_id); return "Pingback from $pagelinkedfrom to $pagelinkedto registered. Keep the web talking! :-)"; } |
