- Timestamp:
- 02/17/2022 01:07:46 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/wp-includes/block-supports/elements.php
r52069 r52747 47 47 $link_color_declaration = esc_html( safecss_filter_attr( "color: $link_color" ) ); 48 48 49 $style = " <style>.$class_name a{" . $link_color_declaration . ";}</style>\n";49 $style = ".$class_name a{" . $link_color_declaration . ';}'; 50 50 51 51 // Like the layout hook this assumes the hook only applies to blocks with a single wrapper. … … 69 69 } 70 70 71 /* 72 * Ideally styles should be loaded in the head, but blocks may be parsed 73 * after that, so loading in the footer for now. 74 * See https://core.trac.wordpress.org/ticket/53494. 75 */ 76 add_action( 77 'wp_footer', 78 static function () use ( $style ) { 79 echo $style; 80 } 81 ); 71 wp_enqueue_block_support( $style ); 82 72 83 73 return $content;
Note: See TracChangeset
for help on using the changeset viewer.