Plugin Directory

Changeset 2018477


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

Update the Connection Bridge

Location:
cms2cms-smf-to-bbpress-convertor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cms2cms-smf-to-bbpress-convertor/tags/3.7.0/includes/cms2cms-functions.php

    r2014787 r2018477  
    7777    public function getFrontUrl()
    7878    {
    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__ ));
    8780    }
    8881
  • cms2cms-smf-to-bbpress-convertor/trunk/includes/cms2cms-functions.php

    r2014787 r2018477  
    7777    public function getFrontUrl()
    7878    {
    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__ ));
    8780    }
    8881
Note: See TracChangeset for help on using the changeset viewer.