• Resolved bibelwort

    (@bibelwort)


    Dear Blockart Team,
    I would like to report a bug with the “Load Google Fonts Locally” feature.

    When enabled, Blockart constantly schedules a WP-Cron job “delete_fonts_folder”.
    As far as I understand, the problem is in this code in “wp-content/plugins/blockart-blocks/includes/WebFontLoader.php”:

    public function schedule_cleanup() {
    if ( ! is_multisite() || ( is_multisite() && is_main_site() ) ) {
    if ( ! wp_next_scheduled( 'blockart_delete_fonts_folder' ) && ! wp_installing() ) {
    wp_schedule_event( time(), self::CLEANUP_FREQUENCY, 'delete_fonts_folder' );
    }
    }
    }

    Blockart expects “blockart_delete_fonts_folder” as a cron job name, but instead schedules the “delete_fonts_folder” event, causing it to register a new wp-cron job every time it’s called (every 5 minutes in my case).
    Moreover, it conflicts with the same event from the Zakra theme when “Load Google Fonts Locally” is also enabled there, leading to a race condition issue.

    Thanks for your attention.

Viewing 1 replies (of 1 total)
  • Hi @bibelwort,

    Thanks for writing us.

    The issue you mentioned is now fixed, and we will release an update very soon.

    Feel free to get back to us, if you need any more information.
    Regards!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.