Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a typo #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wp-user-activity/includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down