Changeset 16377
- Timestamp:
- 11/15/2010 06:38:10 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r16175 r16377 14 14 15 15 // Back-compat for viewing comments of an entry 16 if ( $_redirect = intval( max( @$_REQUEST['p'], @$_REQUEST['attachment_id'], @$_REQUEST['page_id'] ) ) ) { 17 wp_redirect( admin_url('edit-comments.php?p=' . $_redirect ) ); 18 exit; 19 } else { 20 unset( $_redirect ); 21 } 16 foreach ( array( 'p', 'attachment_id', 'page_id' ) as $_redirect ) { 17 if ( ! empty( $_REQUEST[ $_redirect ] ) ) { 18 wp_redirect( admin_url( 'edit-comments.php?p=' . absint( $_REQUEST[ $_redirect ] ) ) ); 19 exit; 20 } 21 } 22 unset( $_redirect ); 22 23 23 24 // Handle bulk actions -
trunk/wp-admin/includes/image-edit.php
r16130 r16377 423 423 $backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true ); 424 424 $restored = false; 425 $msg = '';425 $msg = new stdClass; 426 426 427 427 if ( !is_array($backup_sizes) ) { … … 494 494 495 495 function wp_save_image($post_id) { 496 $return = '';496 $return = new stdClass; 497 497 $success = $delete = $scaled = $nocrop = false; 498 498 $post = get_post($post_id); -
trunk/wp-admin/includes/user.php
r15896 r16377 56 56 function edit_user( $user_id = 0 ) { 57 57 global $wp_roles, $wpdb; 58 if ( $user_id != 0 ) { 58 $user = new WP_User( $user_id ); 59 if ( $user_id ) { 59 60 $update = true; 60 61 $user->ID = (int) $user_id; … … 63 64 } else { 64 65 $update = false; 65 $user = '';66 66 } 67 67 -
trunk/wp-includes/functions.php
r16365 r16377 4233 4233 $extra_headers[$key] = $key; 4234 4234 } 4235 $all_headers = array_merge( $extra_headers, $default_headers);4235 $all_headers = array_merge( $extra_headers, (array) $default_headers ); 4236 4236 } else { 4237 4237 $all_headers = $default_headers;
Note: See TracChangeset
for help on using the changeset viewer.