Skip to content

Commit

Permalink
Ensure amp-icons stylesheet is printed
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Sep 26, 2020
1 parent 973c69d commit 2dffaeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/Story_Renderer/HTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,11 @@ protected function display_admin_bar() {
protected function add_admin_bar_styles() {
ob_start();

wp_styles()->do_items( 'admin-bar' );
$styles = [ 'admin-bar' ];
if ( wp_style_is( 'amp-icons', 'registered' ) ) {
$styles[] = 'amp-icons';
}
wp_styles()->do_items( $styles );

?>
<style media="screen" id="admin-bar-inline-css">
Expand Down

0 comments on commit 2dffaeb

Please sign in to comment.