WordPress.org

Make WordPress Core

Ticket #25584: 25584.3.diff

File 25584.3.diff, 537 bytes (added by johnjamesjacoby, 2 years ago)

Move action outside of $drop check and pass $drop as a parameter to match delete_blog usage

  • src/wp-admin/includes/ms.php

    diff --git src/wp-admin/includes/ms.php src/wp-admin/includes/ms.php
    index 254af7f..097363d 100644
     
    173173                clean_blog_cache( $blog );
    174174        }
    175175
     176        /**
     177         * Fires after the site is deleted from the network.
     178         *
     179         * @since 4.8.0
     180         *
     181         * @param int  $blog_id The site ID.
     182         * @param bool $drop    True if site's table should be dropped. Default is false.
     183         */
     184        do_action( 'deleted_blog', $blog_id, $drop );
     185
    176186        if ( $switch )
    177187                restore_current_blog();
    178188}