Plugin Directory


Opened 9 years ago

Closed 9 years ago

#964 closed defect (fixed)

Hard-coded plugin path

Reported by: kchrist Owned by: rmm5t
Priority: normal Severity: normal
Plugin: wp-syntax Keywords:


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.

Change History (1)

comment:1 @rmm5t9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Thank you very much. This is now fixed and will be released in v0.9.3, which should be published later today.


Note: See TracTickets for help on using tickets.