Ticket #2197: cgi-ping.diff
File cgi-ping.diff, 1.2 KB (added by , 19 years ago) |
---|
-
wp-includes/functions.php
997 997 if ( $wpdb->get_var("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_pingme' OR meta_key = '_encloseme' LIMIT 1") ) 998 998 $doping = true; 999 999 1000 if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) 1001 return $doping; 1002 1000 1003 if ( $doping ) { 1001 1004 $ping_url = get_settings('siteurl') .'/wp-admin/execute-pings.php'; 1002 1005 $parts = parse_url($ping_url); -
wp-admin/admin-footer.php
8 8 </div> 9 9 <?php do_action('admin_footer', ''); ?> 10 10 <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 11 16 </body> 12 </html> 13 No newline at end of file 17 </html>