Activate bug under Windows
-
Ran into a problem under Windows where the data base tables were not being created. Tracked it down to this code…
$activatestr = str_replace(WP_PLUGIN_DIR . "/", "activate_", __FILE__); add_action($activatestr, 'loginLockdown_install');
__FILE__ returns back-slashes under Windows.
Replacing those two lines with
register_activation_hook(__FILE__, 'loginLockdown_install');
solved the problem.
- The topic ‘Activate bug under Windows’ is closed to new replies.