Make WordPress Core

Ticket #13732: 13732-2.diff

File 13732-2.diff, 431 bytes (added by mitchoyoshitaka, 15 years ago)

Alternative approach which would simply stop adding all those extra actions which shouldn't be hit in ajax anyway

  • wp-includes/update.php

     
    385385                wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
    386386}
    387387
    388 if ( ! is_main_site() )
     388if ( ! is_main_site() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
    389389        return;
    390390
    391391add_action( 'admin_init', '_maybe_update_core' );