--- a/wp/wp-trackback.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-trackback.php Wed Sep 21 18:19:35 2022 +0200
@@ -46,7 +46,7 @@
if ( ! isset( $_GET['tb_id'] ) || ! $_GET['tb_id'] ) {
$tb_id = explode( '/', $_SERVER['REQUEST_URI'] );
- $tb_id = intval( $tb_id[ count( $tb_id ) - 1 ] );
+ $tb_id = (int) $tb_id[ count( $tb_id ) - 1 ];
}
$tb_url = isset( $_POST['url'] ) ? $_POST['url'] : '';
@@ -84,7 +84,7 @@
$tb_id = $posts[0]->ID;
}
-if ( ! isset( $tb_id ) || ! intval( $tb_id ) ) {
+if ( ! isset( $tb_id ) || ! (int) $tb_id ) {
trackback_response( 1, __( 'I really need an ID for this to work.' ) );
}