WordPress.org

Plugin Directory

wp-syntax

Opened 5 years ago

Closed 5 years ago

#964 closed defect (fixed)

Hard-coded plugin path

Reported by: kchrist Owned by: rmm5t
Priority: normal Severity: normal
Plugin: wp-syntax 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 rmm5t5 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.

http://plugins.trac.wordpress.org/changeset/103121/wp-syntax/trunk/wp-syntax.php

Note: See TracTickets for help on using tickets.