|
42 | 42 | * License: MIT |
43 | 43 | * License URI: https://github.com/ableplayer/ableplayer-wordpress/blob/master/LICENSE |
44 | 44 | * Domain Path: lang |
45 | | - * Version: 1.2 |
| 45 | + * Version: 1.2.0 |
46 | 46 | */ |
47 | 47 |
|
48 | 48 | // Configure debugging mode. |
49 | 49 | define( 'ABLEPLAYER_DEBUG', false ); |
50 | 50 |
|
51 | 51 | // Get current version number. |
52 | | -define( 'ABLEPLAYER_VERSION', '1.2' ); |
| 52 | +define( 'ABLEPLAYER_VERSION', '1.2.0' ); |
53 | 53 |
|
54 | 54 | register_activation_hook( __FILE__, 'ableplayer_activation' ); |
55 | 55 | /** |
|
78 | 78 | // if the environment is production, use minified files. Otherwise, inherit the value of SCRIPT_DEBUG. |
79 | 79 | $is_production = ( function_exists( 'wp_get_environment_type' ) && wp_get_environment_type() === 'production' ) ? true : SCRIPT_DEBUG; |
80 | 80 |
|
81 | | - $js_file = ( $is_production ) ? 'ableplayer.min.4.5.0.js' : 'ableplayer.4.5.0.js'; |
82 | | - $css_file = ( $is_production ) ? 'ableplayer.min.4.5.0.css' : 'ableplayer.4.5.0.css'; |
| 81 | + $js_file = ( $is_production ) ? 'ableplayer.min.js' : 'ableplayer.js'; |
| 82 | + $css_file = ( $is_production ) ? 'ableplayer.min.css' : 'ableplayer.css'; |
83 | 83 | /** |
84 | 84 | * Filter the Able Player JS URL. |
85 | 85 | * |
|
319 | 319 | ), |
320 | 320 | ); |
321 | 321 | /** |
322 | | - * Filter the default values, options, and descriptions for all Able Player shortcode parameters. |
| 322 | + * Filter the default values, options, and descriptions for all Able Player shortcode parameters. Not used yet in 1.2.0. |
323 | 323 | * |
324 | 324 | * @hook ableplayer_parameters |
325 | 325 | * |
326 | | - * @param {array} $params Array of default parameters. |
| 326 | + * @param {array} $params Array of default parameters. The array is a multidimensional array with the shortcode |
| 327 | + * attribute as a key with array of `default` value, `description`, available `options`, |
| 328 | + *( and alternate `parameter` name if the output isn't `data-{key}`. |
327 | 329 | * |
328 | | - * @return {array}. |
| 330 | + * @return {array} Array of parameters. |
329 | 331 | */ |
330 | 332 | return apply_filters( 'ableplayer_default_parameters', $params ); |
331 | 333 | } |
|
0 commit comments