PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.12
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.12
1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 All 36 releases
← All changes | includes/my-wordpress/integrations/woocommerce-customers.php +2 -2 1.0.1 → 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,