Skip to content

Commit 8c82515

Browse files
committed
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
1 parent 15b4fa8 commit 8c82515

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3628
-926
lines changed

Diff for: wp-admin/admin-ajax.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
'send-attachment-to-editor', 'save-attachment-order', 'heartbeat', 'get-revision-diffs',
6363
'save-user-color-scheme', 'update-widget', 'query-themes', 'parse-embed', 'set-attachment-thumbnail',
6464
'parse-media-shortcode', 'destroy-sessions', 'install-plugin', 'update-plugin', 'press-this-save-post',
65-
'press-this-add-category', 'crop-image', 'generate-password', 'save-wporg-username',
65+
'press-this-add-category', 'crop-image', 'generate-password', 'save-wporg-username', 'delete-plugin',
66+
'search-plugins', 'search-install-plugins', 'activate-plugin', 'update-theme', 'delete-theme',
67+
'install-theme',
6668
);
6769

6870
// Deprecated

Diff for: wp-admin/css/common-rtl.css

+98-4
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,21 @@ div.error {
13971397
background-color: #e5f5fa;
13981398
}
13991399

1400+
.update-message p:before,
1401+
.updating-message p:before,
1402+
.updated-message p:before,
1403+
.import-php .updating-message:before,
1404+
.button.updating-message:before,
1405+
.button.updated-message:before,
1406+
.button.installed:before,
1407+
.button.installing:before {
1408+
display: inline-block;
1409+
font: normal 20px/1 'dashicons';
1410+
-webkit-font-smoothing: antialiased;
1411+
-moz-osx-font-smoothing: grayscale;
1412+
vertical-align: top;
1413+
}
1414+
14001415
.wrap .notice,
14011416
.wrap div.updated,
14021417
.wrap div.error,
@@ -1405,6 +1420,45 @@ div.error {
14051420
margin: 5px 0 15px;
14061421
}
14071422

1423+
/* Update icon. */
1424+
.update-message p:before,
1425+
.updating-message p:before,
1426+
.import-php .updating-message:before,
1427+
.button.updating-message:before,
1428+
.button.installing:before {
1429+
color: #f56e28;
1430+
content: "\f463";
1431+
}
1432+
1433+
/* Spins the update icon. */
1434+
.updating-message p:before,
1435+
.import-php .updating-message:before,
1436+
.button.updating-message:before,
1437+
.button.installing:before {
1438+
-webkit-animation: rotation 2s infinite linear;
1439+
animation: rotation 2s infinite linear;
1440+
}
1441+
1442+
/* Updated icon (check mark). */
1443+
.updated-message p:before,
1444+
.installed p:before,
1445+
.button.updated-message:before {
1446+
color: #79ba49;
1447+
content: '\f147';
1448+
}
1449+
1450+
/* Error icon. */
1451+
.update-message.notice-error p:before {
1452+
color: #dc3232;
1453+
content: "\f534";
1454+
}
1455+
1456+
.wrap .notice p:before,
1457+
.import-php .updating-message:before {
1458+
margin-left: 6px;
1459+
vertical-align: bottom;
1460+
}
1461+
14081462
#update-nag,
14091463
.update-nag {
14101464
display: inline-block;
@@ -1419,10 +1473,6 @@ div.error {
14191473
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
14201474
}
14211475

1422-
.update-message {
1423-
color: #000;
1424-
}
1425-
14261476
ul#dismissed-updates {
14271477
display: none;
14281478
}
@@ -1454,6 +1504,50 @@ form.upgrade .hint {
14541504
margin-right: 2em;
14551505
}
14561506

