Changeset 2556 for trunk/wp-trackback.php
- Timestamp:
- 04/20/2005 03:37:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-trackback.php
r2555 r2556 28 28 $request_array = 'HTTP_POST_VARS'; 29 29 30 if ( empty($_GET['tb_id'])) {30 if ( !$_GET['tb_id'] ) { 31 31 $tb_id = explode('/', $_SERVER['REQUEST_URI']); 32 $tb_id = intval($tb_id[count($tb_id)-1]); 33 } else { 34 $tb_id = intval($_GET['tb_id']); 32 $tb_id = intval( $tb_id[ count($tb_id) - 1 ] ); 35 33 } 36 34 … … 55 53 $tb_id = $posts[0]->ID; 56 54 57 if ( ! $tb_id)55 if ( !intval( $tb_id ) ) 58 56 trackback_response(1, 'I really need an ID for this to work.'); 59 57 … … 69 67 $pingstatus = $wpdb->get_var("SELECT ping_status FROM $wpdb->posts WHERE ID = $tb_id"); 70 68 71 if ( 'open' != $pingstatus)69 if ( 'open' != $pingstatus ) 72 70 trackback_response(1, 'Sorry, trackbacks are closed for this item.'); 73 71
Note: See TracChangeset
for help on using the changeset viewer.