1
1
<?php
2
2
/**
3
- * A simple set of functions to check our version 1.0 update service.
3
+ * A simple set of functions to check our Version Update service.
4
4
*
5
5
* @package WordPress
6
6
* @since 2.3.0
7
7
*/
8
8
9
9
/**
10
- * Check WordPress version against the newest version.
10
+ * Checks WordPress version against the newest version.
11
11
*
12
12
* The WordPress version, PHP version, and locale is sent.
13
13
*
21
21
* @global string $wp_local_package Locale code of the package.
22
22
*
23
23
* @param array $extra_stats Extra statistics to report to the WordPress.org API.
24
- * @param bool $force_check Whether to bypass the transient cache and force a fresh update check. Defaults to false, true if $extra_stats is set.
24
+ * @param bool $force_check Whether to bypass the transient cache and force a fresh update check.
25
+ * Defaults to false, true if $extra_stats is set.
25
26
*/
26
27
function wp_version_check ( $ extra_stats = array (), $ force_check = false ) {
27
28
global $ wpdb , $ wp_local_package ;
@@ -880,7 +881,7 @@ function wp_get_translation_updates() {
880
881
}
881
882
882
883
/**
883
- * Collect counts and UI strings for available updates
884
+ * Collects counts and UI strings for available updates.
884
885
*
885
886
* @since 3.3.0
886
887
*
@@ -998,7 +999,7 @@ function _maybe_update_core() {
998
999
wp_version_check ();
999
1000
}
1000
1001
/**
1001
- * Check the last time plugins were run before checking plugin versions.
1002
+ * Checks the last time plugins were run before checking plugin versions.
1002
1003
*
1003
1004
* This might have been backported to WordPress 2.6.1 for performance reasons.
1004
1005
* This is used for the wp-admin to check only so often instead of every page
@@ -1020,7 +1021,7 @@ function _maybe_update_plugins() {
1020
1021
}
1021
1022
1022
1023
/**
1023
- * Check themes versions only after a duration of time.
1024
+ * Checks themes versions only after a duration of time.
1024
1025
*
1025
1026
* This is for performance reasons to make sure that on the theme version
1026
1027
* checker is not run on every page load.
@@ -1041,7 +1042,7 @@ function _maybe_update_themes() {
1041
1042
}
1042
1043
1043
1044
/**
1044
- * Schedule core, theme, and plugin update checks.
1045
+ * Schedules core, theme, and plugin update checks.
1045
1046
*
1046
1047
* @since 3.1.0
1047
1048
*/
@@ -1060,7 +1061,7 @@ function wp_schedule_update_checks() {
1060
1061
}
1061
1062
1062
1063
/**
1063
- * Clear existing update caches for plugins, themes, and core.
1064
+ * Clears existing update caches for plugins, themes, and core.
1064
1065
*
1065
1066
* @since 4.1.0
1066
1067
*/
0 commit comments