Changeset 38817
- Timestamp:
- 10/19/2016 04:59:20 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r38816 r38817 1420 1420 * @since 2.9.0 As 'pre_update_site_option_' . $key 1421 1421 * @since 3.0.0 1422 * @since 4.4.0 The `$option` parameter was added 1423 * 1424 * @param mixed $value New value of the network option. 1425 * @param mixed $old_value Old value of the network option. 1426 * @param string $option Option name. 1427 */ 1428 $value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option ); 1422 * @since 4.4.0 The `$option` parameter was added. 1423 * @since 4.7.0 The `$network_id` parameter was added. 1424 * 1425 * @param mixed $value New value of the network option. 1426 * @param mixed $old_value Old value of the network option. 1427 * @param string $option Option name. 1428 * @param int $network_id ID of the network. 1429 */ 1430 $value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option, $network_id ); 1429 1431 1430 1432 if ( $value === $old_value ) { … … 1466 1468 * @since 2.9.0 As "update_site_option_{$key}" 1467 1469 * @since 3.0.0 1468 * 1469 * @param string $option Name of the network option. 1470 * @param mixed $value Current value of the network option. 1471 * @param mixed $old_value Old value of the network option. 1470 * @since 4.7.0 The `$network_id` parameter was added. 1471 * 1472 * @param string $option Name of the network option. 1473 * @param mixed $value Current value of the network option. 1474 * @param mixed $old_value Old value of the network option. 1475 * @param int $network_id ID of the network. 1472 1476 */ 1473 do_action( "update_site_option_{$option}", $option, $value, $old_value );1477 do_action( "update_site_option_{$option}", $option, $value, $old_value, $network_id ); 1474 1478 1475 1479 /** … … 1477 1481 * 1478 1482 * @since 3.0.0 1479 * 1480 * @param string $option Name of the network option. 1481 * @param mixed $value Current value of the network option. 1482 * @param mixed $old_value Old value of the network option. 1483 * @since 4.7.0 The `$network_id` parameter was added. 1484 * 1485 * @param string $option Name of the network option. 1486 * @param mixed $value Current value of the network option. 1487 * @param mixed $old_value Old value of the network option. 1488 * @param int $network_id ID of the network. 1483 1489 */ 1484 do_action( 'update_site_option', $option, $value, $old_value );1490 do_action( 'update_site_option', $option, $value, $old_value, $network_id ); 1485 1491 1486 1492 return true;
Note: See TracChangeset
for help on using the changeset viewer.