Changeset 58703 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 07/10/2024 06:17:44 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r58685 r58703 1424 1424 } 1425 1425 1426 // Load the custom CSS last so it has the highest specificity. 1427 if ( in_array( 'custom-css', $types, true ) ) { 1428 // Add the global styles root CSS. 1429 $stylesheet .= _wp_array_get( $this->theme_json, array( 'styles', 'css' ) ); 1430 } 1431 1426 1432 return $stylesheet; 1427 1433 } … … 1468 1474 * 1469 1475 * @since 6.2.0 1476 * @deprecated 6.7.0 Use {@see 'get_stylesheet'} instead. 1470 1477 * 1471 1478 * @return string The global styles custom CSS. 1472 1479 */ 1473 1480 public function get_custom_css() { 1481 _deprecated_function( __METHOD__, '6.7.0', 'get_stylesheet' ); 1474 1482 // Add the global styles root CSS. 1475 1483 $stylesheet = isset( $this->theme_json['styles']['css'] ) ? $this->theme_json['styles']['css'] : ''; … … 2693 2701 'features' => $feature_selectors, 2694 2702 'variations' => $variation_selectors, 2703 'css' => $selector, 2695 2704 ); 2696 2705 … … 2909 2918 } 2910 2919 2911 // 7. Generate and append any custom CSS rules pertaining to nested block style variations.2920 // 7. Generate and append any custom CSS rules. 2912 2921 if ( isset( $node['css'] ) && ! $is_root_selector ) { 2913 2922 $block_rules .= $this->process_blocks_custom_css( $node['css'], $selector );
Note: See TracChangeset
for help on using the changeset viewer.