Plugin Directory

Changeset 1332320


Ignore:
Timestamp:
01/20/2016 08:33:03 PM (10 years ago)
Author:
ClickSold
Message:

cs-pkg-deploy.pl comitting clicksold vers (1.79) - Wed Jan 20 13:33:00 2016

File:
1 edited

Legend:

Unmodified
Added
Removed
  • clicksold-wordpress-plugin/trunk/widgets-search.php

    r1332195 r1332320  
    251251            // Get the proper format that we then feed to the JavaScript.
    252252            if($wp_rewrite->using_permalinks()) {
     253
     254                // Note: get_cs_section_relative_url - adds the subdirectory for any subdir installs. Here (for some reason unknown to me EZ 2016-01-20) we use an absolute url therefore we must remove this part.
     255                // this does nothing for non subdir installs.
     256                $community_url = substr( $community_url, strlen( parse_url(site_url(), PHP_URL_PATH) ) );
     257               
    253258                $community_url .= '/<city>/<neigh>/1';
    254259                // Turn url absolute
     
    397402        // Get the proper format that we then feed to the JavaScript.
    398403        if($wp_rewrite->using_permalinks()) {
     404
     405            // Note: get_cs_section_relative_url - adds the subdirectory for any subdir installs. Here (for some reason unknown to me EZ 2016-01-20) we use an absolute url therefore we must remove this part.
     406            // this does nothing for non subdir installs.
     407            $community_url = substr( $community_url, strlen( parse_url(site_url(), PHP_URL_PATH) ) );
     408
    399409            $community_url .= '/<city>/<neigh>/1';
    400410            // Turn url absolute
Note: See TracChangeset for help on using the changeset viewer.