WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate Post
[resolved] Deprecated Notice on Upgrade (3 posts)

  1. sparkweb
    Member
    Posted 2 years ago #

    @lopo, nice work on the plugin lately. I noticed that on my install, going from 2.1 to 2.1.1 when the upgrade function fired I got deprecated warnings about the add_option. Of course now I can't get it to go again, but it said something like: "there was an error in the way that add_option was called - deprecated since 2.3". It referenced a line in functions.php. You might look at the deprecated option in http://codex.wordpress.org/Function_Reference/add_option - I think the add_option() in duplicate-post/duplicate-post-admin.php might need a little work.

    But.... you are doing a really nice job on this plugin. I've recommended it alongside my own for quite a while and really appreciate the improvements you've made to it lately.

    Have you thought about adding a do_action() that other developers could hook on to for other extended functionality with other plugins?

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

  2. lopo
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    thank you for your help, those lines are among the oldest ones in the plugin so I didn't see that the parameter (which absolutely un-needed) had become deprecated. Fixed it!

    About you question, I put there two hooks whose documentation is under "Other notes" here. I think this is what you have in mind, feel free to comment about them, as always every suggestion and correction is appreciated!

    Thanks

  3. sparkweb
    Member
    Posted 2 years ago #

    Yup, that's just what I was looking for. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic