Skip to content

Commit

Permalink
Merge pull request #248 from 10up/fix/broken-bc-experiences
Browse files Browse the repository at this point in the history
Fix/broken bc experiences
  • Loading branch information
oscarssanchez authored Jan 17, 2022
2 parents 7b51690 + afc655f commit 0d66153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-bc-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,16 @@ public static function admin_enqueue_scripts() {
$player_api = new BC_Player_Management_API2();
$players = $player_api->get_all_players();

$experiences_api = new BC_Experiences_API();
$experiences = $experiences_api->get_experiences();

$js_variable = array(
'path' => esc_url( BRIGHTCOVE_URL . 'assets/js/src/' ),
'preload' => self::preload_params(),
'wp_version' => $wp_version,
'languages' => BC_Utility::languages(),
'players' => $players,
'experiences' => $experiences,
'str_badformat' => esc_html__( 'This file is not the proper format. Please use .vtt files, for more information visit', 'brightcove' ),
'badformat_link' => esc_url( 'https://support.brightcove.com/en/video-cloud/docs/adding-captions-videos#captionsfile' ),
'str_addcaption' => esc_html__( 'Add Another Caption', 'brightcove' ),
Expand Down

0 comments on commit 0d66153

Please sign in to comment.