WordPress.org

Make WordPress Core

Changeset 22542


Ignore:
Timestamp:
11/11/2012 01:40:47 AM (8 years ago)
Author:
koopersmith
Message:

Media in QuickPress: Ensure wpActiveEditor is set when the "Add Media" button is clicked. fixes #22021, see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/dashboard.js

    r22517 r22542  
    109109        });
    110110
    111         $('#dashboard_quick_press #title, #dashboard_quick_press #content').focus(function(){ wpActiveEditor = 'content'; });
     111        $('#quick-press').on( 'click focusin', function() {
     112            wpActiveEditor = 'content';
     113        });
    112114    };
    113115    quickPressLoad();
Note: See TracChangeset for help on using the changeset viewer.