WordPress.org

Forums

Duplicate Post
Bugfix/upgrade: Duplicate Post removes the backslashes from content (2 posts)

  1. MythThrazz
    Member
    Posted 1 year ago #

    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/

  2. lopo
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Duplicate Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic