Skip to content

Commit

Permalink
Issue #41 - Always enqueue dashicons to support display of block icon…
Browse files Browse the repository at this point in the history
…s that use dashicons to logged out users
  • Loading branch information
bobbingwide committed Oct 26, 2020
1 parent 99a65b5 commit 477917f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions oik-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: WordPress 5.0 blocks, aka Gutenberg blocks, for oik shortcodes.
* Author: Herb Miller
* Author URI: https://oik-plugins.com/author/bobbingwide
* Version: 0.4.0
* Version: 0.4.1
* License: GPL3+
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: oik-blocks
Expand Down Expand Up @@ -109,7 +109,6 @@ function oik_blocks_frontend_scripts()
}

function oik_blocks_frontend_styles() {

$stylePath = 'blocks/build/css/blocks.style.css';
// Enqueue frontend and editor block styles
wp_enqueue_style(
Expand All @@ -118,8 +117,15 @@ function oik_blocks_frontend_styles() {
[ ],
filemtime(plugin_dir_path(__FILE__) . $stylePath )
);


/**
* The following blocks may want to display icons that ( still ) come from dashicons,
* which is no longer automatically enqueued in the front end.
*
* - oik-block/blockicon
* - oik-block/blockinfo
* - oik-block/blocklist
*/
wp_enqueue_style( 'dashicons');
}


Expand Down

0 comments on commit 477917f

Please sign in to comment.