Changeset 2142753
- Timestamp:
- 08/20/2019 06:45:25 PM (7 years ago)
- Location:
- wooms/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wooms.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wooms/trunk/readme.txt
r2130329 r2142753 76 76 == Changelog == 77 77 78 79 = 5.6 = 80 * исправлена ошибка параметров типа product.id https://github.com/wpcraft-ru/wooms/issues/177 81 * XT: исправлена ошибка синка остатков 82 78 83 = 5.5 = 79 84 * XT: добавлена опция для передачи доп данных в примечании к Заказу https://github.com/wpcraft-ru/wooms/issues/175 -
wooms/trunk/wooms.php
r2130329 r2142753 16 16 * License: GPLv2 or later 17 17 * License URI: http://www.gnu.org/licenses/gpl-2.0.html 18 * Version: 5. 519 * WooMS XT Latest: 5. 518 * Version: 5.6 19 * WooMS XT Latest: 5.6 20 20 */ 21 21 … … 104 104 */ 105 105 public static function xt_plugin_update_message( $data, $response ) { 106 107 106 108 107 $data = get_file_data( __FILE__, array('xt_version' => 'WooMS XT Latest') ); … … 218 217 } 219 218 219 $url = wooms_fix_url($url); 220 220 221 if ( isset( $data ) && ! empty( $data ) && 'GET' == $type ) { 221 222 $type = 'POST'; … … 291 292 } 292 293 } 294 295 /** 296 * fix bug with url 297 * 298 * @link https://github.com/wpcraft-ru/wooms/issues/177 299 */ 300 function wooms_fix_url($url = ''){ 301 $url = str_replace('product_id', 'product.id', $url); 302 $url = str_replace('productid', 'product.id', $url); 303 $url = str_replace('store_id', 'store.id', $url); 304 $url = str_replace('storeid', 'store.id', $url); 305 $url = str_replace('consignment_id', 'consignment.id', $url); 306 $url = str_replace('variant_id', 'variant.id', $url); 307 $url = str_replace('productFolder_id', 'productFolder.id', $url); 308 return $url; 309 }
Note: See TracChangeset
for help on using the changeset viewer.