Changeset 2018483
- Timestamp:
- 01/24/2019 03:28:46 PM (7 years ago)
- Location:
- cms2cms-umbraco-to-wp-migrator
- 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-umbraco-to-wp-migrator/tags/3.7.0/includes/cms2cms-functions.php
r2014791 r2018483 76 76 public function getFrontUrl() 77 77 { 78 $pluginurl = plugin_dir_url( __FILE__ ); 79 if ( preg_match( '/^https/', $pluginurl ) 80 && !preg_match( '/^https/', get_bloginfo('url') ) 81 ){ 82 $pluginurl = preg_replace( '/^https/', 'http', $pluginurl ); 83 } 84 85 return $pluginurl; 78 return str_replace(array('http:', 'https:'), '', plugin_dir_url( __FILE__ )); 86 79 } 87 80 -
cms2cms-umbraco-to-wp-migrator/trunk/includes/cms2cms-functions.php
r2014791 r2018483 76 76 public function getFrontUrl() 77 77 { 78 $pluginurl = plugin_dir_url( __FILE__ ); 79 if ( preg_match( '/^https/', $pluginurl ) 80 && !preg_match( '/^https/', get_bloginfo('url') ) 81 ){ 82 $pluginurl = preg_replace( '/^https/', 'http', $pluginurl ); 83 } 84 85 return $pluginurl; 78 return str_replace(array('http:', 'https:'), '', plugin_dir_url( __FILE__ )); 86 79 } 87 80
Note: See TracChangeset
for help on using the changeset viewer.