Code Change in 3.5
-
Hi,
There are 3 errors when copying a blog after moving to 3.5
Missing argument 2 for wpdb::prepare(), called in /home/xxxxx/public_html/wp-content/plugins/blog-copier/blog-copier.php on line 296
same error for line 300 and 304.
I checked forums and see that 3.5 updated $wpdb->prepare so that it now requires at least a second parameter.
So, in the case of line 300:
$query = $wpdb->prepare(“CREATE TABLE IF NOT EXISTS {$newtable} LIKE {$table}”);becomes something like:
$query = $wpdb->prepare(“CREATE TABLE IF NOT EXISTS %s LIKE %s”, $newtable, $table);
I tried several attempts to make this work with the new structure of wpdb->prepare but have not been able to get it to work.
- The topic ‘Code Change in 3.5’ is closed to new replies.