Make WordPress Core

Changeset 27264


Ignore:
Timestamp:
02/25/2014 05:19:22 PM (10 years ago)
Author:
nacin
Message:

Clarify return values for get_preferred_from_update_core() and get_core_updates().

props SergeyBiryukov.
fixes #20251.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r26540 r27264  
    88
    99/**
    10  * Selects the first update version from the update_core option
    11  *
    12  * @return object the response from the API
     10 * Selects the first update version from the update_core option.
     11 *
     12 * @return bool|object The response from the API on success, false on failure.
    1313 */
    1414function get_preferred_from_update_core() {
     
    2222
    2323/**
    24  * Get available core updates
     24 * Get available core updates.
    2525 *
    2626 * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too,
    2727 *  set $options['available'] to false to skip not-dismissed updates.
    28  * @return array Array of the update objects
     28 * @return bool|array Array of the update objects on success, false on failure.
    2929 */
    3030function get_core_updates( $options = array() ) {
Note: See TracChangeset for help on using the changeset viewer.