Changeset 1467573
- Timestamp:
- 08/04/2016 10:03:06 AM (10 years ago)
- Location:
- pixelshop-integration/trunk
- Files:
-
- 2 edited
-
pixelshop.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pixelshop-integration/trunk/pixelshop.php
r1466398 r1467573 4 4 Plugin URI: http://pixelshop.io 5 5 Description: Wordpress plugin for pixelshop.io Integration. 6 Version: 1.2. 06 Version: 1.2.1 7 7 Author: Pixelshop 8 8 Author URI: http://pixelshop.io/ … … 247 247 248 248 $post_id = intval($_GET['p']); 249 250 $languages = icl_get_languages(); 249 251 250 252 if( isset($info['countryCode']) ) … … 257 259 if( $translation ) 258 260 { 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; 264 271 } 265 272 } -
pixelshop-integration/trunk/readme.txt
r1466398 r1467573 39 39 </p> 40 40 41 42 = 1.2.1 = 43 * Bug Fixed. 44 41 45 = 1.2.0 = 42 46 * WPML support for products.
Note: See TracChangeset
for help on using the changeset viewer.