Make WordPress Core

Changeset 32963


Ignore:
Timestamp:
06/27/2015 12:44:21 AM (9 years ago)
Author:
wonderboymusic
Message:

Some doc blocks should use bool instead of true|false

See #32444.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r32871 r32963  
    18331833     * @param array        $args   Optional. Other optional arguments, see
    18341834     *                             {@see Language_Pack_Upgrader::bulk_upgrade()}. Default empty array.
    1835      * @return array|WP_Error The result of the upgrade, or a {@see wP_Error} object instead.
     1835     * @return array|bool|WP_Error The result of the upgrade, or a {@see wP_Error} object instead.
    18361836     */
    18371837    public function upgrade( $update = false, $args = array() ) {
     
    18631863     *                                    Default true.
    18641864     * }
    1865      * @return array|true|false|WP_Error Will return an array of results, or true if there are no updates,
     1865     * @return array|bool|WP_Error Will return an array of results, or true if there are no updates,
    18661866     *                                   false or WP_Error for initial errors.
    18671867     */
  • trunk/src/wp-includes/functions.php

    r32810 r32963  
    46094609 * @access private
    46104610 *
    4611  * @return bool true|false Whether the device is able to upload files.
     4611 * @return bool Whether the device is able to upload files.
    46124612 */
    46134613function _device_can_upload() {
  • trunk/src/wp-includes/vars.php

    r32650 r32963  
    121121 * @staticvar bool $is_mobile
    122122 *
    123  * @return bool true|false
     123 * @return bool
    124124 */
    125125function wp_is_mobile() {
Note: See TracChangeset for help on using the changeset viewer.