• I found a bug in version 1.1.

    I was trying to connect to an alternate database and could not get it to work. After viewing the source I found the issue.

    This line

    if (isset($atts["user"]) && isset($atts["pass"]) && isset($atts["db"]) && isset($atts["host"])) {
    		$wpdb = new wpdb($atts["user"], $atts["pass"], $atts["db"], $atts["host"]);

    should read

    if (isset($atts["user"]) && isset($atts["pass"]) && isset($atts["db"]) && isset($atts["host"])) {
    		$lwpdb = new wpdb($atts["user"], $atts["pass"], $atts["db"], $atts["host"]);

    https://ww.wp.xz.cn/plugins/sql-shortcode/

The topic ‘Bug in 1.1’ is closed to new replies.