Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter fwag

    (@fwag)

    Hi,

    Great work but there is a small omission.

    After the prefix is changed. The field Existing Prefix is not updated.

    Replace in dbprefix_admin.php line 97 echo $wpdb->prefix;; by echo $dbprefix_new; and the field Existing Prefix is updated.

    The problems where bigger than anticipated

    The solution is still simple. Download Change DB Prefix 1.3 and install. This version is an improvement of the prior version. Gets rid of all the bugs and improves on the success and error handling.

    The solution to this problem is very simple:

    Replace in db_prefix.php

    wp_register_style('dbStyle',plugins_url('css/style.css',__FILE__));
    wp_enqueue_style('dbStyle');
    wp_register_script('jquery.validate',plugins_url('js/jquery.validate.min.js',__FILE__),array('jquery'), false, false);
    wp_enqueue_script('jquery.validate');
    wp_register_script('util',plugins_url('js/util.js',__FILE__),array('jquery'), false, false);
    wp_enqueue_script('util');

    by

    function dbprefix_insertFrontEndScripts(){
    wp_register_style('dbStyle',plugins_url('css/style.css',__FILE__));
    wp_enqueue_style('dbStyle');
    wp_register_script('jquery.validate',plugins_url('js/jquery.validate.min.js',__FILE__),array('jquery'), false, false);
    wp_enqueue_script('jquery.validate');
    wp_register_script('util',plugins_url('js/util.js',__FILE__),array('jquery'), false, false);
    wp_enqueue_script('util');
    }
    add_action('wp_enqueue_scripts','dbprefix_insertFrontEndScripts');

    Save and the error is gone

Viewing 3 replies - 1 through 3 (of 3 total)