URL’s Not Updating In Custom Fields Containing Single Quotes
-
Line 71 of velvet-blues-update-urls.php needs to be updated to the following to prevent SQL errors when the content of the custom field contains a single quote:
$fix = $wpdb->query( $wpdb->prepare( “UPDATE $wpdb->postmeta SET meta_value = ‘%s’ WHERE meta_id = %s”, $edited, $item->meta_id ) );
- The topic ‘URL’s Not Updating In Custom Fields Containing Single Quotes’ is closed to new replies.