Skip to content

Commit 4bc267b

Browse files
committed
deploy: b008611
1 parent b41d1a6 commit 4bc267b

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

ableplayer.php.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
* License: MIT
4343
* License URI: https://github.com/ableplayer/ableplayer-wordpress/blob/master/LICENSE
4444
* Domain Path: lang
45-
* Version: 1.2
45+
* Version: 1.2.0
4646
*/
4747

4848
// Configure debugging mode.
4949
define( 'ABLEPLAYER_DEBUG', false );
5050

5151
// Get current version number.
52-
define( 'ABLEPLAYER_VERSION', '1.2' );
52+
define( 'ABLEPLAYER_VERSION', '1.2.0' );
5353

5454
register_activation_hook( __FILE__, 'ableplayer_activation' );
5555
/**
@@ -78,8 +78,8 @@
7878
// if the environment is production, use minified files. Otherwise, inherit the value of SCRIPT_DEBUG.
7979
$is_production = ( function_exists( 'wp_get_environment_type' ) && wp_get_environment_type() === 'production' ) ? true : SCRIPT_DEBUG;
8080

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';
8383
/**
8484
* Filter the Able Player JS URL.
8585
*
@@ -319,13 +319,15 @@
319319
),
320320
);
321321
/**
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.
323323
*
324324
* @hook ableplayer_parameters
325325
*
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}`.
327329
*
328-
* @return {array}.
330+
* @return {array} Array of parameters.
329331
*/
330332
return apply_filters( 'ableplayer_default_parameters', $params );
331333
}

ableplayer_parameters.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h4 class="name" id="ableplayer_parameters">apply_filters( 'ableplayer_parameter
4343

4444

4545
<div class="description">
46-
<p>Filter the default values, options, and descriptions for all Able Player shortcode parameters.</p>
46+
<p>Filter the default values, options, and descriptions for all Able Player shortcode parameters. Not used yet in 1.2.0.</p>
4747
</div>
4848

4949

@@ -93,7 +93,9 @@ <h5>Parameters:</h5>
9393

9494

9595

96-
<td class="description last"><p>Array of default parameters.</p></td>
96+
<td class="description last"><p>Array of default parameters. The array is a multidimensional array with the shortcode
97+
attribute as a key with array of <code>default</code> value, <code>description</code>, available <code>options</code>,
98+
( and alternate <code>parameter</code> name if the output isn't <code>data-{key}</code>.</p></td>
9799
</tr>
98100

99101

@@ -161,7 +163,7 @@ <h5>Returns:</h5>
161163

162164

163165
<div class="param-desc">
164-
<p>.</p>
166+
<p>Array of parameters.</p>
165167
</div>
166168

167169

0 commit comments

Comments
 (0)