[wp-trac] [WordPress Trac] #13941: WP_CONTENT_URL should use site_url() to support HTTPS / SSL

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 19 04:32:36 UTC 2010


#13941: WP_CONTENT_URL should use site_url() to support HTTPS / SSL
--------------------------+-------------------------------------------------
 Reporter:  micropat      |       Owner:  ryan     
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:           
Component:  General       |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by dd32):

 > I think nacin is saying we should use content_url() and plugins_url() to
 define these URL constants in WP core, yes?

 No. Plugins should be using those functions instead of using the
 constants.

 If a Plugin wants to support older versions, they can do so through code
 such as:
 {{{
 if ( function_exists('plugins_url') )
 $url = plugins_url(...);
 else
 $url = WP_PLUGIN_URL . '......';
 }}}

 > the codex say to use this constants
 Then update the codex (Its a wiki afterall) to reflect the functions being
 available, drop a note on the Discussion page even if you cant write it
 yourself)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13941#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list