Make WordPress Core

Changeset 26164


Ignore:
Timestamp:
11/14/2013 06:28:42 AM (11 years ago)
Author:
dd32
Message:

Bacground Updates: Move the 'automatic_updates_complete' hook to only fire when some updates have actually been completed. Props nacin. Fixes #25841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r26155 r26164  
    20312031            if ( ! empty( $this->update_results['core'] ) )
    20322032                $this->after_core_update( $this->update_results['core'][0] );
    2033         }
    2034 
    2035         /**
    2036          * Action triggered after any automatic updates have run.
    2037          *
    2038          * This action is triggered after all automatic updates have run,
    2039          * but doesn't guarantee that any updates were performed, you should
    2040          * check the $update_results array to determine if any updates ran.
    2041          *
    2042          * @since 3.8.0
    2043          *
    2044          * @param array $update_results The results of all updates attempted
    2045          */
    2046         do_action( 'automatic_updates_complete', $this->update_results );
     2033
     2034            /**
     2035             * Action triggered after all automatic updates have run.
     2036             *
     2037             * @since 3.8.0
     2038             *
     2039             * @param array $update_results The results of all updates attempted
     2040             */
     2041            do_action( 'automatic_updates_complete', $this->update_results );
     2042        }
    20472043
    20482044        // Clear the lock
Note: See TracChangeset for help on using the changeset viewer.