WordPress.org

Ready to get started?Download WordPress

Forums

Optimize Database after Deleting Revisions
[resolved] Stealing cron schedules (6 posts)

  1. Antonie Potgieter
    Member
    Posted 12 months ago #

    This plugin is not correctly using the filter:

    cron_schedules

    It is using it like an action and not a filter.

    So it is not receiving the current cron schedules, appending to the array and then returning the new array. Instead it is just creating a new array and returning it.

    It is "stealing" cron schedules which other plugins/themes may have set.

    http://wordpress.org/extend/plugins/rvg-optimize-database/

  2. Antonie Potgieter
    Member
    Posted 12 months ago #

    Here is the documentation to see the correct usage: http://codex.wordpress.org/Plugin_API/Filter_Reference/cron_schedules

  3. cageehv
    Member
    Plugin Author

    Posted 12 months ago #

    Hey Antonie,

    Thanks for pointing that out and thanks for the link!
    (I had no idea I was 'stealing cron schedules' :-)

    I will fix it a.s.a.p.

    peace,
    Rolf

  4. Antonie Potgieter
    Member
    Posted 11 months ago #

    Hi Rolf,

    Thanks for your reply.

    Hehe, no problem I'm sure it will prevent some issues in the future. Some plugins or themes even set their own intervals as needed and this problem prevents those from showing up.

    Have a good one!

  5. cageehv
    Member
    Plugin Author

    Posted 11 months ago #

    Hey Antonie,

    Just released v2.3 of the plugin.
    It fixes the 'stealing' issue!

    peace,
    Rolf

  6. Antonie Potgieter
    Member
    Posted 11 months ago #

    That's great news, well done Rolf

Reply

You must log in to post.

About this Plugin

About this Topic