Changeset 54945
- Timestamp:
- 12/06/2022 10:14:40 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r54637 r54945 349 349 * @since MU (3.0.0) 350 350 * 351 * @param int $id A blog ID. Can be null to refer to the current blog.352 * @param string $option Name of option to retrieve. Expected to not be SQL-escaped.353 * @param mixed $default Optional. Default value to return if the option does not exist.351 * @param int $id A blog ID. Can be null to refer to the current blog. 352 * @param string $option Name of option to retrieve. Expected to not be SQL-escaped. 353 * @param mixed $default_value Optional. Default value to return if the option does not exist. 354 354 * @return mixed Value set for the option. 355 355 */ 356 function get_blog_option( $id, $option, $default = false ) {356 function get_blog_option( $id, $option, $default_value = false ) { 357 357 $id = (int) $id; 358 358 … … 362 362 363 363 if ( get_current_blog_id() == $id ) { 364 return get_option( $option, $default );364 return get_option( $option, $default_value ); 365 365 } 366 366 367 367 switch_to_blog( $id ); 368 $value = get_option( $option, $default );368 $value = get_option( $option, $default_value ); 369 369 restore_current_blog(); 370 370
Note: See TracChangeset
for help on using the changeset viewer.