GithubHelp home page GithubHelp logo

Comments (6)

toolstack avatar toolstack commented on June 15, 2024

👎 This could cause issues with multi-site, if we're breaking backwards compatibility in so many other places, why try and maintain it here?

from glotpress.

bradt avatar bradt commented on June 15, 2024

It has nothing to do with backwards compatibility. It's just saving people the work of renaming their GP tables to match the WordPress prefix.

For example, let's say you have a GP install sharing a database with a WP install. Pretty typical. If the GP prefix is gp_ and WP prefix is wp_, the plugin currently would require you to rename the gp_* tables to wp_gp_ to get it to work.

I was thinking it would be nice if you could just add define( 'GP_TABLE_PREFIX', 'gp_' ); to your wp-config.php and you wouldn't have to rename tables.

from glotpress.

toolstack avatar toolstack commented on June 15, 2024

I just think it's more trouble long term than the effort to rename the tables short term.

from glotpress.

ocean90 avatar ocean90 commented on June 15, 2024

Actually this is already possible, see https://github.com/deliciousbrains/GlotPress/blob/wordpress-plugin-dbi/gp-settings.php#L26-L28.

Do we want a constant or is the global var $gp_table_prefix enough?

Edit: But it seems like it doesn't work as expected…

from glotpress.

ocean90 avatar ocean90 commented on June 15, 2024

Edit: But it seems like it doesn't work as expected…

Fixed in #63.

from glotpress.

toolstack avatar toolstack commented on June 15, 2024

I would think the variable is enough as long as we document it.

from glotpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.