erros in log
-
you have some trouble with register js + css..
this code is fix
function __construct() { foreach ( array('post.php','post-new.php') as $hook ) { add_action( "admin_head-$hook", array( $this, 'nep_emoji_localize_tinymce_javascript' )); add_action( 'admin_init', array( $this, 'nep_emoji_scripts' )); } } function nep_emoji_scripts(){ // Register CSS and JS files wp_register_style( 'nep_native-emoji', plugins_url('/css/style.css',__FILE__), false, '1.0', 'all' ); wp_register_script( 'nep_native-emoji', plugins_url('/js/script.js',__FILE__), false, '1.0', true ); wp_enqueue_style( 'nep_native-emoji' ); wp_enqueue_script( 'nep_native-emoji' ); }
but its not perfet, better it would be
$screen = get_current_screen(); if ( 'edit' === $screen->base || 'post-new' === $screen->base){
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘erros in log’ is closed to new replies.