Convert tb_id to int.
git-svn-id: https://develop.svn.wordpress.org/trunk@2555 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d1978523e8
commit
debd8e0e5f
@ -27,9 +27,11 @@ function trackback_response($error = 0, $error_message = '') {
|
||||
// trackback is done by a POST
|
||||
$request_array = 'HTTP_POST_VARS';
|
||||
|
||||
if (!$tb_id) {
|
||||
if ( empty($_GET['tb_id']) ) {
|
||||
$tb_id = explode('/', $_SERVER['REQUEST_URI']);
|
||||
$tb_id = intval($tb_id[count($tb_id)-1]);
|
||||
} else {
|
||||
$tb_id = intval($_GET['tb_id']);
|
||||
}
|
||||
|
||||
$tb_url = $_POST['url'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user