WordPress.org

Forums

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

  1. Tribulant Software
    Member
    Posted 2 years 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. Tribulant Software
    Member
    Posted 2 years 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 2 years 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. Tribulant Software
    Member
    Posted 2 years 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 2 years ago #

    Hey Antonie,

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

    peace,
    Rolf

  6. Tribulant Software
    Member
    Posted 2 years ago #

    That's great news, well done Rolf

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Optimize Database after Deleting Revisions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic