WordPress.org

Ready to get started?Download WordPress

Forums

WP-SynHighlight
Bug with hardcoded wp-content/plugins (1 post)

  1. unclego
    Member
    Posted 11 months ago #

    Line 9 at highlighter.php contain hardcoded path

    $themeDir = ABSPATH . '/' . ($wp_sh_use_theme ? ($wp_sh_use_theme) : ('wp-content/plugins/wp-synhighlight/themes/default'));

    and plugin is broken when used with moved wp-content folder.

    You should use WP_PLUGIN_DIR instead hardcoded path

    https://wordpress.org/plugins/wp-synhighlight/

Reply

You must log in to post.

About this Plugin

About this Topic