Changeset 50761 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 04/15/2021 02:41:38 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/script-loader.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r50703 r50761 1506 1506 1507 1507 $styles->add( 1508 'wp-reset-editor-styles', 1509 "/wp-includes/css/dist/block-library/reset$suffix.css", 1510 array( 'common', 'forms' ) // Make sure the reset is loaded after the default WP Admin styles. 1511 ); 1512 1513 $styles->add( 1514 'wp-editor-classic-layout-styles', 1515 "/wp-includes/css/dist/edit-post/classic$suffix.css", 1516 array() 1517 ); 1518 1519 $wp_edit_blocks_dependencies = array( 1520 'wp-components', 1521 'wp-editor', 1522 // This need to be added before the block library styles, 1523 // The block library styles override the "reset" styles. 1524 'wp-reset-editor-styles', 1525 'wp-block-library', 1526 'wp-reusable-blocks', 1527 1528 // This dependency shouldn't be added for themes with theme.json support 1529 // It's here for backward compatibility only. 1530 // A check should be added here when theme.json is backported to Core. 1531 'wp-editor-classic-layout-styles', 1532 ); 1533 global $editor_styles; 1534 if ( ! is_array( $editor_styles ) || count( $editor_styles ) === 0 ) { 1535 // Include opinionated block styles if no $editor_styles are declared, so the editor never appears broken. 1536 $wp_edit_blocks_dependencies[] = 'wp-block-library-theme'; 1537 } 1538 1539 $styles->add( 1508 1540 'wp-edit-blocks', 1509 1541 "/wp-includes/css/dist/block-library/editor$suffix.css", 1510 array( 1511 'wp-components', 1512 'wp-editor', 1513 'wp-block-library', 1514 // Always include visual styles so the editor never appears broken. 1515 'wp-block-library-theme', 1516 ) 1542 $wp_edit_blocks_dependencies 1517 1543 ); 1518 1544 … … 1534 1560 'wp-block-editor', 1535 1561 'wp-nux', 1562 'wp-reusable-blocks', 1536 1563 ), 1537 1564 'format-library' => array(), 1538 1565 'list-reusable-blocks' => array( 'wp-components' ), 1566 'reusable-blocks' => array( 'wp-components' ), 1539 1567 'nux' => array( 'wp-components' ), 1540 1568 ); … … 1581 1609 'wp-jquery-ui-dialog', 1582 1610 // Package styles. 1611 'wp-reset-editor-styles', 1612 'wp-editor-classic-layout-styles', 1583 1613 'wp-block-library-theme', 1584 1614 'wp-edit-blocks', … … 1591 1621 'wp-format-library', 1592 1622 'wp-list-reusable-blocks', 1623 'wp-reusable-blocks', 1593 1624 'wp-nux', 1594 1625 // Deprecated CSS.
Note: See TracChangeset
for help on using the changeset viewer.