Skip to content

Commit

Permalink
Uninstall: Delete more taxonomy entries (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk authored Dec 20, 2024
1 parent 0b11935 commit c948a03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions includes/class-friends.php
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,8 @@ public static function url_truncate( $url, $max_length = 50 ) {
public static function uninstall_plugin() {
$taxonomies = array(
User_Feed::TAXONOMY,
User_Feed::POST_TAXONOMY,
Subscription::TAXONOMY,
);

$affected_users = new \WP_User_Query( array( 'role__in' => array( 'friend', 'acquaintance', 'friend_request', 'pending_friend_request', 'subscription' ) ) );
Expand Down
2 changes: 1 addition & 1 deletion includes/class-third-parties.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ public function fx_private_site( $value ) {
* @return array
*/
public function wp_sweep_excluded_taxonomies( $excluded_taxonomies ) {
return array_merge( $excluded_taxonomies, array( User_Feed::TAXONOMY, Subscription::TAXONOMY ) );
return array_merge( $excluded_taxonomies, array( User_Feed::TAXONOMY, User_Feed::POST_TAXONOMY, Subscription::TAXONOMY ) );
}
}

0 comments on commit c948a03

Please sign in to comment.