wphooks.info - core_version_check_locale

core_version_check_locale

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/update.php:
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
		return;
	}

	/**
	 * Filters the locale requested for WordPress core translations.
	 *
	 * @since 2.8.0
	 *
	 * @param string $locale Current locale.
	 */
	$locale = apply_filters( 'core_version_check_locale', get_locale() );

	// Update last_checked for current to prevent multiple blocking requests if request hangs
	$current->last_checked = time();
	set_site_transient( 'update_core', $current );

	if ( method_exists( $wpdb, 'db_version' ) )
		$mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version());
	else
		$mysql_version = 'N/A';