-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
When duplicating a job, every metavalue runs through addslashes() and destroys all html in wsyig fields like List, Images, H2, Strong etc.pp.
Why adding addslashes() when only the values are copied? Maybe it is some history stuff
job-postings/include/class-job-duplicate-offer.php
Lines 94 to 99 in 8cc9bee
foreach ($post_meta_infos as $meta_info) { | |
$meta_key = $meta_info->meta_key; | |
if( $meta_key == '_wp_old_slug' ) continue; | |
$meta_value = addslashes($meta_info->meta_value); | |
$sql_query_sel[] = $wpdb->prepare( "SELECT %d, '%s', '%s'", $new_post_id, $meta_key, $meta_value ); | |
} |
Metadata
Metadata
Assignees
Labels
No labels