Make WordPress Core

Changeset 38818


Ignore:
Timestamp:
10/19/2016 05:01:29 AM (7 years ago)
Author:
jeremyfelt
Message:

Multisite: Add $network_id parameter to hooks in delete_network_option().

Props flixos90.
Fixes #38322.

File:
1 edited

Legend:

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

    r38817 r38818  
    13331333     *
    13341334     * @since 3.0.0
    1335      * @since 4.4.0 The `$option` parameter was added
    1336      *
    1337      * @param string $option Option name.
    1338      */
    1339     do_action( "pre_delete_site_option_{$option}", $option );
     1335     * @since 4.4.0 The `$option` parameter was added.
     1336     * @since 4.7.0 The `$network_id` parameter was added.
     1337     *
     1338     * @param string $option     Option name.
     1339     * @param int    $network_id ID of the network.
     1340     */
     1341    do_action( "pre_delete_site_option_{$option}", $option, $network_id );
    13401342
    13411343    if ( ! is_multisite() ) {
     
    13611363         * @since 2.9.0 As "delete_site_option_{$key}"
    13621364         * @since 3.0.0
    1363          *
    1364          * @param string $option Name of the network option.
     1365         * @since 4.7.0 The `$network_id` parameter was added.
     1366         *
     1367         * @param string $option     Name of the network option.
     1368         * @param int    $network_id ID of the network.
    13651369         */
    1366         do_action( "delete_site_option_{$option}", $option );
     1370        do_action( "delete_site_option_{$option}", $option, $network_id );
    13671371
    13681372        /**
     
    13701374         *
    13711375         * @since 3.0.0
    1372          *
    1373          * @param string $option Name of the network option.
     1376         * @since 4.7.0 The `$network_id` parameter was added.
     1377         *
     1378         * @param string $option     Name of the network option.
     1379         * @param int    $network_id ID of the network.
    13741380         */
    1375         do_action( 'delete_site_option', $option );
     1381        do_action( 'delete_site_option', $option, $network_id );
    13761382
    13771383        return true;
Note: See TracChangeset for help on using the changeset viewer.