Changeset 49108 for trunk/src/wp-trackback.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-trackback.php
r47198 r49108 47 47 if ( ! isset( $_GET['tb_id'] ) || ! $_GET['tb_id'] ) { 48 48 $tb_id = explode( '/', $_SERVER['REQUEST_URI'] ); 49 $tb_id = intval( $tb_id[ count( $tb_id ) - 1 ] );49 $tb_id = (int) $tb_id[ count( $tb_id ) - 1 ]; 50 50 } 51 51 … … 85 85 } 86 86 87 if ( ! isset( $tb_id ) || ! intval( $tb_id )) {87 if ( ! isset( $tb_id ) || ! (int) $tb_id ) { 88 88 trackback_response( 1, __( 'I really need an ID for this to work.' ) ); 89 89 }
Note: See TracChangeset
for help on using the changeset viewer.