Skip to content

Erroneously drops tables #907

@philsbury

Description

@philsbury

I see that during testing, a load of custom tables are created, then dropped on completion.

However, when using non-standard user table names via CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE these are not duplicated and are dropped during the cleanup method, the following tables are dropped:

[
    [users] => wp_my_custom_users
    [usermeta] => wp_my_custom_user_meta
    [posts] => wp_pc_posts
    [comments] => wp_pc_comments
    [links] => wp_pc_links
    [options] => wp_pc_options
    [postmeta] => wp_pc_postmeta
    [terms] => wp_pc_terms
    [term_taxonomy] => wp_pc_term_taxonomy
    [term_relationships] => wp_pc_term_relationships
    [termmeta] => wp_pc_termmeta
    [commentmeta] => wp_pc_commentmeta
]

as you see, the two user tables are not wp_pc_ prefixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions