Changeset 7190
- Timestamp:
- 02/18/2021 05:35:00 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/classes/class-bbp-admin.php
r7088 r7190 816 816 // RTL and/or minified 817 817 $suffix = is_rtl() ? '-rtl' : ''; 818 $suffix .= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG? '' : '.min';818 $suffix .= bbp_doing_script_debug() ? '' : '.min'; 819 819 820 820 // Get the version to use for JS 821 $version = bbp_get_ version();821 $version = bbp_get_asset_version(); 822 822 823 823 // Register admin CSS with dashicons dependency … … 860 860 861 861 // Minified 862 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG? '' : '.min';862 $suffix = bbp_doing_script_debug() ? '' : '.min'; 863 863 864 864 // Get the version to use for JS 865 $version = bbp_get_ version();865 $version = bbp_get_asset_version(); 866 866 867 867 // Header JS -
trunk/src/includes/admin/forums.php
r7084 r7190 296 296 297 297 // Bail if doing an autosave 298 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE) {298 if ( bbp_doing_autosave() ) { 299 299 return $forum_id; 300 300 } -
trunk/src/includes/admin/replies.php
r7006 r7190 390 390 391 391 // Bail if doing an autosave 392 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE) {392 if ( bbp_doing_autosave() ) { 393 393 return $reply_id; 394 394 } -
trunk/src/includes/admin/topics.php
r7006 r7190 509 509 510 510 // Bail if doing an autosave 511 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE) {511 if ( bbp_doing_autosave() ) { 512 512 return $topic_id; 513 513 } -
trunk/src/includes/common/template.php
r7076 r7190 968 968 function bbp_body_class( $wp_classes, $custom_classes = false ) { 969 969 970 $bbp_classes = array(); 970 // Default classes 971 $bbp_classes = array( 'no-js' ); 971 972 972 973 /** Archives **************************************************************/ -
trunk/src/includes/core/functions.php
r6930 r7190 33 33 34 34 /** 35 * Output the bbPress asset version 36 * 37 * @since 2.6.7 bbPress (r7188) 38 */ 39 function bbp_asset_version() { 40 echo bbp_get_asset_version(); 41 } 42 /** 43 * Return the bbPress asset version 44 * 45 * @since 2.6.7 bbPress (r7188) 46 * 47 * @retrun string The bbPress asset version 48 */ 49 function bbp_get_asset_version() { 50 return bbp_doing_script_debug() 51 ? (string) time() 52 : bbp_get_version(); 53 } 54 55 /** 35 56 * Output the bbPress database version 36 57 * … … 656 677 exit(); 657 678 } 679 680 /** Global Helpers ************************************************************/ 681 682 /** 683 * Return if debugging scripts or not 684 * 685 * @since 2.6.7 (r7188) 686 * 687 * @return bool True if debugging scripts. False if not debugging scripts. 688 */ 689 function bbp_doing_script_debug() { 690 return defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG; 691 } 692 693 /** 694 * Return if auto-saving or not 695 * 696 * @since 2.6.7 (r7188) 697 * 698 * @return bool True if mid auto-save. False if not mid auto-save. 699 */ 700 function bbp_doing_autosave() { 701 return defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE; 702 } -
trunk/src/includes/core/template-functions.php
r7076 r7190 141 141 142 142 // Are we debugging? 143 $script_debug = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG;143 $script_debug = bbp_doing_script_debug(); 144 144 145 145 // Debugging, so prefer unminified files … … 218 218 // Make sure there is always a version 219 219 if ( empty( $ver ) ) { 220 $ver = bbp_get_ version();220 $ver = bbp_get_asset_version(); 221 221 } 222 222 … … 262 262 // Make sure there is always a version 263 263 if ( empty( $ver ) ) { 264 $ver = bbp_get_ version();264 $ver = bbp_get_asset_version(); 265 265 } 266 266 -
trunk/src/templates/default/bbpress-functions.php
r6985 r7190 47 47 'id' => 'default', 48 48 'name' => 'bbPress Default', 49 'version' => bbp_get_ version(),49 'version' => bbp_get_asset_version(), 50 50 'dir' => trailingslashit( bbpress()->themes_dir . 'default' ), 51 51 'url' => trailingslashit( bbpress()->themes_url . 'default' ), -
trunk/src/templates/default/bbpress/form-user-passwords.php
r6558 r7190 13 13 // Filters the display of the password fields 14 14 if ( apply_filters( 'show_password_fields', true, bbpress()->displayed_user ) ) : ?> 15 16 <script type="text/javascript"> 17 document.body.className = document.body.className.replace( 'no-js', 'js' ); 18 </script> 15 19 16 20 <div id="password" class="user-pass1-wrap"> … … 45 49 <div class="pw-weak"> 46 50 <label for="pw_weak"><?php esc_html_e( 'Confirm', 'bbpress' ); ?></label> 47 <input type="checkbox" name="pw_weak" class="pw-checkbox checkbox" />51 <input type="checkbox" name="pw_weak" id="pw_weak" class="pw-checkbox checkbox" /> 48 52 <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p> 49 53 </div> -
trunk/src/templates/default/css/bbpress.css
r7053 r7190 10 10 11 11 .hidden, 12 .no-js .hide-if-no-js, 12 13 .js .hide-if-js { 13 14 display: none; … … 734 735 /* Try to prevent untall selects & text boxes */ 735 736 #bbpress-forums fieldset.bbp-form select, 736 #bbpress-forums fieldset.bbp-form input[type="text"] { 737 #bbpress-forums fieldset.bbp-form input[type="text"], 738 #bbpress-forums fieldset.bbp-form input[type="password"] { 737 739 min-height: 28px; 738 740 height: 28px; … … 971 973 #bbpress-forums #bbp-your-profile fieldset fieldset.password { 972 974 width: 60%; 973 display: inline; 975 margin-left: 20%; 976 margin-top: 10px; 974 977 } 975 978 … … 1042 1045 } 1043 1046 1044 #bbpress-forums #password #pass1.bad,1047 #bbpress-forums #password #pass1.bad, 1045 1048 #bbpress-forums #password #pass1-text.bad { 1046 1049 border-color: #f78b53;
Note: See TracChangeset
for help on using the changeset viewer.