Hard-coded plugin path
|Reported by:||kchrist||Owned by:||rmm5t|
Line 53 of wp-syntax.php contains the following:
$css_url = get_bloginfo("wpurl") . "/wp-content/plugins/wp-syntax/wp-syntax.css";
This code does not account for people using alternate plugin locations, as supported by WP 2.6 and higher. Recommended practice is to use the new constants available to determine these locations rather than assuming a path of /wp-content/plugins.
Details on the WP codex: Determining Plugin and Content Directories
This is a problem because the CSS <link /> element inserted via wp_head() is incorrect for anyone who has moved their plugin directory. The result is a 404 on every page load and the additional step of manually linking to the wp-syntax CSS.