Make WordPress Core

Ticket #2197: cgi-ping.diff

File cgi-ping.diff, 1.2 KB (added by skeltoac, 19 years ago)

Reinstates iframe for CGI users.

  • wp-includes/functions.php

     
    997997        if ( $wpdb->get_var("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_pingme' OR meta_key = '_encloseme' LIMIT 1") )
    998998                $doping = true;
    999999
     1000        if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
     1001                return $doping;
     1002
    10001003        if ( $doping ) {
    10011004                $ping_url = get_settings('siteurl') .'/wp-admin/execute-pings.php';
    10021005                $parts = parse_url($ping_url);
  • wp-admin/admin-footer.php

     
    88</div>
    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>
    12 </html>
    13  No newline at end of file
     17</html>