WordPress.org

Plugin Directory


Ignore:
Timestamp:
12/18/17 11:34:20 (4 weeks ago)
Author:
hideokamoto
Message:

update v4.4.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c3-cloudfront-clear-cache/trunk/module/model/client-v2.php

    r1508667 r1788719  
    6868     * Create Credentials Object 
    6969     * 
    70      * @return Object (Aws\Common\Credentials\Credentials) 
     70     * @return array (Aws\Common\Credentials\Credentials) | WP_Error 
    7171     * @since 4.0.0 
    7272     * @access public 
     
    8787        } 
    8888        if ( is_wp_error( $e ) ) { 
     89            if ( $this->is_amimoto_managed() ) { 
     90                return array(); 
     91            } 
    8992            return $e; 
    9093        } 
     
    105108     * @access public 
    106109     */ 
    107     public function create_invalidation_query( $options, $post = false ) { 
     110    public function create_invalidation_query( $dist_id, $options, $post = false ) { 
    108111        $items = $this->get_invalidation_items( $options, $post ); 
    109112 
    110113        return array( 
    111             'DistributionId' => esc_attr( $options['distribution_id'] ), 
     114            'DistributionId' => esc_attr( $dist_id ), 
    112115            'Paths' => array( 
    113116                'Quantity' => count( $items ), 
Note: See TracChangeset for help on using the changeset viewer.