Making WordPress.org


Ignore:
Timestamp:
05/17/2022 11:25:58 PM (4 years ago)
Author:
iandunn
Message:

Official WP Events: Sync with wordcamp.org forks.

This includes some linting since that made it easier to compare them manually

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup/class-meetup-oauth2-client.php

    r11498 r11850  
    128128    /**
    129129     * Request one of various types of tokens from the Meetup OAuth API.
    130      * 
     130     *
    131131     * Setting $type to 'access_token' is for step 2 of the oAuth flow. This takes a code that has been previously set
    132132     * through a user-initiated oAuth authentication.
    133      * 
     133     *
    134134     * Setting $type to 'refresh_token' will request a new access_token generated through the above access_token method.
    135135     *
     
    150150        $request_body    = array();
    151151
    152         switch( $type ) {
     152        switch ( $type ) {
    153153            case 'access_token': // Request a new access token.
    154154                $args = wp_parse_args( $args, array(
     
    156156                ) );
    157157
    158                 $request_url  = self::URL_ACCESS_TOKEN;
    159                 $request_body = array(
     158                $request_url                     = self::URL_ACCESS_TOKEN;
     159                $request_body                    = array(
    160160                    'client_id'     => self::CONSUMER_KEY,
    161161                    'client_secret' => self::CONSUMER_SECRET,
     
    238238                if ( ! $_GET['code'] ) {
    239239                    $message = sprintf(
    240                         "Meetup.com oAuth expired. Please access the following url while logged into the %s meetup.com account: \n\n%s\n\n" . 
     240                        "Meetup.com oAuth expired. Please access the following url while logged into the %s meetup.com account: \n\n%s\n\n" .
    241241                        "For sites other than WordCamp Central, the ?code=... parameter will need to be stored on this site via wp-cli and this task run again: `wp --url=%s site option update '%s' '...'`",
    242242                        self::EMAIL,
     
    265265                delete_site_option( self::SITE_OPTION_KEY_AUTHORIZATION, false );
    266266            }
    267 
    268267        } elseif ( $this->is_expired_token( $token ) ) {
    269268            $token = $this->request_token( 'refresh_token', $token );
Note: See TracChangeset for help on using the changeset viewer.