Opened 4 years ago
Closed 4 years ago
#964 closed defect (fixed)
Hard-coded plugin path
| Reported by: | kchrist | Owned by: | rmm5t |
|---|---|---|---|
| Priority: | normal | Component: | wp-syntax |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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 Changed 4 years ago by rmm5t
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Thank you very much. This is now fixed and will be released in v0.9.3, which should be published later today.
http://plugins.trac.wordpress.org/changeset/103121/wp-syntax/trunk/wp-syntax.php