Skip to content

Duplicating a Job destroys HTML Code inside Fields #60

@dannzen

Description

@dannzen

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

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions