Plugin Directory

Changeset 1189503


Ignore:
Timestamp:
06/29/2015 11:51:25 AM (10 years ago)
Author:
tott
Message:

Fixing sporadic timeout issues when adding Sources.

Location:
brightcove-video-connect/trunk
Files:
6 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • brightcove-video-connect/trunk/brightcove-video-connect.php

    r1181264 r1189503  
    44 * Plugin URI:  https://wordpress.org/plugins/brightcove-video-connect/
    55 * Description: A Brightcove™ Connector for WordPress that leverages enhanced APIs and Brightcove™ Capabilities
    6  * Version:     1.0.1
     6 * Version:     1.0.2
    77 * Author:      10up
    88 * Author URI:  http://10up.com
     
    2727 * You should have received a copy of the GNU General Public License
    2828 * along with this program; if not, write to the Free Software
    29  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     29 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  021.0.2301  USA
    3030 */
    3131
    32 define( 'BRIGHTCOVE_VERSION', '1.0.1' );
     32define( 'BRIGHTCOVE_VERSION', '1.0.2' );
    3333define( 'BRIGHTCOVE_URL', plugin_dir_url( __FILE__ ) );
    3434define( 'BRIGHTCOVE_PATH', dirname( __FILE__ ) . '/' );
  • brightcove-video-connect/trunk/includes/classes/api/class-bc-api.php

    r1181264 r1189503  
    162162        }
    163163
     164        add_filter( 'http_request_timeout', array( $this, 'increase_http_timeout' ) );
     165
    164166        $headers = array( 'Authorization' => $auth_header );
    165167
     
    273275
    274276    }
     277    /**
     278     * Increase the http timeout for API requests
     279     */
     280     
     281    public function increase_http_timeout( $timeout ) {
     282        $timeout += 5;
     283        return $timeout;       
     284    }
    275285
    276286    /**
  • brightcove-video-connect/trunk/includes/classes/class-bc-accounts.php

    r1181181 r1189503  
    139139        $is_valid_account = $this->is_valid_account( $account_id, $client_id, $client_secret, $account_name );
    140140
    141         if ( is_wp_error( $is_valid_account ) ) {
    142             return $is_valid_account->get_error_messages();
    143         }
     141        if ( is_array( $is_valid_account ) ) {
     142            foreach ( $is_valid_account as $wp_error ) {
     143                if ( is_wp_error( $wp_error ) ) {
     144                    BC_Utility::admin_notice_messages( array(
     145                        array(
     146                            'message' => $wp_error->get_error_message(),
     147                            'type'    => 'error'
     148                        )
     149                    ) );
     150                }
     151            }
     152
     153            return false;
     154        }
    144155
    145156        if ( true !== $is_valid_account ) {
  • brightcove-video-connect/trunk/readme.txt

    r1181264 r1189503  
    66Requires at least: 4.0
    77Tested up to:      4.2
    8 Stable tag:        1.0.1
     8Stable tag:        1.0.2
    99License:           GPLv2 or later
    1010License URI:       http://www.gnu.org/licenses/gpl-2.0.html
     
    188188== Changelog ==
    189189
     190= 1.0.2 =
     191* Increasing HTTP timeout to fix sporadic issues when adding sources
     192
    190193= 1.0.1 =
    191194* Cleanup of references from /brightcove_video_cloud to /brightcove_video_connect.
Note: See TracChangeset for help on using the changeset viewer.