• Hi,

    When a theme/plugin is using wp_editor() in the front-end there will be a fatal error coming from Shortcodes Ultimate since admin-only function, is_plugin_active(), is being called.

    File in question is inc/core/tools.php, line is 252.

    if ( !is_plugin_active( $paths[$addon] ) ) return false;

    Solution is to simply check if it’s in admin first:

    if ( ! is_admin() || ! is_plugin_active( $paths[$addon] ) ) return false;

    Or you can switch the is_plugin_active() with a check for function from the add-on plugins ( function_exists() ) to see if it’s active.

    Regards,
    Slobodan

    https://www.ads-software.com/plugins/shortcodes-ultimate/

  • The topic ‘Fatal error when wp_editor used in front-end ( solution included )’ is closed to new replies.