1507+
.button.updating-message:before,
1508+
.button.updated-message:before,
1509+
.button.installed:before,
1510+
.button.installing:before {
1511+
margin: 3px -2px 0 5px;
1512+
}
1513+
1514+
.button-primary.updating-message:before {
1515+
color: #fff;
1516+
}
1517+
1518+
.button-primary.updated-message:before {
1519+
color: #66c6e4;
1520+
}
1521+
1522+
.button.updated-message,
1523+
.notice .button-link {
1524+
-webkit-transition-property: border, background, color;
1525+
transition-property: border, background, color;
1526+
-webkit-transition-duration: .05s;
1527+
transition-duration: .05s;
1528+
-webkit-transition-timing-function: ease-in-out;
1529+
transition-timing-function: ease-in-out;
1530+
}
1531+
1532+
.notice .button-link {
1533+
color: #0073aa;
1534+
}
1535+
1536+
.notice .button-link:hover,
1537+
.notice .button-link:active {
1538+
color: #00a0d2;
1539+
}
1540+
1541+
@media aural {
1542+
.wrap .notice p:before,
1543+
.button.installing:before,
1544+
.button.installed:before,
1545+
.update-message p:before {
1546+
speak: none;
1547+
}
1548+
}
1549+
1550+
14571551
/* @todo: this does not need its own section anymore */
14581552
/*------------------------------------------------------------------------------
14591553
6.0 - Admin Header

Diff for: wp-admin/css/common-rtl.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: wp-admin/css/common.css

+98-4
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,21 @@ div.error {
13971397
background-color: #e5f5fa;
13981398
}
13991399

1400+
.update-message p:before,
1401+
.updating-message p:before,
1402+
.updated-message p:before,
1403+
.import-php .updating-message:before,
1404+
.button.updating-message:before,
1405+
.button.updated-message:before,
1406+
.button.installed:before,
1407+
.button.installing:before {
1408+
display: inline-block;
1409+
font: normal 20px/1 'dashicons';
1410+
-webkit-font-smoothing: antialiased;
1411+
-moz-osx-font-smoothing: grayscale;
1412+
vertical-align: top;
1413+
}
1414+
14001415
.wrap .notice,
14011416
.wrap div.updated,
14021417
.wrap div.error,
@@ -1405,6 +1420,45 @@ div.error {
14051420
margin: 5px 0 15px;
14061421
}
14071422

1423+
/* Update icon. */
1424+
.update-message p:before,
1425+
.updating-message p:before,
1426+
.import-php .updating-message:before,
1427+
.button.updating-message:before,
1428+
.button.installing:before {
1429+
color: #f56e28;
1430+
content: "\f463";
1431+
}
1432+
1433+
/* Spins the update icon. */
1434+
.updating-message p:before,
1435+
.import-php .updating-message:before,
1436+
.button.updating-message:before,
1437+
.button.installing:before {
1438+
-webkit-animation: rotation 2s infinite linear;
1439+
animation: rotation 2s infinite linear;
1440+
}
1441+
1442+
/* Updated icon (check mark). */
1443+
.updated-message p:before,
1444+
.installed p:before,
1445+
.button.updated-message:before {
1446+
color: #79ba49;
1447+
content: '\f147';
1448+
}
1449+
1450+
/* Error icon. */
1451+
.update-message.notice-error p:before {
1452+
color: #dc3232;
1453+
content: "\f534";
1454+
}
1455+
1456+
.wrap .notice p:before,
1457+
.import-php .updating-message:before {
1458+
margin-right: 6px;
1459+
vertical-align: bottom;
1460+
}
1461+
14081462
#update-nag,
14091463
.update-nag {
14101464
display: inline-block;
@@ -1419,10 +1473,6 @@ div.error {
14191473
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
14201474
}
14211475

1422-
.update-message {
1423-
color: #000;
1424-
}
1425-
14261476
ul#dismissed-updates {
14271477
display: none;
14281478
}
@@ -1454,6 +1504,50 @@ form.upgrade .hint {
14541504
margin-left: 2em;
14551505
}
14561506

