Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating a Job destroys HTML Code inside Fields #60

Open
dannzen opened this issue Mar 12, 2024 · 0 comments
Open

Duplicating a Job destroys HTML Code inside Fields #60

dannzen opened this issue Mar 12, 2024 · 0 comments

Comments

@dannzen
Copy link

dannzen commented Mar 12, 2024

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 );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant