Skip to content

Commit f694f7f

Browse files
2 parents 46a723f + c39fa0f commit f694f7f

Some content is hidden

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

46 files changed

+5397
-193
lines changed

Gruntfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,10 @@ module.exports = function(grunt) {
439439
'external-http': {
440440
cmd: 'phpunit',
441441
args: ['-c', 'phpunit.xml.dist', '--group', 'external-http']
442+
},
443+
'restapi-jsclient': {
444+
cmd: 'phpunit',
445+
args: ['-c', 'phpunit.xml.dist', '--group', 'restapi-jsclient']
442446
}
443447
},
444448
uglify: {
@@ -672,6 +676,11 @@ module.exports = function(grunt) {
672676
'jshint:media'
673677
] );
674678

679+
grunt.registerTask( 'restapi-jsclient', [
680+
'phpunit:restapi-jsclient',
681+
'qunit:compiled'
682+
] );
683+
675684
grunt.renameTask( 'watch', '_watch' );
676685

677686
grunt.registerTask( 'watch', function() {

src/wp-admin/css/common.css

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ td {
244244
line-height: inherit;
245245
}
246246

247+
/* Any change to the default link style must be applied to button-link too. */
247248
a {
248249
color: #0073aa;
249250
-webkit-transition-property: border, background, color;
@@ -464,7 +465,8 @@ code {
464465
word-wrap: break-word;
465466
}
466467

467-
.widefat a {
468+
.widefat a,
469+
.widefat button.button-link {
468470
text-decoration: none;
469471
}
470472

@@ -1242,20 +1244,10 @@ th.action-links {
12421244
}
12431245

12441246
.wp-filter .button-link.edit-filters {
1245-
color: #0073aa;
1246-
text-decoration: underline;
12471247
padding: 0 5px;
12481248
line-height: 28px;
12491249
}
12501250

1251-
.wp-filter .button-link.edit-filters:hover {
1252-
color: #00a0d2;
1253-
}
1254-
1255-
.wp-filter .button-link.edit-filters:focus {
1256-
color: #124964;
1257-
}
1258-
12591251
.filtered-by {
12601252
display: none;
12611253
margin: 0;
@@ -1607,8 +1599,7 @@ form.upgrade .hint {
16071599
color: #66c6e4;
16081600
}
16091601

1610-
.button.updated-message,
1611-
.notice .button-link {
1602+
.button.updated-message {
16121603
-webkit-transition-property: border, background, color;
16131604
transition-property: border, background, color;
16141605
-webkit-transition-duration: .05s;
@@ -1617,15 +1608,6 @@ form.upgrade .hint {
16171608
transition-timing-function: ease-in-out;
16181609
}
16191610

1620-
.notice .button-link {
1621-
color: #0073aa;
1622-
}
1623-
1624-
.notice .button-link:hover,
1625-
.notice .button-link:active {
1626-
color: #00a0d2;
1627-
}
1628-
16291611
@media aural {
16301612
.wrap .notice p:before,
16311613
.button.installing:before,
@@ -2064,7 +2046,11 @@ html.wp-toolbar {
20642046
float: right;
20652047
width: 36px;
20662048
height: 36px;
2049+
margin: 0;
20672050
padding: 0;
2051+
border: 0;
2052+
background: none;
2053+
cursor: pointer;
20682054
}
20692055

20702056
.js .postbox .handlediv {
@@ -3278,6 +3264,7 @@ img {
32783264
}
32793265

32803266
.handlediv,
3267+
.postbox .handlediv.button-link,
32813268
.item-edit,
32823269
.sidebar-name-arrow,
32833270
.accordion-section-title:after {
@@ -3292,6 +3279,8 @@ img {
32923279
.widget-action:focus,
32933280
.handlediv:hover,
32943281
.handlediv:focus,
3282+
.postbox .handlediv.button-link:hover,
3283+
.postbox .handlediv.button-link:focus,
32953284
.item-edit:hover,
32963285
.item-edit:focus,
32973286
.sidebar-name:hover .sidebar-name-arrow,

src/wp-admin/css/customize-controls.css

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -762,19 +762,8 @@ p.customize-section-description {
762762

763763
.customize-control-dropdown-pages .add-new-toggle {
764764
margin-left: 1px;
765-
color: #0073aa;
766765
font-weight: 600;
767766
line-height: 28px;
768-
text-decoration: underline;
769-
}
770-
771-
.customize-control-dropdown-pages .add-new-toggle:hover,
772-
.customize-control-dropdown-pages .add-new-toggle:active {
773-
color: #00a0d2;
774-
}
775-
776-
.customize-control-dropdown-pages .add-new-toggle:focus {
777-
color: #124964;
778767
}
779768

780769
#customize-preview iframe {
@@ -1473,24 +1462,11 @@ body.cheatin p {
14731462

14741463
/* Reordering */
14751464
.reorder-toggle {
1476-
color: #0073aa;
14771465
float: right;
14781466
padding: 5px 8px;
14791467
text-decoration: none;
14801468
cursor: pointer;
14811469
outline: none;
1482-
-webkit-user-select: none;
1483-
-moz-user-select: none;
1484-
-ms-user-select: none;
1485-
user-select: none;
1486-
}
1487-
1488-
.reorder-toggle:hover {
1489-
color: #00a0d2;
1490-
}
1491-
1492-
.reorder-toggle:focus {
1493-
outline: 1px dotted;
14941470
}
14951471

14961472
.reorder,
@@ -1502,13 +1478,6 @@ body.cheatin p {
15021478
.reorder-done,
15031479
.reordering .reorder {
15041480
display: none;
1505-
color: #0073aa;
1506-
}
1507-
1508-
.reorder-toggle:hover .reorder-done,
1509-
.reorder-toggle:active .reorder-done,
1510-
.reorder-toggle:focus .reorder-done {
1511-
color: #00a0d2;
15121481
}
15131482

15141483
.widget-reorder-nav span,

src/wp-admin/css/customize-nav-menus.css

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@
2525
margin-left: 6px;
2626
vertical-align: middle;
2727
line-height: 28px;
28-
color: #0073aa;
29-
text-decoration: underline;
30-
}
31-
32-
.customize-control-nav_menu_location .edit-menu:hover,
33-
.customize-control-nav_menu_location .edit-menu:active {
34-
color: #00a0d2;
35-
}
36-
37-
.customize-control-nav_menu_location .edit-menu:focus {
38-
color: #124964;
3928
}
4029

4130
.wp-customizer .menu-item-bar .menu-item-handle,
@@ -806,17 +795,6 @@ li.assigned-to-menu-location .add-new-menu-item {
806795
margin-bottom: 1em;
807796
}
808797

809-
.menu-delete {
810-
color: #a00;
811-
cursor: pointer;
812-
text-decoration: underline;
813-
}
814-
815-
.menu-delete:hover,
816-
.menu-delete:focus {
817-
color: #f00;
818-
}
819-
820798
.menu-item-handle {
821799
margin-top: -1px;
822800
}

src/wp-admin/css/dashboard.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,8 @@ form.initial-form.quickpress-open input#title {
771771
min-width: 0;
772772
}
773773

774-
#dashboard-widgets a {
774+
#dashboard-widgets a,
775+
#dashboard-widgets .button-link {
775776
text-decoration: none;
776777
}
777778

src/wp-admin/css/edit.css

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ input#link_url {
100100
margin-right: 10px;
101101
padding: 0;
102102
font-size: 11px;
103-
text-decoration: underline;
104-
color: #0073aa;
105103
}
106104

107105
#comment-link-box {
@@ -1035,25 +1033,6 @@ span.description,
10351033
width: 260px;
10361034
}
10371035

1038-
.tagcloud-link.button-link {
1039-
color: #0073aa;
1040-
text-decoration: underline;
1041-
}
1042-
1043-
.tagcloud-link.button-link:hover {
1044-
color: #00a0d2;
1045-
}
1046-
1047-
.tagcloud-link.button-link:focus {
1048-
color: #124964;
1049-
-webkit-box-shadow:
1050-
0 0 0 1px #5b9dd9,
1051-
0 0 2px 1px rgba(30, 140, 190, .8);
1052-
box-shadow:
1053-
0 0 0 1px #5b9dd9,
1054-
0 0 2px 1px rgba(30, 140, 190, .8);
1055-
}
1056-
10571036
#post-body-content .tagsdiv .the-tags {
10581037
margin: 0 5px;
10591038
}

src/wp-admin/css/media.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,9 +1066,9 @@ border color while dragging a file over the uploader drop area */
10661066
line-height: 1.4;
10671067
}
10681068

1069-
.imgedit-group-top h3 a, /* Back-compat for pre-4.4 */
1070-
.imgedit-group-top h2 a {
1069+
#poststuff .imgedit-group-top .button-link {
10711070
text-decoration: none;
1071+
color: #23282d;
10721072
}
10731073

10741074
.imgedit-applyto .imgedit-label {

src/wp-admin/css/nav-menus.css

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -664,24 +664,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
664664
.menu-item-settings .field-move .button-link {
665665
display: none;
666666
margin: 0 2px;
667-
color: #0073aa;
668667
font-style: italic;
669-
text-decoration: underline;
670-
}
671-
672-
.menu-item-settings .field-move .button-link:hover,
673-
.menu-item-settings .field-move .button-link:active {
674-
color: #00a0d2;
675-
}
676-
677-
.menu-item-settings .field-move .button-link:focus {
678-
color: #124964;
679-
-webkit-box-shadow:
680-
0 0 0 1px #5b9dd9,
681-
0 0 2px 1px rgba(30, 140, 190, .8);
682-
box-shadow:
683-
0 0 0 1px #5b9dd9,
684-
0 0 2px 1px rgba(30, 140, 190, .8);
685668
}
686669

687670
.menu-item-edit-active .menu-item-settings {

0 commit comments

Comments
 (0)