Changeset 8069 for trunk/wp-includes/link-template.php
- Timestamp:
- 06/11/2008 05:25:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r8058 r8069 781 781 // should the list of allowed schemes be maintained elsewhere? 782 782 if ( !in_array($scheme, array('http', 'https')) ) { 783 if ( ('forceable' == $scheme) && (defined('FORCE_SSL_LOGIN') && FORCE_SSL_LOGIN) ) 783 if ( ('login' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) ) 784 $scheme = 'https'; 785 elseif ( ('admin' == $scheme) && force_ssl_admin() ) 784 786 $scheme = 'https'; 785 787 else … … 798 800 global $_wp_admin_url; 799 801 800 $url = site_url('wp-admin/', ' forceable');802 $url = site_url('wp-admin/', 'admin'); 801 803 802 804 if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
Note: See TracChangeset
for help on using the changeset viewer.