Plugin Directory

Changeset 2018479


Ignore:
Timestamp:
01/24/2019 03:23:48 PM (7 years ago)
Author:
cms2cms
Message:

Update the Connection Bridge

Location:
cms2cms-telerik-sitefinity-to-wp-migration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cms2cms-telerik-sitefinity-to-wp-migration/tags/3.7.0/includes/cms2cms-functions.php

    r2014789 r2018479  
    7676    public function getFrontUrl()
    7777    {
    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__ ));
    8679    }
    8780
  • cms2cms-telerik-sitefinity-to-wp-migration/trunk/includes/cms2cms-functions.php

    r2014789 r2018479  
    7676    public function getFrontUrl()
    7777    {
    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__ ));
    8679    }
    8780
Note: See TracChangeset for help on using the changeset viewer.