• Hi,
    I am the author of the WordPress plugin Indent Lists Button.
    Your plugin breaks my (and other’s) tinyMCE plugins, due to the following code:

    function nep_tinymce_plugin( $plugin_array ) {
    if( !get_option(‘nep_plugin_admin_activation’ ) )
    return;
    $plugin_array[ ‘nep_native_emoji’ ] = plugins_url( ‘/js/native_emoji_tinymce-plugin.js’, __FILE__ );
    return $plugin_array;
    }

    This should be:

    function nep_tinymce_plugin( $plugin_array ) {
    if( !get_option(‘nep_plugin_admin_activation’ ) )
    return $plugin_array;
    $plugin_array[ ‘nep_native_emoji’ ] = plugins_url( ‘/js/native_emoji_tinymce-plugin.js’, __FILE__ );
    return $plugin_array;
    }

    As you can see, your plugin return nothing (null) when the nep_plugin_admin_activation option is false. But that means the whole plugin_array is emptied. You should return the original array otherwise the filter destroys other plugins in the plugin_array!

    Thanks for correcting this bug!

    Kind regards,
    Methodos

  • The topic ‘breaks other tinyMCE-plugins’ is closed to new replies.