lukasjuhas / lj-maintenance-mode

Simple maintenance mode wordpress plugin.
https://plugins.itsluk.as/maintenance-mode/
25 stars 12 forks source link

roles table prefix #18

Closed gablau closed 8 years ago

gablau commented 8 years ago

Hi, with new version 2.0 of your great plugins, the function get_option( 'wp_user_roles' ); not work on website that change te default $table_prefix to the wp-config.php file like: $table_prefix = 'newprefix_';

so the correct option name is: get_option( 'newprefix_user_roles' )

I think should be something like this:

global $wpdb;
get_option($wpdb->prefix.'user_roles');

Best regards

lukasjuhas commented 8 years ago

Hi @gablau,

I'm just on this! Thanks a lot! I'm gonna put that in right away.

Lukas