WordPress.org

Forums

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

  1. unclego
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-SynHighlight
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic