[wp-trac] [WordPress Trac] #18005: mixed http/https installation and add_custom_background / body_class

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 6 15:56:26 UTC 2011


#18005: mixed http/https installation and add_custom_background / body_class
-----------------------------------+------------------------------
 Reporter:  rfc1437                |       Owner:
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Themes                 |     Version:  3.2
 Severity:  minor                  |  Resolution:  fixed
 Keywords:  2nd-opinion has-patch  |
-----------------------------------+------------------------------
Changes (by jkudish):

 * status:  reopened => closed
 * severity:  trivial => minor
 * component:  Bundled Theme => Themes
 * version:   => 3.2
 * keywords:  2nd-opinion => 2nd-opinion has-patch
 * resolution:   => fixed


Comment:

 Well, sorry for having been so harsh at the beginning :)

 I've uploaded a patch with your changes so that the core devs can apply
 it.

 This made me think of a suggestion for a new WP function:

 wp_ssl_url($url) or something like that, which would automatically do:

  {{{
         if ( is_ssl() )
                 $url = str_replace( 'http://', 'https://', $url );
         else
                 $url = str_replace( 'https://', 'http://', $url );
         return $url;
  }}}

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


More information about the wp-trac mailing list