Skip to content

Commit 5d8071d

Browse files
author
Md. Alimuzzaman Alim
committed
Issue #278
1 parent 7cff367 commit 5d8071d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

static/views/settings_interface.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,20 @@
202202
<hr>
203203
<h4><?php _e( 'Cache-Busting', ud_get_stateless_media()->domain ); ?></h4>
204204
<p>
205-
<select id="cache_busting" name="sm[hashify_file_name]" ng-model="sm.hashify_file_name" ng-change="sm.generatePreviewUrl()" ng-disabled="sm.readonly.hashify_file_name">
205+
<select id="cache_busting" name="sm[hashify_file_name]" ng-model="sm.hashify_file_name" ng-change="sm.generatePreviewUrl()" ng-disabled="sm.readonly.hashify_file_name || sm.mode == 'stateless'">
206206
<?php if(is_network_admin()): ?>
207207
<option value=""><?php _e( 'Don\'t override', ud_get_stateless_media()->domain ); ?></option>
208208
<?php endif; ?>
209209
<option value="true"><?php _e( 'Enable', ud_get_stateless_media()->domain ); ?></option>
210210
<option value="false"><?php _e( 'Disable', ud_get_stateless_media()->domain ); ?></option>
211211
</select>
212212
</p>
213-
<p class="description"><strong ng-bind="sm.showNotice('hashify_file_name')" ></strong> <?php _e( 'Prepends a random set of numbers and letters to the filename. This is useful for preventing caching issues when uploading files that have the same filename.', ud_get_stateless_media()->domain ); ?></p>
213+
<p class="description"><strong ng-bind="sm.showNotice('hashify_file_name')" ></strong>
214+
<span ng-show="sm.mode == 'stateless'">
215+
<?php _e(sprintf( "<b>Required by Stateless Mode. Override with the <a href='%s' target='_blank'>WP_STATELESS_MEDIA_CACHE_CONTROL</a> constant.</b>","https://github.com/wpCloud/wp-stateless/wiki/Constants#wp_stateless_media_cache_control"), ud_get_stateless_media()->domain);?>
216+
</span>
217+
218+
<?php _e( 'Prepends a random set of numbers and letters to the filename. This is useful for preventing caching issues when uploading files that have the same filename.', ud_get_stateless_media()->domain ); ?></p>
214219
</fieldset>
215220
</td>
216221
</tr>

0 commit comments

Comments
 (0)