Commit a0b4b6a
committed
Toolbar: apply default color scheme to front-end admin bar.
Reapply front-end admin bar color scheme support that was reverted in
9027fd9 because the previous implementation issued an HTTP request via
wp_remote_get() on every front-end page load. Read the modern color scheme
stylesheet directly from the local filesystem instead, and extract only
rule blocks whose selector contains `#wpadminbar` so unrelated admin-only
styles (pointers, media library, theme browser, customizer, etc.) are
not leaked to the front end. Per-user color schemes are intentionally not
honored to keep the cost predictable.
See #64762.1 parent 9027fd9 commit a0b4b6a
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1462 | 1462 | | |
1463 | 1463 | | |
1464 | 1464 | | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
| 703 | + | |
703 | 704 | | |
704 | 705 | | |
705 | 706 | | |
| |||
0 commit comments