WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate Post
[resolved] Very Minor bug (3 posts)

  1. Jeff Rose
    Member
    Posted 2 years ago #

    In the function duplicate_post_create_duplicate - there's a small typo.

    You do
    if (!empty($prefix))
    twice, but the second should be $suffix instead. So if I enter only a suffix, it is not prepended with a space. Only if I enter a prefix AND a suffix would that work.

    http://wordpress.org/extend/plugins/duplicate-post/

  2. lopo
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    you' re right, I've fixed the code in SVN trunk so it will be there in the next version.
    Thank you very much!

  3. lopo
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    version 2.4 (out now) fixes the issue.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic