mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Merge pull request #540 from woocommerce/PCP-347-emoji-in-product-description-causing-error
Fix the description counting when emoji is used
This commit is contained in:
commit
2d56e3ffad
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class ItemFactory {
|
|||
mb_substr( $product->get_name(), 0, 127 ),
|
||||
new Money( $price_without_tax_rounded, $this->currency ),
|
||||
$quantity,
|
||||
mb_substr( wp_strip_all_tags( $product->get_description() ), 0, 127 ),
|
||||
substr( wp_strip_all_tags( $product->get_description() ), 0, 127 ) ?: '',
|
||||
$tax,
|
||||
$product->get_sku(),
|
||||
( $product->is_virtual() ) ? Item::DIGITAL_GOODS : Item::PHYSICAL_GOODS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue