PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.38
Timetics – Appointment Booking Calendar & Scheduling v1.0.38
1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 All 64 releases
← All changes | core/appointments/api-appointment-taxonomy.php +1 -5 1.0.62 → 1.0.38 View file →
@@ -5,10 +5,8 @@
5 5 * @package Timetics
6 6 */
7 7 namespace Timetics\Core\Appointments;
8 8
9 -defined( 'ABSPATH' ) || exit;
10 -
11 9 use Timetics\Base\Api;
12 10 use Timetics\Utils\Singleton;
13 11 use WP_Error;
14 12
@@ -317,10 +315,9 @@
317 315
318 316 $response = [
319 317 'success' => 1,
320 318 'status_code' => 200,
321 - /* translators: 1: Number of deleted categories, 2: Total number of categories */
322 - 'message' => sprintf( __( 'Successfully deleted %1$d out of %2$d categories', 'timetics' ), $counter, count( $ids ) ),
319 + 'message' => sprintf( __( 'Successfully deleted %d out of %d categories', 'timetics' ), $counter, count( $ids ) ),
323 320 ];
324 321
325 322 return rest_ensure_response( $response );
326 323 }
@@ -362,9 +359,8 @@
362 359 private function get_post_ids( $term_id ) {
363 360 $args = [
364 361 'post_type' => 'timetics-appointment',
365 362 'fields' => 'ids',
366 - // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query -- Tax query is necessary for filtering appointments by category
367 363 'tax_query' => [
368 364 [
369 365 'taxonomy' => 'timetics-meeting-category',
370 366 'terms' => $term_id,