Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #31412, comment 1


Ignore:
Timestamp:
02/22/2015 10:51:38 AM (10 years ago)
Author:
iseulde
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31412, comment 1

    v1 v2  
    2424
    2525{{{
    26 edit: function( text, callback ) {
     26edit: function( text, update ) {
    2727        var gallery = wp.media.gallery,
    2828                frame = gallery.edit( text );
    2929
    3030        frame.state( 'gallery-edit' ).on( 'update', function( selection ) {
    31                 callback( gallery.shortcode( selection ).string() );
     31                update( gallery.shortcode( selection ).string() );
    3232        } );
    3333