Make WordPress Core

Changeset 46697


Ignore:
Timestamp:
11/11/2019 09:51:09 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Networks and Sites: Pass the $blog_id parameter to the newblog_notify_siteadmin filter.

Props mukto90, virgodesign.
Fixes #48554.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r46660 r46697  
    14231423     *
    14241424     * @since MU (3.0.0)
    1425      *
    1426      * @param string $msg Email body.
    1427      */
    1428     $msg = apply_filters( 'newblog_notify_siteadmin', $msg );
     1425     * @since 5.4.0 The `$blog_id` parameter was added.
     1426     *
     1427     * @param string $msg     Email body.
     1428     * @param int    $blog_id The new site's ID.
     1429     */
     1430    $msg = apply_filters( 'newblog_notify_siteadmin', $msg, $blog_id );
    14291431
    14301432    /* translators: New site notification email subject. %s: New site URL. */
Note: See TracChangeset for help on using the changeset viewer.