mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Show Select Files button the first time the media modal is opened.
Props koopermsith fixes #22691 git-svn-id: http://core.svn.wordpress.org/trunk@22990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3097cb315b
commit
01adc2740e
@ -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