Show Select Files button the first time the media modal is opened.
Props koopermsith fixes #22691 git-svn-id: https://develop.svn.wordpress.org/trunk@22990 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8adec7a437
commit
c21e4809c3
@ -1903,6 +1903,11 @@
|
||||
|
||||
if ( this.controller.uploader ) {
|
||||
$placeholder = this.$('.browser');
|
||||
|
||||
// Check if we've already replaced the placeholder.
|
||||
if ( $placeholder[0] === $browser[0] )
|
||||
return;
|
||||
|
||||
$browser.detach().text( $placeholder.text() );
|
||||
$browser[0].className = $placeholder[0].className;
|
||||
$placeholder.replaceWith( $browser.show() );
|
||||
|
Loading…
Reference in New Issue
Block a user