1507+
.button.updating-message:before,
1508+
.button.updated-message:before,
1509+
.button.installed:before,
1510+
.button.installing:before {
1511+
margin: 3px 5px 0 -2px;
1512+
}
1513+
1514+
.button-primary.updating-message:before {
1515+
color: #fff;
1516+
}
1517+
1518+
.button-primary.updated-message:before {
1519+
color: #66c6e4;
1520+
}
1521+
1522+
.button.updated-message,
1523+
.notice .button-link {
1524+
-webkit-transition-property: border, background, color;
1525+
transition-property: border, background, color;
1526+
-webkit-transition-duration: .05s;
1527+
transition-duration: .05s;
1528+
-webkit-transition-timing-function: ease-in-out;
1529+
transition-timing-function: ease-in-out;
1530+
}
1531+
1532+
.notice .button-link {
1533+
color: #0073aa;
1534+
}
1535+
1536+
.notice .button-link:hover,
1537+
.notice .button-link:active {
1538+
color: #00a0d2;
1539+
}
1540+
1541+
@media aural {
1542+
.wrap .notice p:before,
1543+
.button.installing:before,
1544+
.button.installed:before,
1545+
.update-message p:before {
1546+
speak: none;
1547+
}
1548+
}
1549+
1550+
14571551
/* @todo: this does not need its own section anymore */
14581552
/*------------------------------------------------------------------------------
14591553
6.0 - Admin Header

Diff for: wp-admin/css/common.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: wp-admin/css/forms-rtl.css

+37
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,43 @@ table.form-table td .updated p {
10441044
display: inline;
10451045
}
10461046

1047+
.request-filesystem-credentials-dialog .ftp-username,
1048+
.request-filesystem-credentials-dialog .ftp-password {
1049+
float: none;
1050+
width: auto;
1051+
}
1052+
1053+
.request-filesystem-credentials-dialog .ftp-username {
1054+
margin-bottom: 1em;
1055+
}
1056+
1057+
.request-filesystem-credentials-dialog .ftp-password {
1058+
margin: 0;
1059+
}
1060+
1061+
.request-filesystem-credentials-dialog .ftp-password em {
1062+
color: #888;
1063+
}
1064+
1065+
.request-filesystem-credentials-dialog label {
1066+
display: block;
1067+
line-height: 1.5;
1068+
margin-bottom: 1em;
1069+
}
1070+
1071+
.request-filesystem-credentials-form legend {
1072+
padding-bottom: 0;
1073+
}
1074+
1075+
.request-filesystem-credentials-form #ssh-keys legend {
1076+
font-size: 1.3em;
1077+
}
1078+
1079+
.request-filesystem-credentials-form .notice {
1080+
margin: 0 0 20px 0;
1081+
clear: both;
1082+
}
1083+
10471084

10481085
/* =Media Queries
10491086
-------------------------------------------------------------- */

Diff for: wp-admin/css/forms-rtl.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: wp-admin/css/forms.css

+37
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,43 @@ table.form-table td .updated p {
10441044
display: inline;
10451045
}
10461046

1047+
.request-filesystem-credentials-dialog .ftp-username,
1048+
.request-filesystem-credentials-dialog .ftp-password {
1049+
float: none;
1050+
width: auto;
1051+
}
1052+
1053+
.request-filesystem-credentials-dialog .ftp-username {
1054+
margin-bottom: 1em;
1055+
}
1056+
1057+
.request-filesystem-credentials-dialog .ftp-password {
1058+
margin: 0;
1059+
}
1060+
1061+
.request-filesystem-credentials-dialog .ftp-password em {
1062+
color: #888;
1063+
}
1064+
1065+
.request-filesystem-credentials-dialog label {
1066+
display: block;
1067+
line-height: 1.5;
1068+
margin-bottom: 1em;
1069+
}
1070+
1071+
.request-filesystem-credentials-form legend {
1072+
padding-bottom: 0;
1073+
}
1074+
1075+
.request-filesystem-credentials-form #ssh-keys legend {
1076+
font-size: 1.3em;
1077+
}
1078+
1079+
.request-filesystem-credentials-form .notice {
1080+
margin: 0 0 20px 0;
1081+
clear: both;
1082+
}
1083+
10471084

10481085
/* =Media Queries
10491086
-------------------------------------------------------------- */

Diff for: wp-admin/css/forms.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)