WordPress.org

Plugin Directory

Changeset 227463


Ignore:
Timestamp:
04/10/10 17:50:46 (4 years ago)
Author:
jmabe
Message:

Fix for blog paths

Location:
dsidxpress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dsidxpress/trunk/api-request.php

    r227179 r227463  
    8383         
    8484        $blog_url = get_bloginfo("url"); 
     85     
     86        $blogUrlWithoutProtocol = str_replace("http://", "", $blog_url); 
     87        $blogUrlDirIndex = strpos($blogUrlWithoutProtocol, "/"); 
     88        $blogUrlDir = ""; 
     89        if ($blogUrlDirIndex) // don't need to check for !== false here since WP prevents trailing /'s 
     90            $blogUrlDir = substr($blogUrlWithoutProtocol, strpos($blogUrlWithoutProtocol, "/")); 
     91             
    8592        $idxActivationPath = $blogUrlDir . "/" . dsSearchAgent_Rewrite::GetUrlSlug(); 
    8693         
     
    101108        $data = str_replace('{$wordpressBlogUrlEncoded}', urlencode($blog_url), $data); 
    102109        $data = str_replace('{$wpOptions}', json_encode($dsidxpress_options_to_output), $data); 
    103      
    104         $blogUrlWithoutProtocol = str_replace("http://", "", $blog_url); 
    105         $blogUrlDirIndex = strpos($blogUrlWithoutProtocol, "/"); 
    106110 
    107         $blogUrlDir = ""; 
    108         if ($blogUrlDirIndex) // don't need to check for !== false here since WP prevents trailing /'s 
    109             $blogUrlDir = substr($blogUrlWithoutProtocol, strpos($blogUrlWithoutProtocol, "/")); 
    110111        $data = str_replace('{$idxActivationPath}', $idxActivationPath, $data); 
    111112        $data = str_replace('{$idxActivationPathEncoded}', urlencode($idxActivationPath), $data); 
  • dsidxpress/trunk/dsidxpress.php

    r227179 r227463  
    66Author: Diverse Solutions 
    77Author URI: http://www.diversesolutions.com/ 
    8 Version: 1.1 
     8Version: 1.1.1 
    99*/ 
    1010 
  • dsidxpress/trunk/readme.txt

    r227179 r227463  
    33Tags: mls, idx, rets, housing, real estate 
    44Requires at least: 2.8 
    5 Tested up to: 2.9.2 
    6 Stable tag: 1.1 
     5Tested up to: 3.0 
     6Stable tag: 1.1.1 
    77 
    88This plugin allows WordPress to embed live real estate data from an MLS directly into a blog. You MUST have a dsIDXpress account to use this plugin. 
     
    4646 
    4747== Changelog == 
     48 
     49= 1.1.1 = 
     50 
     51* Fix for blog paths 
    4852 
    4953= 1.1 = 
Note: See TracChangeset for help on using the changeset viewer.