mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Missing querycount
git-svn-id: https://develop.svn.wordpress.org/trunk@558 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -31,6 +31,7 @@ if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_u
|
||||
trackback_response(1, 'Sorry, this weblog does not allow you to trackback its posts.');
|
||||
|
||||
$pingstatus = $wpdb->get_var("SELECT ping_status FROM $tableposts WHERE ID = $tb_id");
|
||||
++$querycount;
|
||||
|
||||
if ('closed' == $pingstatus)
|
||||
trackback_response(1, 'Sorry, trackbacks are closed for this item.');
|
||||
@@ -86,6 +87,7 @@ if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_u
|
||||
die ("There is an error with the database, it can't store your comment...<br />Please contact the <a href='mailto:$admin_email'>webmaster</a>.");
|
||||
} else {
|
||||
$comment_ID = $wpdb->get_var('SELECT last_insert_id()');
|
||||
++$querycount;
|
||||
if ($comments_notify)
|
||||
wp_notify_postauthor($comment_ID, 'trackback');
|
||||
trackback_response(0);
|
||||
|
||||
Reference in New Issue
Block a user