Plugin Install: show the upload form in place rather than sending users to the devoted upload plugin page.

Props Ipstenu, ericlewis, michaelarestad.

Fixes #35429.

git-svn-id: https://develop.svn.wordpress.org/trunk@37221 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia
2016-04-16 16:42:48 +00:00
parent 745018d81a
commit e4b26366e4
9 changed files with 75 additions and 28 deletions
+11 -5
View File
@@ -1056,13 +1056,16 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-install-php a.browse-themes {
cursor: pointer;
}
.theme-install-php a.browse-themes,
.theme-install-php.show-upload-theme a.upload {
.upload-view-toggle .browse,
.upload-view-toggle.upload-tab .upload {
display: none;
}
.theme-install-php.show-upload-theme a.browse-themes {
.upload-view-toggle.upload-tab .browse {
display: inline;
}
.upload-theme,
.upload-plugin {
-webkit-box-sizing: border-box;
@@ -1076,10 +1079,13 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
position: relative;
top: 10px;
}
body.show-upload-theme .upload-theme,
.upload-plugin {
.show-upload-view .upload-theme,
.show-upload-view .upload-plugin,
.upload-tab .upload-plugin {
display: block;
}
.upload-theme .wp-upload-form,
.upload-plugin .wp-upload-form {
background: #fafafa;