WordPress.org

Make WordPress Core

Changeset 3491


Ignore:
Timestamp:
01/28/2006 06:41:19 PM (14 years ago)
Author:
ryan
Message:

CGI ping fixes. fixes #2197

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-footer.php

    r3317 r3491  
    99<?php do_action('admin_footer', ''); ?>
    1010<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
     11
     12<?php if ( (substr(php_sapi_name(), 0, 3) == 'cgi') && spawn_pinger() ) : ?>
     13<iframe id="pingcheck" src="' . get_settings('siteurl') .'/wp-admin/execute-pings.php?time=' . time() . '" style="border:none;width:1px;height:1px;"></iframe>
     14<?php endif; ?>
     15
    1116</body>
    1217</html>
  • trunk/wp-includes/functions.php

    r3490 r3491  
    10021002        $doping = true;
    10031003
     1004    if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
     1005        return $doping;
     1006
    10041007    if ( $doping ) {
    10051008        $ping_url = get_settings('siteurl') .'/wp-admin/execute-pings.php';
Note: See TracChangeset for help on using the changeset viewer.