From e672eb2166ddf76917d947af0ebd5b270eecd2e4 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Sun, 11 Nov 2012 01:40:47 +0000 Subject: [PATCH] Media in QuickPress: Ensure wpActiveEditor is set when the "Add Media" button is clicked. fixes #22021, see #21390. git-svn-id: https://develop.svn.wordpress.org/trunk@22542 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/dashboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/js/dashboard.js b/wp-admin/js/dashboard.js index f807cc931b..50a17f85eb 100644 --- a/wp-admin/js/dashboard.js +++ b/wp-admin/js/dashboard.js @@ -108,7 +108,9 @@ jQuery(document).ready( function($) { }); }); - $('#dashboard_quick_press #title, #dashboard_quick_press #content').focus(function(){ wpActiveEditor = 'content'; }); + $('#quick-press').on( 'click focusin', function() { + wpActiveEditor = 'content'; + }); }; quickPressLoad();