Changeset 4042 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 07/25/2006 07:01:52 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r4041 r4042 13 13 function get_out_now() { exit; } 14 14 add_action( 'shutdown', 'get_out_now', -1 ); 15 16 function wp_clean_ajax_input( $i ) {17 global $wpdb;18 $i = is_array($i) ? array_map('wp_clean_ajax_input', $i) : $wpdb->escape( rawurldecode(stripslashes($i)) );19 return $i;20 }21 15 22 16 function wp_ajax_echo_meta( $pid, $mid, $key, $value ) { … … 36 30 } 37 31 38 $_POST = wp_clean_ajax_input( $_POST );39 32 $id = (int) $_POST['id']; 40 33 switch ( $_POST['action'] ) : … … 225 218 break; 226 219 default : 220 do_action( 'wp_ajax_' . $_POST['action'] ); 227 221 die('0'); 228 222 break;
Note: See TracChangeset
for help on using the changeset viewer.