WordPress.org

Making WordPress.org

Changeset 9105


Ignore:
Timestamp:
08/15/2019 05:49:43 PM (5 weeks ago)
Author:
coreymckrill
Message:

Official WordPress Events: Add missing parameters to Meetup error handler

When modifying the API_Client class to enable error reporting for r9100, I added
new parameters to the error handler, but neglected to update the error handlers
in the two extending Meetup client classes to match.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup
Files:
2 edited

Legend:

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

    r9100 r9105  
    274274     * from the request payload.
    275275     *
    276      * @param array|WP_Error $response
     276     * @param array|WP_Error $response     The response or error generated from the request.
     277     * @param string         $request_url  Optional.
     278     * @param array          $request_args Optional.
    277279     *
    278280     * @return void
    279281     */
    280     public function handle_error_response( $response ) {
    281         if ( parent::handle_error_response( $response ) ) {
     282    public function handle_error_response( $response, $request_url = '', $request_args = array() ) {
     283        if ( parent::handle_error_response( $response, $request_url, $request_args ) ) {
    282284            return;
    283285        }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup/class-meetup-oauth2-client.php

    r9100 r9105  
    364364     * from the request payload.
    365365     *
    366      * @param array|WP_Error $response
     366     * @param array|WP_Error $response     The response or error generated from the request.
     367     * @param string         $request_url  Optional.
     368     * @param array          $request_args Optional.
    367369     *
    368370     * @return void
    369371     */
    370     public function handle_error_response( $response ) {
    371         if ( parent::handle_error_response( $response ) ) {
     372    public function handle_error_response( $response, $request_url = '', $request_args = array() ) {
     373        if ( parent::handle_error_response( $response, $request_url, $request_args ) ) {
    372374            return;
    373375        }
Note: See TracChangeset for help on using the changeset viewer.