Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49926 r49927  
    3030     * @since 4.8.0
    3131     *
    32      * @var bool|array
     32     * @var false|array
    3333     */
    3434    protected $user_location = false;
     
    307307     *
    308308     * @param array $location Should contain 'latitude' and 'longitude' indexes.
    309      * @return bool|string false on failure, or a string on success.
     309     * @return false|string false on failure, or a string on success.
    310310     */
    311311    protected function get_events_transient_key( $location ) {
     
    326326     * @since 4.8.0
    327327     *
    328      * @param array    $events     Response body from the API request.
    329      * @param int|bool $expiration Optional. Amount of time to cache the events. Defaults to false.
     328     * @param array     $events     Response body from the API request.
     329     * @param int|false $expiration Optional. Amount of time to cache the events. Defaults to false.
    330330     * @return bool true if events were cached; false if not.
    331331     */
Note: See TracChangeset for help on using the changeset viewer.