Changeset 2115613
- Timestamp:
- 07/01/2019 03:50:59 PM (7 years ago)
- Location:
- evalor/trunk
- Files:
-
- 3 edited
-
common/woocommerce.php (modified) (2 diffs)
-
evalor.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
evalor/trunk/common/woocommerce.php
r1887531 r2115613 143 143 }, $value); 144 144 } 145 if (is_callable([$value, 'get_data'])){146 return $this-> get_data($value);147 } 148 if (is_callable([$value, '__toString'])){149 return (string)$value;150 } 145 try { 146 return $this->call_method($value, 'get_data'); 147 } catch (Exception $e) {} 148 try { 149 return $this->call_method($value, '__toString'); 150 } catch (Exception $e) {} 151 151 if (is_object($value)) { 152 152 return new \stdClass(); … … 156 156 157 157 private function get_data($value, $default = null) { 158 if (!is_callable([$value, 'get_data']) || !is_object($value)) { 158 try { 159 return $this->call_method($value, 'get_data'); 160 } catch (Exception $e) { 159 161 return $default; 160 162 } 161 $method = new ReflectionMethod($value, 'get_data'); 163 } 164 165 private function call_method($obj, $name) { 166 $method = new ReflectionMethod($obj, $name); 162 167 if ($method->getNumberOfRequiredParameters() > 0) { 163 return $default;168 throw new RuntimeException("Method requires parameters"); 164 169 } 165 return @$value->get_data();170 return $method->invoke($obj); 166 171 } 167 172 } -
evalor/trunk/evalor.php
r2077184 r2115613 4 4 Plugin URI: https://www.evalor.es/tienda/modulo/wordpress/ 5 5 Description: El módulo WordPress facilita la integración del innovador sidebar de evalor en su web WordPress o tienda WooCommerce. Para los usuarios del WooCommerce Plugin para WordPress el módulo se encarga de invitar de forma automática a los clientes para que compartan su experiencia. Esta funcion solo esta disponible para clientes PLUS. Cuando el proceso del pedido ha finalizado se envia automaticamente una invitacion al cliente para que comparta su experiencia. Asi se genera confianza y aumenta la conversion de su tienda online. 6 Version: v1.6. 86 Version: v1.6.9 7 7 Author: Albert Peschar 8 8 Author URI: https://peschar.net/ -
evalor/trunk/readme.txt
r2077184 r2115613 23 23 24 24 == Changelog == 25 26 = 1.6.9 = 27 * Fix fatal error when order contains incomplete unserialized objects. 25 28 26 29 = 1.6.8 =
Note: See TracChangeset
for help on using the changeset viewer.