summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-05 09:27:09 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-05 09:27:09 +0000
commita4d6e4072b70beecc76032f95bd0752f59e696c4 (patch)
tree2331ebd0ff565eb92c94c3716f3bffd5b448c17a /wp-inst/wp-includes/functions.php
parent54e48001b1117ad75a255daa12cbf65fe7b2432a (diff)
downloadwordpress-mu-a4d6e4072b70beecc76032f95bd0752f59e696c4.tar.gz
wordpress-mu-a4d6e4072b70beecc76032f95bd0752f59e696c4.tar.xz
wordpress-mu-a4d6e4072b70beecc76032f95bd0752f59e696c4.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@286 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/functions.php')
-rw-r--r--wp-inst/wp-includes/functions.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/functions.php b/wp-inst/wp-includes/functions.php
index ede626e..8d486ff 100644
--- a/wp-inst/wp-includes/functions.php
+++ b/wp-inst/wp-includes/functions.php
@@ -829,6 +829,19 @@ function debug_fclose($fp) {
}
}
+function check_for_pings() {
+ global $wpdb;
+ $doping = false;
+ if($wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE TRIM(to_ping) != '' LIMIT 1")) {
+ $doping = true;
+ }
+ if($wpdb->get_var("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_pingme' OR meta_key = '_encloseme' LIMIT 1")) {
+ $doping = true;
+ }
+ if($doping)
+ echo '<iframe src="' . get_settings('siteurl') .'/wp-admin/execute-pings.php?time=' . time() . '" style="border:none;width:1px;height:1px;"></iframe>';
+}
+
function do_enclose( $content, $post_ID ) {
global $wp_version, $wpdb;
include_once (ABSPATH . WPINC . '/class-IXR.php');