|
16 | 16 | * License: MIT |
17 | 17 | * License URI: https://github.com/ableplayer/ableplayer-wordpress/blob/master/LICENSE |
18 | 18 | * Domain Path: lang |
19 | | - * Version: 1.2 |
| 19 | + * Version: 1.2.0 |
20 | 20 | */ |
21 | 21 |
|
22 | 22 | // Configure debugging mode. |
23 | 23 | define( 'ABLEPLAYER_DEBUG', false ); |
24 | 24 |
|
25 | 25 | // Get current version number. |
26 | | -define( 'ABLEPLAYER_VERSION', '1.2' ); |
| 26 | +define( 'ABLEPLAYER_VERSION', '1.2.0' ); |
27 | 27 |
|
28 | 28 | register_activation_hook( __FILE__, 'ableplayer_activation' ); |
29 | 29 | /** |
@@ -52,8 +52,8 @@ function ableplayer_enqueue_scripts() { |
52 | 52 | // if the environment is production, use minified files. Otherwise, inherit the value of SCRIPT_DEBUG. |
53 | 53 | $is_production = ( function_exists( 'wp_get_environment_type' ) && wp_get_environment_type() === 'production' ) ? true : SCRIPT_DEBUG; |
54 | 54 |
|
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'; |
57 | 57 | /** |
58 | 58 | * Filter the Able Player JS URL. |
59 | 59 | * |
@@ -293,13 +293,15 @@ function able_player_parameters() { |
293 | 293 | ), |
294 | 294 | ); |
295 | 295 | /** |
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. |
297 | 297 | * |
298 | 298 | * @hook ableplayer_parameters |
299 | 299 | * |
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}`. |
301 | 303 | * |
302 | | - * @return {array}. |
| 304 | + * @return {array} Array of parameters. |
303 | 305 | */ |
304 | 306 | return apply_filters( 'ableplayer_default_parameters', $params ); |
305 | 307 | } |
|
0 commit comments