Skip to content

Commit

Permalink
fix: update return value for taxonomy edit callback
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul-alhasany committed Jul 11, 2023
1 parent 1d73602 commit 3e68091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hooks/taxonomy.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class NashaatTaxonomyHooks extends NashaatHookBase {
*/
protected function wp_update_term_data_callback( array $data, int $term_id, string $taxonomy, array $args ) {
if ( $taxonomy === 'nav_menu' ) {
return false;
return $data;
}

$prev_data = get_term( $term_id, $taxonomy, ARRAY_A );
Expand All @@ -57,7 +57,7 @@ protected function wp_update_term_data_callback( array $data, int $term_id, stri
}

if ( count( $changes ) === 0 ) {
return;
return $data;
}

$term_name = $prev_data['name'];
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: Nashaat Activity Log
Description: Log and view different WordPress activity on your site
Version: 1.2.1
Version: 1.2.2
Author: Kalimah Apps
Author URI: https://github.com/kalimahapps
License: GPLv2 or later
Expand Down

0 comments on commit 3e68091

Please sign in to comment.