Skip to content
Permalink
Browse files Browse the repository at this point in the history
Update/Install: Shiny Updates v2.
Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.

Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.


Built from https://develop.svn.wordpress.org/trunk@37714


git-svn-id: http://core.svn.wordpress.org/trunk@37680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
obenland committed Jun 15, 2016
1 parent 15b4fa8 commit 8c82515
Show file tree
Hide file tree
Showing 45 changed files with 3,628 additions and 926 deletions.
4 changes: 3 additions & 1 deletion wp-admin/admin-ajax.php
Expand Up @@ -62,7 +62,9 @@
'send-attachment-to-editor', 'save-attachment-order', 'heartbeat', 'get-revision-diffs',
'save-user-color-scheme', 'update-widget', 'query-themes', 'parse-embed', 'set-attachment-thumbnail',
'parse-media-shortcode', 'destroy-sessions', 'install-plugin', 'update-plugin', 'press-this-save-post',
'press-this-add-category', 'crop-image', 'generate-password', 'save-wporg-username',
'press-this-add-category', 'crop-image', 'generate-password', 'save-wporg-username', 'delete-plugin',
'search-plugins', 'search-install-plugins', 'activate-plugin', 'update-theme', 'delete-theme',
'install-theme',
);

// Deprecated
Expand Down
102 changes: 98 additions & 4 deletions wp-admin/css/common-rtl.css
Expand Up @@ -1397,6 +1397,21 @@ div.error {
background-color: #e5f5fa;
}

.update-message p:before,
.updating-message p:before,
.updated-message p:before,
.import-php .updating-message:before,
.button.updating-message:before,
.button.updated-message:before,
.button.installed:before,
.button.installing:before {
display: inline-block;
font: normal 20px/1 'dashicons';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
vertical-align: top;
}

.wrap .notice,
.wrap div.updated,
.wrap div.error,
Expand All @@ -1405,6 +1420,45 @@ div.error {
margin: 5px 0 15px;
}

/* Update icon. */
.update-message p:before,
.updating-message p:before,
.import-php .updating-message:before,
.button.updating-message:before,
.button.installing:before {
color: #f56e28;
content: "\f463";
}

/* Spins the update icon. */
.updating-message p:before,
.import-php .updating-message:before,
.button.updating-message:before,
.button.installing:before {
-webkit-animation: rotation 2s infinite linear;
animation: rotation 2s infinite linear;
}

/* Updated icon (check mark). */
.updated-message p:before,
.installed p:before,
.button.updated-message:before {
color: #79ba49;
content: '\f147';
}

/* Error icon. */
.update-message.notice-error p:before {
color: #dc3232;
content: "\f534";
}

.wrap .notice p:before,
.import-php .updating-message:before {
margin-left: 6px;
vertical-align: bottom;
}

#update-nag,
.update-nag {
display: inline-block;
Expand All @@ -1419,10 +1473,6 @@ div.error {
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
}

.update-message {
color: #000;
}

ul#dismissed-updates {
display: none;
}
Expand Down Expand Up @@ -1454,6 +1504,50 @@ form.upgrade .hint {
margin-right: 2em;
}

.button.updating-message:before,
.button.updated-message:before,
.button.installed:before,
.button.installing:before {
margin: 3px -2px 0 5px;
}

.button-primary.updating-message:before {
color: #fff;
}

.button-primary.updated-message:before {
color: #66c6e4;
}

.button.updated-message,
.notice .button-link {
-webkit-transition-property: border, background, color;
transition-property: border, background, color;
-webkit-transition-duration: .05s;
transition-duration: .05s;
-webkit-transition-timing-function: ease-in-out;
transition-timing-function: ease-in-out;
}

.notice .button-link {
color: #0073aa;
}

.notice .button-link:hover,
.notice .button-link:active {
color: #00a0d2;
}

@media aural {
.wrap .notice p:before,
.button.installing:before,
.button.installed:before,
.update-message p:before {
speak: none;
}
}


/* @todo: this does not need its own section anymore */
/*------------------------------------------------------------------------------
6.0 - Admin Header
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/common-rtl.min.css

Large diffs are not rendered by default.

102 changes: 98 additions & 4 deletions wp-admin/css/common.css
Expand Up @@ -1397,6 +1397,21 @@ div.error {
background-color: #e5f5fa;
}

.update-message p:before,
.updating-message p:before,
.updated-message p:before,
.import-php .updating-message:before,
.button.updating-message:before,
.button.updated-message:before,
.button.installed:before,
.button.installing:before {
display: inline-block;
font: normal 20px/1 'dashicons';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
vertical-align: top;
}

.wrap .notice,
.wrap div.updated,
.wrap div.error,
Expand All @@ -1405,6 +1420,45 @@ div.error {
margin: 5px 0 15px;
}

/* Update icon. */
.update-message p:before,
.updating-message p:before,
.import-php .updating-message:before,
.button.updating-message:before,
.button.installing:before {
color: #f56e28;
content: "\f463";
}

