Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/12/2016 11:50:01 AM (4 years ago)
Author:
netweb
Message:

Tools: Return unique message strings in bbp_admin_reset_handler() when deleting imported users and user meta vs non-imported user meta.

Fixes #2928.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/tools.php

    r5988 r6002  
    22792279                $sql_meta[] = $key;
    22802280            }
    2281             $statement  = __( 'Deleting User… %s', 'bbpress' );
     2281            $statement  = __( 'Deleting Imported Users… %s', 'bbpress' );
    22822282            $sql_meta   = implode( "', '", $sql_meta );
    22832283            $sql_delete = "DELETE FROM `{$bbp_db->users}` WHERE `ID` IN ('{$sql_meta}');";
    22842284            $result     = is_wp_error( $bbp_db->query( $sql_delete ) ) ? $failed : $success;
    22852285            $messages[] = sprintf( $statement, $result );
    2286             $statement  = __( 'Deleting User Meta… %s', 'bbpress' );
     2286            $statement  = __( 'Deleting Imported User Meta… %s', 'bbpress' );
    22872287            $sql_delete = "DELETE FROM `{$bbp_db->usermeta}` WHERE `user_id` IN ('{$sql_meta}');";
    22882288            $result     = is_wp_error( $bbp_db->query( $sql_delete ) ) ? $failed : $success;
Note: See TracChangeset for help on using the changeset viewer.