Changeset 38816
- Timestamp:
- 10/19/2016 04:55:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r38815 r38816 1222 1222 * @since 2.9.0 As 'pre_add_site_option_' . $key 1223 1223 * @since 3.0.0 1224 * @since 4.4.0 The `$option` parameter was added 1225 * 1226 * @param mixed $value Value of network option. 1227 * @param string $option Option name. 1228 */ 1229 $value = apply_filters( "pre_add_site_option_{$option}", $value, $option ); 1224 * @since 4.4.0 The `$option` parameter was added. 1225 * @since 4.7.0 The `$network_id` parameter was added. 1226 * 1227 * @param mixed $value Value of network option. 1228 * @param string $option Option name. 1229 * @param int $network_id ID of the network. 1230 */ 1231 $value = apply_filters( "pre_add_site_option_{$option}", $value, $option, $network_id ); 1230 1232 1231 1233 $notoptions_key = "$network_id:notoptions"; … … 1272 1274 * @since 2.9.0 As "add_site_option_{$key}" 1273 1275 * @since 3.0.0 1274 * 1275 * @param string $option Name of the network option. 1276 * @param mixed $value Value of the network option. 1276 * @since 4.7.0 The `$network_id` parameter was added. 1277 * 1278 * @param string $option Name of the network option. 1279 * @param mixed $value Value of the network option. 1280 * @param int $network_id ID of the network. 1277 1281 */ 1278 do_action( "add_site_option_{$option}", $option, $value );1282 do_action( "add_site_option_{$option}", $option, $value, $network_id ); 1279 1283 1280 1284 /** … … 1282 1286 * 1283 1287 * @since 3.0.0 1284 * 1285 * @param string $option Name of the network option. 1286 * @param mixed $value Value of the network option. 1288 * @since 4.7.0 The `$network_id` parameter was added. 1289 * 1290 * @param string $option Name of the network option. 1291 * @param mixed $value Value of the network option. 1292 * @param int $network_id ID of the network. 1287 1293 */ 1288 do_action( 'add_site_option', $option, $value );1294 do_action( 'add_site_option', $option, $value, $network_id ); 1289 1295 1290 1296 return true;
Note: See TracChangeset
for help on using the changeset viewer.