← All changes
|
includes/my-wordpress/integrations/woocommerce-customers.php
+2
-2
1.1.0
→
1.1.12
View file →
| @@ -979,9 +979,9 @@ | ||
| 979 | 979 | // it resting on a core side-effect. |
| 980 | 980 | $can_edit = get_post( $product_id ) && current_user_can( 'edit_post', $product_id ); |
| 981 | 981 | |
| 982 | 982 | return array( |
| 983 | - 'label' => (string) $top['label'], | |
| 983 | + 'label' => openstation_plain_text_title( $top['label'] ), | |
| 984 | 984 | 'quantity' => (int) $top['quantity'], |
| 985 | 985 | 'editUrl' => $can_edit ? (string) get_edit_post_link( $product_id, 'raw' ) : '', |
| 986 | 986 | ); |
| 987 | 987 | } |
| @@ -1134,9 +1134,9 @@ | ||
| 1134 | 1134 | |
| 1135 | 1135 | return array( |
| 1136 | 1136 | 'type' => 'customer', |
| 1137 | 1137 | 'id' => (int) $user->ID, |
| 1138 | - 'name' => $user->display_name, | |
| 1138 | + 'name' => openstation_plain_text_title( $user->display_name ), | |
| 1139 | 1139 | 'username' => $user->user_login, |
| 1140 | 1140 | 'avatar' => (string) get_avatar_url( $user->ID, array( 'size' => 96 ) ), |
| 1141 | 1141 | 'email' => $user->user_email, |
| 1142 | 1142 | 'phone' => $phone, |