Changeset 32654 for trunk/src/wp-admin/includes/update.php
- Timestamp:
- 05/29/2015 08:16:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r32653 r32654 10 10 * Selects the first update version from the update_core option. 11 11 * 12 * @return bool|objectThe response from the API on success, false on failure.12 * @return object|array|false The response from the API on success, false on failure. 13 13 */ 14 14 function get_preferred_from_update_core() { … … 25 25 * 26 26 * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too, 27 * set $options['available'] to false to skip not-dismissed updates.28 * @return bool|arrayArray of the update objects on success, false on failure.27 * set $options['available'] to false to skip not-dismissed updates. 28 * @return array|false Array of the update objects on success, false on failure. 29 29 */ 30 30 function get_core_updates( $options = array() ) { … … 68 68 * @since 3.7.0 69 69 * 70 * @return bool|arrayFalse on failure, otherwise the core update offering.70 * @return array|false False on failure, otherwise the core update offering. 71 71 */ 72 72 function find_core_auto_update() { … … 129 129 } 130 130 131 /** 132 * 133 * @param object $update 134 * @return bool 135 */ 131 136 function dismiss_core_update( $update ) { 132 137 $dismissed = get_site_option( 'dismissed_update_core' ); … … 135 140 } 136 141 142 /** 143 * 144 * @param string $version 145 * @param string $locale 146 * @return bool 147 */ 137 148 function undismiss_core_update( $version, $locale ) { 138 149 $dismissed = get_site_option( 'dismissed_update_core' ); … … 146 157 } 147 158 159 /** 160 * 161 * @param string $version 162 * @param string $locale 163 * @return object|false 164 */ 148 165 function find_core_update( $version, $locale ) { 149 166 $from_api = get_site_transient( 'update_core' ); … … 160 177 } 161 178 179 /** 180 * 181 * @param string $msg 182 * @return string 183 */ 162 184 function core_update_footer( $msg = '' ) { 163 185 if ( !current_user_can('update_core') ) … … 265 287 } 266 288 289 /** 290 * 291 * @param string $file 292 * @param array $plugin_data 293 * @return false|void 294 */ 267 295 function wp_plugin_update_row( $file, $plugin_data ) { 268 296 $current = get_site_transient( 'update_plugins' ); … … 331 359 } 332 360 361 /** 362 * 363 * @return array 364 */ 333 365 function get_theme_updates() { 334 366 $current = get_site_transient('update_themes'); … … 360 392 } 361 393 394 /** 395 * 396 * @param string $theme_key 397 * @param WP_Theme $theme 398 * @return false|void 399 */ 362 400 function wp_theme_update_row( $theme_key, $theme ) { 363 401 $current = get_site_transient( 'update_themes' );
Note: See TracChangeset
for help on using the changeset viewer.