Make WordPress Core


Ignore:
Timestamp:
01/02/2014 03:06:36 AM (13 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/update-core.php.

Props JoshuaAbenazer, kpdesign.
Fixes #25991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r26868 r26894  
    522522                list_translation_updates();
    523523        unset( $core, $plugins, $themes );
    524         do_action('core_upgrade_preamble');
     524        /**
     525         * Fires after the core, plugin, and theme update tables.
     526         *
     527         * @since 2.9.0
     528         */
     529        do_action( 'core_upgrade_preamble' );
    525530        echo '</div>';
    526531        include(ABSPATH . 'wp-admin/admin-footer.php');
     
    628633
    629634} else {
    630         do_action('update-core-custom_' . $action);
    631 }
     635        /**
     636         * Fires for each custom update action on the WordPress Updates screen.
     637         *
     638         * The dynamic portion of the hook name, $action, refers to the
     639         * passed update action. The hook fires in lieu of all available
     640         * default update actions.
     641         *
     642         * @since 3.2.0
     643         */
     644        do_action( "update-core-custom_{$action}" );
     645}
Note: See TracChangeset for help on using the changeset viewer.