Bug report
-
If the user chooses “Icon Using Dashicons”.
It would not show on guest mode.$option = to_top_get_options();
$dependency = array();
if ( ‘icon’ == $option[‘style’] ) {
$dependency[] = ‘dashicons’;
}
else if ( ‘genericon-icon’ == $option[‘style’] ) {
$dependency[] = ‘genericons’;wp_register_style( ‘genericons’, plugin_dir_url( __FILE__ ) . ‘css/genericons/genericons.css’, false, ‘3.4.1’ );
}
else if ( ‘font-awesome-icon’ == $option[‘style’] ) {
$dependency[] = ‘font-awesome’;wp_register_style( ‘font-awesome’, plugin_dir_url( __FILE__ ) . ‘css/font-awesome/css/font-awesome.min.css’, false, ‘4.5.0’ );
}
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . ‘css/to-top-public.css’, $dependency, $this->version, ‘all’ );`
`
- The topic ‘Bug report’ is closed to new replies.