From e4e84a6e8192aad6622d4997e85aa911e0da3454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 12 Mar 2024 00:46:01 +0100 Subject: [PATCH] Fix a typo --- wp-user-activity/includes/admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-user-activity/includes/admin.php b/wp-user-activity/includes/admin.php index e05a9e2..67107dc 100644 --- a/wp-user-activity/includes/admin.php +++ b/wp-user-activity/includes/admin.php @@ -99,7 +99,7 @@ function wp_user_activity_sortable_columns( $columns = array() ) { */ function wp_user_activity_maybe_sort_by_fields( WP_Query $wp_query ) { - // Bail if not 'activty' post type + // Bail if not 'activity' post type if ( empty( $wp_query->query['post_type'] ) || ! in_array( wp_user_activity_get_post_type(), (array) $wp_query->query['post_type'], true ) ) { return; } @@ -160,7 +160,7 @@ function wp_user_activity_maybe_sort_by_fields( WP_Query $wp_query ) { */ function wp_user_activity_maybe_filter_by_fields( WP_Query $wp_query ) { - // Bail if not 'activty' post type + // Bail if not 'activity' post type if ( empty( $wp_query->query['post_type'] ) || ! in_array( wp_user_activity_get_post_type(), (array) $wp_query->query['post_type'], true ) ) { return; }