Plugin Directory

Changeset 1467573


Ignore:
Timestamp:
08/04/2016 10:03:06 AM (10 years ago)
Author:
Rafael Mor
Message:

Bug Fix.

Location:
pixelshop-integration/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pixelshop-integration/trunk/pixelshop.php

    r1466398 r1467573  
    44Plugin URI: http://pixelshop.io
    55Description: Wordpress plugin for pixelshop.io Integration.
    6 Version: 1.2.0
     6Version: 1.2.1
    77Author: Pixelshop
    88Author URI: http://pixelshop.io/
     
    247247
    248248                $post_id = intval($_GET['p']);
     249
     250                $languages = icl_get_languages();
    249251               
    250252                if( isset($info['countryCode']) )
     
    257259                    if( $translation )
    258260                    {
    259                         $url = get_permalink($translation);
    260 
    261                         $_SERVER['REQUEST_URI'] = str_replace('pixelshop=true', '', $_SERVER['REQUEST_URI']);
    262 
    263                         wp_redirect($url);
     261                        $parse = parse_url($languages['he']['url']);
     262
     263                        if( $parse['query'] == '' )
     264                            $redirect = $languages['he']['url'] . '?p=' . $translation . '&utm_source=pixelshop&utm_medium=' . $_GET['utm_medium'] . '&utm_campaign=' . $_GET['utm_campaign'];
     265                        else
     266                            $redirect = $languages['he']['url'] . '&p=' . $translation . '&utm_source=pixelshop&utm_medium=' . $_GET['utm_medium'] . '&utm_campaign=' . $_GET['utm_campaign'];
     267
     268                        wp_redirect($redirect);
     269
     270                        die;
    264271                    }
    265272                }
  • pixelshop-integration/trunk/readme.txt

    r1466398 r1467573  
    3939</p>
    4040
     41
     42= 1.2.1 =
     43* Bug Fixed.
     44
    4145= 1.2.0 =
    4246* WPML support for products.
Note: See TracChangeset for help on using the changeset viewer.