Changeset 12964
- Timestamp:
- 02/05/2010 12:45:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r12963 r12964 1839 1839 */ 1840 1840 function content_url($path = '') { 1841 $scheme = ( is_ssl() ? 'https' : 'http' );1842 1841 $url = WP_CONTENT_URL; 1843 if ( 0 === strpos($url, 'http') ) { 1844 if ( is_ssl() ) 1845 $url = str_replace( 'http://', "{$scheme}://", $url ); 1846 } 1842 if ( 0 === strpos($url, 'http') && is_ssl() ) 1843 $url = str_replace( 'http://', 'https://', $url ); 1847 1844 1848 1845 if ( !empty($path) && is_string($path) && strpos($path, '..') === false ) … … 1864 1861 */ 1865 1862 function plugins_url($path = '', $plugin = '') { 1866 $scheme = ( is_ssl() ? 'https' : 'http' );1867 1863 1868 1864 $mu_plugin_dir = WPMU_PLUGIN_DIR; … … 1878 1874 1879 1875 if ( 0 === strpos($url, 'http') && is_ssl() ) 1880 $url = str_replace( 'http://', "{$scheme}://", $url );1876 $url = str_replace( 'http://', 'https://', $url ); 1881 1877 1882 1878 if ( !empty($plugin) && is_string($plugin) ) {
Note: See TracChangeset
for help on using the changeset viewer.