Make WordPress Core


Ignore:
Timestamp:
12/06/2012 05:52:19 AM (12 years ago)
Author:
markjaquith
Message:

Add the ability to click "Edit" and kick out to the advanced image editor from within the Media modal. New window, with "Refresh" offered on your return. fixes #22743. props koopersmith, nacin, helenyhou.

File:
1 edited

Legend:

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

    r22863 r23095  
    192192    </tbody></table>
    193193    <div class="imgedit-wait" id="imgedit-wait-<?php echo $post_id; ?>"></div>
    194     <script type="text/javascript">imageEdit.init(<?php echo $post_id; ?>);</script>
     194    <script type="text/javascript">jQuery( function() { imageEdit.init(<?php echo $post_id; ?>); });</script>
    195195    <div class="hidden" id="imgedit-leaving-<?php echo $post_id; ?>"><?php _e("There are unsaved changes that will be lost. 'OK' to continue, 'Cancel' to return to the Image Editor."); ?></div>
    196196    </div>
Note: See TracChangeset for help on using the changeset viewer.