CGI ping fixes. fixes #2197
git-svn-id: http://svn.automattic.com/wordpress/trunk@3491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dd14d47290
commit
5c166af378
|
@ -8,5 +8,10 @@
|
||||||
</div>
|
</div>
|
||||||
<?php do_action('admin_footer', ''); ?>
|
<?php do_action('admin_footer', ''); ?>
|
||||||
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
|
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
|
||||||
|
|
||||||
|
<?php if ( (substr(php_sapi_name(), 0, 3) == 'cgi') && spawn_pinger() ) : ?>
|
||||||
|
<iframe id="pingcheck" src="' . get_settings('siteurl') .'/wp-admin/execute-pings.php?time=' . time() . '" style="border:none;width:1px;height:1px;"></iframe>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1001,6 +1001,9 @@ function spawn_pinger() {
|
||||||
if ( $wpdb->get_var("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_pingme' OR meta_key = '_encloseme' LIMIT 1") )
|
if ( $wpdb->get_var("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_pingme' OR meta_key = '_encloseme' LIMIT 1") )
|
||||||
$doping = true;
|
$doping = true;
|
||||||
|
|
||||||
|
if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
|
||||||
|
return $doping;
|
||||||
|
|
||||||
if ( $doping ) {
|
if ( $doping ) {
|
||||||
$ping_url = get_settings('siteurl') .'/wp-admin/execute-pings.php';
|
$ping_url = get_settings('siteurl') .'/wp-admin/execute-pings.php';
|
||||||
$parts = parse_url($ping_url);
|
$parts = parse_url($ping_url);
|
||||||
|
|
Loading…
Reference in New Issue