Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #63897, comment 10


Ignore:
Timestamp:
09/02/2025 09:09:42 AM (6 months ago)
Author:
taninakond
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63897, comment 10

    initial v1  
    44>
    55@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 {{{#!php
     6{{{#!js
    77if ( $( '.wp-generate-pw' ).length ) {
    88    wp.ajax.post( 'generate-password' )