Skip to content

Commit ba61602

Browse files
committed
deploy: 720a75c
1 parent 4c316c9 commit ba61602

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

able_player_css.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ <h5>Parameters:</h5>
157157

158158
<dt class="tag-source">Source:</dt>
159159
<dd class="tag-source"><ul class="dummy"><li>
160-
<a href="ableplayer.php.html">ableplayer.php</a>, <a href="ableplayer.php.html#line77">line 77</a>
160+
<a href="ableplayer.php.html">ableplayer.php</a>, <a href="ableplayer.php.html#line79">line 79</a>
161161
</li></ul></dd>
162162

163163

able_player_js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ <h5>Parameters:</h5>
157157

158158
<dt class="tag-source">Source:</dt>
159159
<dd class="tag-source"><ul class="dummy"><li>
160-
<a href="ableplayer.php.html">ableplayer.php</a>, <a href="ableplayer.php.html#line66">line 66</a>
160+
<a href="ableplayer.php.html">ableplayer.php</a>, <a href="ableplayer.php.html#line68">line 68</a>
161161
</li></ul></dd>
162162

163163

ableplayer.php.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@
7373
* Load styles and scripts to head.
7474
*/
7575
function ableplayer_enqueue_scripts() {
76+
$version = ABLEPLAYER_VERSION;
77+
$version = ( SCRIPT_DEBUG ) ? $version . '-' . wp_rand( 1000,9999 ) : $version;
7678
// Register/enqueue other dependencies.
77-
wp_enqueue_script( 'js-cookie', plugins_url( 'thirdparty', __FILE__ ) . '/js.cookie.js', array( 'jquery' ), ABLEPLAYER_VERSION, true );
78-
wp_enqueue_script( 'vimeo', 'https://player.vimeo.com/api/player.js', array(), ABLEPLAYER_VERSION, true );
79-
wp_register_script( 'ableplayer-video', plugins_url( 'assets', __FILE__ ) . '/js/media.js', array(), ABLEPLAYER_VERSION, true );
79+
wp_enqueue_script( 'js-cookie', plugins_url( 'thirdparty', __FILE__ ) . '/js.cookie.js', array( 'jquery' ), $version, true );
80+
wp_enqueue_script( 'vimeo', 'https://player.vimeo.com/api/player.js', array(), $version, true );
81+
wp_register_script( 'ableplayer-video', plugins_url( 'assets', __FILE__ ) . '/js/media.js', array(), $version, true );
8082
wp_localize_script(
8183
'ableplayer-video',
8284
'ableplayer',
@@ -124,24 +126,26 @@
124126
* @return {array}
125127
*/
126128
$dependencies = apply_filters( 'ableplayer_dependencies', $dependencies, $is_production );
127-
wp_enqueue_script( 'ableplayer', $js_dir, $dependencies, ABLEPLAYER_VERSION, true );
128-
wp_enqueue_style( 'ableplayer', $css_dir, array(), ABLEPLAYER_VERSION );
129+
wp_enqueue_script( 'ableplayer', $js_dir, $dependencies, $version, true );
130+
wp_enqueue_style( 'ableplayer', $css_dir, array(), $version );
129131
}
130132
add_action( 'wp_enqueue_scripts', 'ableplayer_enqueue_scripts' );
131133

132134
/**
133135
* Enqueue admin JS and CSS.
134136
*/
135137
function ableplayer_admin_scripts() {
136-
wp_enqueue_script( 'ableplayer-js', plugins_url( '/assets/js/admin.js', __FILE__ ), array( 'jquery' ), ABLEPLAYER_VERSION, true );
138+
$version = ABLEPLAYER_VERSION;
139+
$version = ( SCRIPT_DEBUG ) ? $version . '-' . wp_rand( 1000,9999 ) : $version;
140+
wp_enqueue_script( 'ableplayer-js', plugins_url( '/assets/js/admin.js', __FILE__ ), array( 'jquery' ), $version, true );
137141
wp_localize_script(
138142
'ableplayer-js',
139143
'ableplayer',
140144
array(
141145
'firstItem' => 'tab_settings',
142146
)
143147
);
144-
wp_enqueue_style( 'ableplayer', plugins_url( '/assets/css/admin.css', __FILE__ ), array(), ABLEPLAYER_VERSION );
148+
wp_enqueue_style( 'ableplayer', plugins_url( '/assets/css/admin.css', __FILE__ ), array(), $version );
145149
}
146150
add_action( 'admin_enqueue_scripts', 'ableplayer_admin_scripts' );
147151

ableplayer_dependencies.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ <h5>Parameters:</h5>
157157

158158
<dt class="tag-source">Source:</dt>
159159
<dd class="tag-source"><ul class="dummy"><li>
160-
<a href="ableplayer.php.html">ableplayer.php</a>, <a href="ableplayer.php.html#line90">line 90</a>
160+
<a href="ableplayer.php.html">ableplayer.php</a>, <a href="ableplayer.php.html#line92">line 92</a>
161161
</li></ul></dd>
162162

163163

ableplayer_parameters.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ <h5>Parameters:</h5>
136136

137137
<dt class="tag-source">Source:</dt>
138138
<dd class="tag-source"><ul class="dummy"><li>
139-
<a href="ableplayer.php.html">ableplayer.php</a>, <a href="ableplayer.php.html#line330">line 330</a>
139+
<a href="ableplayer.php.html">ableplayer.php</a>, <a href="ableplayer.php.html#line334">line 334</a>
140140
</li></ul></dd>
141141

142142

0 commit comments

Comments
 (0)