Changes between Initial Version and Version 1 of Ticket #63897, comment 10
- Timestamp:
- 09/02/2025 09:09:42 AM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #63897, comment 10
initial v1 4 4 > 5 5 @siliconforks Thank you for pointing this out. To avoid the unnecessary AJAX requests on pages where the password field is not present, we could wrap the AJAX call in a simple condition. For example: 6 {{{#! php6 {{{#!js 7 7 if ( $( '.wp-generate-pw' ).length ) { 8 8 wp.ajax.post( 'generate-password' )