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

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 3 09:34:12 UTC 2010


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

Comment(by pdclark):

 FWIW, wp_upload_dir() uses get_option( 'siteurl' ) 2/3 of the time, but
 WP_CONTENT_URL 1/3 of the time. The first gives https:// correctly, but
 the second doesn't.

 This leads to unreliable behavior where wp_upload_dir() is used.
 Specifically, bp_core_avatar_url() and bp_core_avatar_upload_path() in
 BuddyPress use it, so avatars for members and groups throw an error on
 pages that are SSL.

 I've attached a plugin that works as a temporary fix for wp_upload_dir(),
 in case anyone else out there is using BuddyPress over SSL. It needs to be
 put in mu-plugins to attach early enough.

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


More information about the wp-trac mailing list