[wp-trac] [WordPress Trac] #16167: FORCE_ADMIN_SSL broken if site runs on port different from 80

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 17 23:37:52 UTC 2011


#16167: FORCE_ADMIN_SSL broken if site runs on port different from 80
--------------------------+-----------------------------
 Reporter:  yoush         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:  3.0.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------
Changes (by kurtpayne):

 * cc: kpayne@… (added)


Comment:

 To use this [[attachment:16167.patch]], create new constants in your `wp-
 config.php` file like so:

 {{{
 define('WP_HTTP_PORT', 81);
 define('WP_HTTPS_PORT', 444);
 }}}

 Then you should be able to login / admin on over SSL on port 444, but
 browse content over port 81.  There's two new functions for themes /
 plugins, too, to convert between URLs between http / https:

 {{{
 make_https($url);
 make_http($url);
 }}}

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


More information about the wp-trac mailing list