WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/15/2010 06:38:10 AM (10 years ago)
Author:
nacin
Message:

Properly check, initialize, or cast a number of variables. props ChenHui. see #14642.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/image-edit.php

    r16130 r16377  
    423423    $backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true );
    424424    $restored = false;
    425     $msg = '';
     425    $msg = new stdClass;
    426426
    427427    if ( !is_array($backup_sizes) ) {
     
    494494
    495495function wp_save_image($post_id) {
    496     $return = '';
     496    $return = new stdClass;
    497497    $success = $delete = $scaled = $nocrop = false;
    498498    $post = get_post($post_id);
Note: See TracChangeset for help on using the changeset viewer.