/* Spins the update icon. */
.updating-message p:before,
.import-php .updating-message:before,
.button.updating-message:before,
.button.installing:before {
-webkit-animation: rotation 2s infinite linear;
animation: rotation 2s infinite linear;
}

/* Updated icon (check mark). */
.updated-message p:before,
.installed p:before,
.button.updated-message:before {
color: #79ba49;
content: '\f147';
}

/* Error icon. */
.update-message.notice-error p:before {
color: #dc3232;
content: "\f534";
}

.wrap .notice p:before,
.import-php .updating-message:before {
margin-right: 6px;
vertical-align: bottom;
}

#update-nag,
.update-nag {
display: inline-block;
Expand All @@ -1419,10 +1473,6 @@ div.error {
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
}

.update-message {
color: #000;
}

ul#dismissed-updates {
display: none;
}
Expand Down Expand Up @@ -1454,6 +1504,50 @@ form.upgrade .hint {
margin-left: 2em;
}

.button.updating-message:before,
.button.updated-message:before,
.button.installed:before,
.button.installing:before {
margin: 3px 5px 0 -2px;
}

.button-primary.updating-message:before {
color: #fff;
}

.button-primary.updated-message:before {
color: #66c6e4;
}

.button.updated-message,
.notice .button-link {
-webkit-transition-property: border, background, color;
transition-property: border, background, color;
-webkit-transition-duration: .05s;
transition-duration: .05s;
-webkit-transition-timing-function: ease-in-out;
transition-timing-function: ease-in-out;
}

.notice .button-link {
color: #0073aa;
}

.notice .button-link:hover,
.notice .button-link:active {
color: #00a0d2;
}

@media aural {
.wrap .notice p:before,
.button.installing:before,
.button.installed:before,
.update-message p:before {
speak: none;
}
}


/* @todo: this does not need its own section anymore */
/*------------------------------------------------------------------------------
6.0 - Admin Header
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/common.min.css

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions wp-admin/css/forms-rtl.css
Expand Up @@ -1044,6 +1044,43 @@ table.form-table td .updated p {
display: inline;
}

.request-filesystem-credentials-dialog .ftp-username,
.request-filesystem-credentials-dialog .ftp-password {
float: none;
width: auto;
}

.request-filesystem-credentials-dialog .ftp-username {
margin-bottom: 1em;
}

.request-filesystem-credentials-dialog .ftp-password {
margin: 0;
}

.request-filesystem-credentials-dialog .ftp-password em {
color: #888;
}

.request-filesystem-credentials-dialog label {
display: block;
line-height: 1.5;
margin-bottom: 1em;
}

.request-filesystem-credentials-form legend {
padding-bottom: 0;
}

.request-filesystem-credentials-form #ssh-keys legend {
font-size: 1.3em;
}

.request-filesystem-credentials-form .notice {
margin: 0 0 20px 0;
clear: both;
}


/* =Media Queries
-------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/forms-rtl.min.css

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions wp-admin/css/forms.css
Expand Up @@ -1044,6 +1044,43 @@ table.form-table td .updated p {
display: inline;
}

.request-filesystem-credentials-dialog .ftp-username,
.request-filesystem-credentials-dialog .ftp-password {
float: none;
width: auto;
}

.request-filesystem-credentials-dialog .ftp-username {
margin-bottom: 1em;
}

.request-filesystem-credentials-dialog .ftp-password {
margin: 0;
}

.request-filesystem-credentials-dialog .ftp-password em {
color: #888;
}

.request-filesystem-credentials-dialog label {
display: block;
line-height: 1.5;
margin-bottom: 1em;
}

.request-filesystem-credentials-form legend {
padding-bottom: 0;
}

.request-filesystem-credentials-form #ssh-keys legend {
font-size: 1.3em;
}

.request-filesystem-credentials-form .notice {
margin: 0 0 20px 0;
clear: both;
}


/* =Media Queries
-------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/forms.min.css

Large diffs are not rendered by default.

0 comments on commit 8c82515

Please sign in to comment.