function fwp_do_pings () {
	if (!is_null($fwp_held_ping) and $post_id) : // Defer until we're done updating
		$fwp_held_ping = $post_id;
	elseif (function_exists('do_all_pings')) :
		do_all_pings();
	else :
		generic_ping($fwp_held_ping);
	endif;
}
function fwp_do_pings()
{
    if (!is_null($fwp_held_ping) and $post_id) {
        // Defer until we're done updating
        $fwp_held_ping = $post_id;
    } elseif (function_exists('do_all_pings')) {
        do_all_pings();
    } else {
        generic_ping($fwp_held_ping);
    }
}
Example #3
0
function powerpress_do_all_pings()
{
    global $wpdb;
    $wpdb->query("DELETE FROM {$wpdb->postmeta} WHERE meta_key = '_encloseme' ");
    // Now call the WordPress do_all_pings()...
    do_all_pings();
    remove_action('do_pings', 'do_all_pings');
}