From 1e19ec5fb4cf3e6eed5f89e1b815ca89118672a3 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: http://core.svn.wordpress.org/trunk@22542 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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();