Changeset 46763
- Timestamp:
- 11/23/2019 06:49:59 PM (5 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r46185 r46763 9 9 /** 10 10 * Selects the first update version from the update_core option. 11 * 12 * @since 2.7.0 11 13 * 12 14 * @return object|array|false The response from the API on success, false on failure. … … 24 26 25 27 /** 26 * Get available core updates. 28 * Gets available core updates. 29 * 30 * @since 2.7.0 27 31 * 28 32 * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too, … … 73 77 74 78 /** 75 * Gets the best available (and enabled) Auto-Update for WordPress Core.76 * 77 * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the installation allows it, else, 1.2.3 79 * Gets the best available (and enabled) Auto-Update for WordPress core. 80 * 81 * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the installation allows it, else, 1.2.3. 78 82 * 79 83 * @since 3.7.0 80 84 * 81 * @return array|false False on failure, otherwise the core update offering.85 * @return object|false The core update offering on success, false on failure. 82 86 */ 83 87 function find_core_auto_update() { … … 114 118 * @param string $version Version string to query. 115 119 * @param string $locale Locale to query. 116 * @return bool|array False on failure. An array of checksums on success.120 * @return array|false An array of checksums on success, false on failure. 117 121 */ 118 122 function get_core_checksums( $version, $locale ) { … … 157 161 158 162 /** 163 * Dismisses core update. 164 * 165 * @since 2.7.0 166 * 159 167 * @param object $update 160 168 * @return bool … … 167 175 168 176 /** 177 * Undismisses core update. 178 * 179 * @since 2.7.0 180 * 169 181 * @param string $version 170 182 * @param string $locale … … 184 196 185 197 /** 186 * @param string $version 187 * @param string $locale 188 * @return object|false 198 * Finds the available update for WordPress core. 199 * 200 * @since 2.7.0 201 * 202 * @param string $version Version string to find the update for. 203 * @param string $locale Locale to find the update for. 204 * @return object|false The core update offering on success, false on failure. 189 205 */ 190 206 function find_core_update( $version, $locale ) { … … 205 221 206 222 /** 223 * @since 2.3.0 224 * 207 225 * @param string $msg 208 226 * @return string … … 256 274 257 275 /** 276 * @since 2.3.0 277 * 258 278 * @global string $pagenow 259 279 * @return false|void … … 302 322 } 303 323 304 // Called directly from dashboard 324 /** 325 * Displays WordPress version and active theme in the 'At a Glance' dashboard widget. 326 * 327 * @since 2.5.0 328 */ 305 329 function update_right_now_message() { 306 330 $theme_name = wp_get_theme(); … … 381 405 /** 382 406 * Displays update information for a plugin. 407 * 408 * @since 2.3.0 383 409 * 384 410 * @param string $file Plugin basename. … … 541 567 542 568 /** 569 * @since 2.9.0 570 * 543 571 * @return array 544 572 */ … … 579 607 /** 580 608 * Displays update information for a theme. 609 * 610 * @since 3.1.0 581 611 * 582 612 * @param string $theme_key Theme stylesheet. … … 688 718 689 719 /** 720 * @since 2.7.0 721 * 690 722 * @global int $upgrading 691 723 * @return false|void -
trunk/src/wp-admin/update-core.php
r46161 r46763 25 25 26 26 /** 27 * Lists available core updates. 28 * 29 * @since 2.7.0 30 * 27 31 * @global string $wp_local_package 28 32 * @global wpdb $wpdb WordPress database abstraction object.
Note: See TracChangeset
for help on using the changeset viewer.