PluginProbe
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent / 3.5.4
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent v3.5.4
3.5.4 3.5.3 3.5.2 3.5.1 3.4.9 3.5.0 3.4.8 3.4.7 trunk 2.3.1 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6
← All changes | includes/rest-api/class-wpsc-rest-attachment.php +4 -0 3.5.3 → 3.5.4 View file →
@@ -178,8 +178,12 @@
178 178 if ( ! $attachment->id ) {
179 179 wp_send_json_error( 'Something went wrong!', 500 );
180 180 }
181 181
182 + // Record who uploaded it so that only they can later bind it
183 + // to a ticket.
184 + WPSC_Attachment::set_uploader( $attachment );
185 +
182 186 return new WP_REST_Response(
183 187 array(
184 188 'id' => intval( $attachment->id ),
185 189 'name' => $attachment->name,