Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/18/2021 05:35:00 AM (5 years ago)
Author:
johnjamesjacoby
Message:

Users: Improve UX of form-user-passwords.php template part.

This change makes sure that the "Generate Password" UI is hidden by default if the browser has JavaScript enabled, and that the traditional UI is visible if JavaScript is not enabled.

It also includes the following related improvements:

  • Introduce bbp_doing_script_debug() and bbp_doing_autosave() helpers, and use them where needed
  • Introduce bbp_asset_version() and bbp_get_asset_version() to bust asset cache when debugging
  • Update forum-user-passwords.php template part to swap out body class and add missing element ID
  • Update password form styling in bbpress.css default theme compat CSS

In trunk for 2.7.0. Fixes #3421.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/template-functions.php

    r7076 r7190  
    141141
    142142    // Are we debugging?
    143     $script_debug = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG;
     143    $script_debug = bbp_doing_script_debug();
    144144
    145145    // Debugging, so prefer unminified files
     
    218218        // Make sure there is always a version
    219219        if ( empty( $ver ) ) {
    220             $ver = bbp_get_version();
     220            $ver = bbp_get_asset_version();
    221221        }
    222222
     
    262262        // Make sure there is always a version
    263263        if ( empty( $ver ) ) {
    264             $ver = bbp_get_version();
     264            $ver = bbp_get_asset_version();
    265265        }
    266266
Note: See TracChangeset for help on using the changeset viewer.