Skip to content

Support for tables in database other than "wordpress" #29

@sabandosoleda

Description

@sabandosoleda

I noticed that when you create a table editor for a table that doesn't reside in the "wordpress" database, by passing a 'table' parameter similar to 'table' => 'myotherdb.mytable' to add_db_table_editor, the resulting table editor is able to retrieve and display the columns, but fails to save changes (insert, update, and delete). From error logs it is shown that "wordpress." is prepended to the table name, ending up with "worpress.myotherdb.mytable" which obviously doesn't exist.
It would be cool to fix this in order to support tables outside the default worpress db :)

Thank you for your nice and neat plugin btw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions