Make WordPress Core

Ticket #25991: 25991.3.diff

File 25991.3.diff, 979 bytes (added by kpdesign, 13 years ago)

Second pass on wp-admin_update-core-php.2.diff​

  • src/wp-admin/update-core.php

     
    521521        if ( $core || $plugins || $themes )
    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 forms.
     526         *
     527         * @since 2.9.0
     528         */
     529        do_action( 'core_upgrade_preamble' );
    525530        echo '</div>';
    526531        include(ABSPATH . 'wp-admin/admin-footer.php');
    527532
     
    627632        require_once( ABSPATH . 'wp-admin/admin-footer.php' );
    628633
    629634} else {
    630         do_action('update-core-custom_' . $action);
     635        /**
     636         * Fires when no default conditions match the action parameter in the URL.
     637         *
     638         * The dynamic portion of the hook name, $action, refers to the action
     639         * parameter in the URL.
     640         *
     641         * @since 3.2.0
     642         */
     643        do_action( "update-core-custom_{$action}" );
    631644}