Skip to content

Commit b008611

Browse files
committed
Update docs, switch player to Able Player 4.5.0
1 parent 9de2520 commit b008611

14 files changed

+9469
-9466
lines changed

src/ableplayer.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
* License: MIT
1717
* License URI: https://github.com/ableplayer/ableplayer-wordpress/blob/master/LICENSE
1818
* Domain Path: lang
19-
* Version: 1.2
19+
* Version: 1.2.0
2020
*/
2121

2222
// Configure debugging mode.
2323
define( 'ABLEPLAYER_DEBUG', false );
2424

2525
// Get current version number.
26-
define( 'ABLEPLAYER_VERSION', '1.2' );
26+
define( 'ABLEPLAYER_VERSION', '1.2.0' );
2727

2828
register_activation_hook( __FILE__, 'ableplayer_activation' );
2929
/**
@@ -52,8 +52,8 @@ function ableplayer_enqueue_scripts() {
5252
// if the environment is production, use minified files. Otherwise, inherit the value of SCRIPT_DEBUG.
5353
$is_production = ( function_exists( 'wp_get_environment_type' ) && wp_get_environment_type() === 'production' ) ? true : SCRIPT_DEBUG;
5454

55-
$js_file = ( $is_production ) ? 'ableplayer.min.4.5.0.js' : 'ableplayer.4.5.0.js';
56-
$css_file = ( $is_production ) ? 'ableplayer.min.4.5.0.css' : 'ableplayer.4.5.0.css';
55+
$js_file = ( $is_production ) ? 'ableplayer.min.js' : 'ableplayer.js';
56+
$css_file = ( $is_production ) ? 'ableplayer.min.css' : 'ableplayer.css';
5757
/**
5858
* Filter the Able Player JS URL.
5959
*
@@ -293,13 +293,15 @@ function able_player_parameters() {
293293
),
294294
);
295295
/**
296-
* Filter the default values, options, and descriptions for all Able Player shortcode parameters.
296+
* Filter the default values, options, and descriptions for all Able Player shortcode parameters. Not used yet in 1.2.0.
297297
*
298298
* @hook ableplayer_parameters
299299
*
300-
* @param {array} $params Array of default parameters.
300+
* @param {array} $params Array of default parameters. The array is a multidimensional array with the shortcode
301+
* attribute as a key with array of `default` value, `description`, available `options`,
302+
*( and alternate `parameter` name if the output isn't `data-{key}`.
301303
*
302-
* @return {array}.
304+
* @return {array} Array of parameters.
303305
*/
304306
return apply_filters( 'ableplayer_default_parameters', $params );
305307
}

0 commit comments

Comments
 (0)