Make WordPress Core

Ticket #30441: pre-auto-update.patch

File pre-auto-update.patch, 388 bytes (added by DavidAnderson, 10 years ago)

Add action call before background updates

  • wp-admin/includes/class-wp-upgrader.php

     
    20562056                if ( ! $this->should_update( $type, $item, $context ) )
    20572057                        return false;
    20582058
     2059                do_action( "pre_auto_update", $type, $item, $context );
     2060
    20592061                $upgrader_item = $item;
    20602062                switch ( $type ) {
    20612063                        case 'core':