[wp-trac] [WordPress Trac] #9420: Plugin URL Path
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 31 14:53:28 GMT 2009
#9420: Plugin URL Path
-----------------------------+----------------------------------------------
Reporter: enailor | Owner:
Type: feature request | Status: new
Priority: high | Milestone: 2.8
Component: Plugins | Version: 2.7
Severity: normal | Keywords: ssl, plugins, https
-----------------------------+----------------------------------------------
For simplicity sake, themes get a great option called
''bloginfo('template_url')'' that can be used for linking to theme files.
Stylesheets get ''bloginfo('stylesheet_url')'' for liking to theme
stylesheets. This would be a great addition if the same functionality were
added to Plugins.
The main reason I have found for this is for SSL / Secured pages.
Currently, any plugins that call for css sheets in the wp_head() use the
''get_bloginfo('wpurl')'' for the link to the css sheet. However, unless
you make the wpurl a https link in the admin settings, the source code
will require an unsecure link to the file. This produces the Mixed
Security dialog box (This page contains both secure and nonsecure items.
Do you want to display the nonsecure items?) On secure pages, this can
make site visitors nervous.
Currently the only workaround I have found is to not call the wp_head()
function on HTTPS pages, and that works, but I do lose any plugins that
need the wp_head() function.
I suggest the addition of a ''bloginfo('plugin_url')'' function like the
''bloginfo('template_url')'' function that seems to be flexible enough to
handle HTTPS vs HTTP calls.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9420>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list