Make WordPress Core


Ignore:
Timestamp:
09/24/2009 08:47:33 AM (15 years ago)
Author:
azaozz
Message:

Image Editor: fix JS prompt, add size to 'load_image_to_edit' filter, see #10528

File:
1 edited

Legend:

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

    r11965 r11967  
    9191
    9292    <div class="imgedit-submit">
    93         <input type="button" onclick="imageEdit.close(<?php echo "$post_id, '$nonce'"; ?>)" class="button" value="<?php echo esc_attr__( 'Cancel' ); ?>" />
     93        <input type="button" onclick="imageEdit.close(<?php echo $post_id; ?>, 1)" class="button" value="<?php echo esc_attr__( 'Cancel' ); ?>" />
    9494        <input type="button" onclick="imageEdit.save(<?php echo "$post_id, '$nonce'"; ?>)" class="button-primary imgedit-submit-btn" value="<?php echo esc_attr__( 'Save' ); ?>" />
    9595    </div>
     
    233233    }
    234234    if ( is_resource($image) ) {
    235         $image = apply_filters('load_image_to_edit', $image, $post->ID);
     235        $image = apply_filters('load_image_to_edit', $image, $post->ID, $size);
    236236        if ( function_exists('imagealphablending') && function_exists('imagesavealpha') ) {
    237237            imagealphablending($image, false);
Note: See TracChangeset for help on using the changeset viewer.