WordPress.org

Support

Support » Plugins and Hacks » Duplicate Post » Bugfix/upgrade: Duplicate Post removes the backslashes from content

Bugfix/upgrade: Duplicate Post removes the backslashes from content

  • Hello,

    I’ve required to put some paths in my posts and I noticed your plugin was removing the backslashes. I’m a developer so I’ve attempted repair and the fix turned out to be a pretty simple oneliner so I thought I’ll contribute it here:

    In the “duplicate-post-admin.php” function “duplicate_post_create_duplicate()” line 302:

    I’ve changed:
    'post_content' => $post->post_content,
    to:
    'post_content' => addslashes_gpc($post->post_content),

    It would be great if you could use it in the next release.

    Best regards,
    Marcin Dudek

    https://wordpress.org/plugins/duplicate-post/

Viewing 1 replies (of 1 total)
  • Plugin Author Lopo

    @lopo

    Hi,
    thank you for your suggestion, I’ll try to fix the issue in the next version!

Viewing 1 replies (of 1 total)
  • The topic ‘Bugfix/upgrade: Duplicate Post removes the backslashes from content’ is closed to new replies.
Skip to toolbar