Changeset 8058 for trunk/wp-includes/link-template.php
- Timestamp:
- 06/06/2008 07:39:11 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/link-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r8000 r8058 751 751 var x=d.selection; 752 752 var s=(e?e():(k)?k():(x?x.createRange().text:0)); 753 var f='" . get_settings('siteurl') . '/wp-admin/press-this.php'. "';753 var f='" . admin_url('press-this.php') . "'; 754 754 var l=d.location; 755 755 var e=encodeURIComponent; … … 780 780 function site_url($path = '', $scheme = null) { 781 781 // should the list of allowed schemes be maintained elsewhere? 782 if ( !in_array($scheme, array('http', 'https')) ) 783 $scheme = ( is_ssl() ? 'https' : 'http' ); 782 if ( !in_array($scheme, array('http', 'https')) ) { 783 if ( ('forceable' == $scheme) && (defined('FORCE_SSL_LOGIN') && FORCE_SSL_LOGIN) ) 784 $scheme = 'https'; 785 else 786 $scheme = ( is_ssl() ? 'https' : 'http' ); 787 } 784 788 785 789 $url = str_replace( 'http://', "{$scheme}://", get_option('siteurl') ); … … 794 798 global $_wp_admin_url; 795 799 796 $url = site_url( ) . '/wp-admin/';800 $url = site_url('wp-admin/', 'forceable'); 797 801 798 802 if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
Note: See TracChangeset
for help on using the changeset viewer.