Skip to content

Commit

Permalink
Only respond to oik_add_shortcodes after oik_loaded has been run
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Mar 12, 2024
1 parent 3cb505f commit 2953d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oik-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function oik_css_oik_loaded() {
$bw_disable_autop = bw_get_option( "bw_autop", "bw_css_options" );
$bw_autop = !$bw_disable_autop;
bw_better_autop( $bw_autop );
add_action( "oik_add_shortcodes", "oik_css_init" );
}

/**
Expand Down Expand Up @@ -220,7 +221,6 @@ function oik_css_oik_menu_box() {
function oik_css_plugin_loaded() {
add_action( "oik_admin_menu", "oik_css_admin_menu" );
add_action( "oik_loaded", "oik_css_oik_loaded" );
add_action( "oik_add_shortcodes", "oik_css_init" );
add_action( 'init', 'oik_css_init_blocks', 100);
//add_action( 'plugins_loaded', 'oik_css_plugins_loaded' );
add_action( 'parse_request', 'oik_css_plugins_loaded' );
Expand Down

0 comments on commit 2953d5f

Please sign in to comment.