Cleaning up some includes.

git-svn-id: https://develop.svn.wordpress.org/trunk@1190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-04-27 23:17:16 +00:00
parent 332fc0d3cd
commit e03f75a0b8
7 changed files with 16 additions and 30 deletions
+5
View File
@@ -526,6 +526,9 @@ function timer_stop($display=0,$precision=3) { //if called like timer_stop(1), w
}
function weblog_ping($server = '', $path = '') {
include_once (ABSPATH . WPINC . '/class-xmlrpc.php');
include_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
$f = new xmlrpcmsg('weblogUpdates.ping',
array(new xmlrpcval(get_settings('blogname'), 'string'),
new xmlrpcval(get_settings('siteurl') ,'string')));
@@ -699,6 +702,8 @@ function debug_fclose($fp) {
}
function pingback($content, $post_ID) {
include_once (ABSPATH . WPINC . '/class-xmlrpc.php');
include_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
// original code by Mort (http://mort.mine.nu:8080)
global $wp_version;
$log = debug_fopen('./pingback.log', 'a');