Plugin Directory

Changeset 2122222


Ignore:
Timestamp:
07/12/2019 06:43:49 PM (7 years ago)
Author:
oscarssanchez
Message:

1.7.1 release

Location:
brightcove-video-connect/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • brightcove-video-connect/trunk/assets/js/src/block.js

    r1951003 r2122222  
    2121        edit: function( props ) {
    2222            // Set the field we want to target
    23             var target = 'brightcove-' + props.id;
     23            var target = 'brightcove-' + props.clientId;
    2424
    2525            // Attributes needed to render
  • brightcove-video-connect/trunk/brightcove-video-connect.php

    r2057701 r2122222  
    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.7.0
     6 * Version: 1.7.1
    77 * Author: 10up
    88 * Author URI: http://10up.com
     
    3030 */
    3131
    32 define( 'BRIGHTCOVE_VERSION', '1.7.0' );
     32define( 'BRIGHTCOVE_VERSION', '1.7.1' );
    3333define( 'BRIGHTCOVE_URL', plugin_dir_url( __FILE__ ) );
    3434define( 'BRIGHTCOVE_PATH', dirname( __FILE__ ) . '/' );
     
    5555}
    5656
     57require_once( BRIGHTCOVE_PATH . 'includes/class-bc-playlist-shortcode.php' );
     58require_once( BRIGHTCOVE_PATH . 'includes/class-bc-video-shortcode.php' );
     59require_once( BRIGHTCOVE_PATH . 'includes/class-bc-experiences-shortcode.php' );
     60require_once( BRIGHTCOVE_PATH . 'includes/class-bc-utility.php' );
     61require_once( BRIGHTCOVE_PATH . 'includes/class-bc-accounts.php' );
     62require_once( BRIGHTCOVE_PATH . 'includes/api/class-bc-api.php' );
     63require_once( BRIGHTCOVE_PATH . 'includes/api/class-bc-oauth.php' );
     64require_once( BRIGHTCOVE_PATH . 'includes/api/class-bc-player-management-api.php' );
     65
    5766// Wireup actions.
    58 global $pagenow;
    59 
    60 if ( in_array( $pagenow, array( 'admin-ajax.php', 'admin.php', 'post-new.php', 'edit.php', 'post.php' ) ) ) {
    61 
     67if ( is_admin() ) {
    6268    add_action( 'init', array( 'BC_Setup', 'action_init' ) );
    6369    add_action( 'init', array( 'BC_Setup', 'bc_check_minimum_wp_version' ) );
    64 
    6570} else {
    66 
    67     require_once( BRIGHTCOVE_PATH . 'includes/class-bc-playlist-shortcode.php' );
    68     require_once( BRIGHTCOVE_PATH . 'includes/class-bc-video-shortcode.php' );
    69     require_once( BRIGHTCOVE_PATH . 'includes/class-bc-experiences-shortcode.php' );
    70     require_once( BRIGHTCOVE_PATH . 'includes/class-bc-utility.php' );
    71     require_once( BRIGHTCOVE_PATH . 'includes/class-bc-accounts.php' );
    72     require_once( BRIGHTCOVE_PATH . 'includes/api/class-bc-api.php' );
    73     require_once( BRIGHTCOVE_PATH . 'includes/api/class-bc-oauth.php' );
    74     require_once( BRIGHTCOVE_PATH . 'includes/api/class-bc-player-management-api.php' );
    7571
    7672    global $bc_accounts;
  • brightcove-video-connect/trunk/includes/api/class-bc-cms-api.php

    r2057701 r2122222  
    717717            $folders = array();
    718718
    719             foreach ( $request as $folder ) {
    720                 $folders[ $folder['id'] ] = $folder['name'];
     719            if ( $request && ! is_wp_error( $request ) ) {
     720                foreach ( $request as $folder ) {
     721                    $folders[ $folder['id'] ] = $folder['name'];
     722                }
     723
     724                set_transient( $cache_key, $folders, 600 );
    721725            }
    722 
    723             set_transient( $cache_key, $folders, 600 );
    724726        }
    725727
  • brightcove-video-connect/trunk/includes/class-bc-setup.php

    r2057701 r2122222  
    113113                'brightcove-block',
    114114                BRIGHTCOVE_URL . 'assets/js/src/block.js',
    115                 array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' )
     115                array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ),
     116                filemtime( BRIGHTCOVE_PATH . 'assets/js/src/block.js' )
    116117            );
    117118
  • brightcove-video-connect/trunk/readme.txt

    r2057701 r2122222  
    11=== Brightcove Video Connect ===
    22
    3 Contributors: 10up, collinsinternet, ivankk, technosailor, ChrisWiegman, tott, eduardmaghakyan, mattonomics, phoenixfireball, karinedo, foobuilder, helen, tlovett1, jonathantneal, brightcove, adamsilverstein, jonbellah, sudar, bctbaldwin
     3Contributors: 10up, oscarssanchez, collinsinternet, ivankk, technosailor, ChrisWiegman, tott, eduardmaghakyan, mattonomics, phoenixfireball, karinedo, foobuilder, helen, tlovett1, jonathantneal, brightcove, adamsilverstein, jonbellah, sudar, bctbaldwin
    44Donate link: https://supporters.eff.org/donate
    55Tags: brightcove, 10up, videos, video
    66Requires at least: 4.2
    7 Tested up to: 5.1
    8 Stable tag: 1.7.0
     7Tested up to: 5.2
     8Stable tag: 1.7.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.7.1 =
     26
     27* Fix: Settings page not loading when plugin is network activated.
     28* Fix: Adding multiple Gutenberg blocks to a post causes videos to sync video content.
     29* Fix: PHP notice when information from Brightcove account not available.
    2430
    2531= 1.7.0 =
Note: See TracChangeset for help on using the changeset viewer.