Are you getting wpdb::prepare() error on after upgrading to WordPress 3.5 ? Don’t worry your website is not broken. WordPress is just working you that your theme or plugin is not prepare to fight with hacker. And your website is possibly expose for SQL injection vulnerability. So how to stop this error and fix your […]
Load jquery library from google CDN in wordpress
Add this code on wordpress theme functions.php to deregister the urgent jquery and load jquery library from google. [php] function load_cdn_jquery() { // only use this method is we’re not in wp-admin if (!is_admin()) { // deregister the original version of jQuery wp_deregister_script(‘jquery’); // discover the correct protocol to use $protocol=’http:’; if($_SERVER[‘HTTPS’]==’on’) { $protocol=’https:’; } […]