Changeset 2018477
- Timestamp:
- 01/24/2019 03:23:10 PM (7 years ago)
- Location:
- cms2cms-smf-to-bbpress-convertor
- Files:
-
- 2 edited
-
tags/3.7.0/includes/cms2cms-functions.php (modified) (1 diff)
-
trunk/includes/cms2cms-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cms2cms-smf-to-bbpress-convertor/tags/3.7.0/includes/cms2cms-functions.php
r2014787 r2018477 77 77 public function getFrontUrl() 78 78 { 79 $pluginurl = plugin_dir_url( __FILE__ ); 80 if ( preg_match( '/^https/', $pluginurl ) 81 && !preg_match( '/^https/', get_bloginfo('url') ) 82 ){ 83 $pluginurl = preg_replace( '/^https/', 'http', $pluginurl ); 84 } 85 86 return $pluginurl; 79 return str_replace(array('http:', 'https:'), '', plugin_dir_url( __FILE__ )); 87 80 } 88 81 -
cms2cms-smf-to-bbpress-convertor/trunk/includes/cms2cms-functions.php
r2014787 r2018477 77 77 public function getFrontUrl() 78 78 { 79 $pluginurl = plugin_dir_url( __FILE__ ); 80 if ( preg_match( '/^https/', $pluginurl ) 81 && !preg_match( '/^https/', get_bloginfo('url') ) 82 ){ 83 $pluginurl = preg_replace( '/^https/', 'http', $pluginurl ); 84 } 85 86 return $pluginurl; 79 return str_replace(array('http:', 'https:'), '', plugin_dir_url( __FILE__ )); 87 80 } 88 81
Note: See TracChangeset
for help on using the changeset viewer.