core icon indicating copy to clipboard operation
core copied to clipboard

Duplicate _tr_nonce_form id's

Open DrYurets opened this issue 5 years ago • 1 comments

Hello. WP 5.7, TypeRocket 5 If there are two forms on the same page, the form field id="_tr_nonce_form" are duplicated and a warning appears in the browser console:

[DOM] Found 2 elements with non-unique id #_tr_nonce_form: (More info: https://goo.gl/9p2vKq) <input type=​"hidden" id=​"_tr_nonce_form" name=​"_tr_nonce_form" value=​"e571642ca6">​

How can you specify a separate ID for each of the generated nonce_fields?

DrYurets avatar Mar 16 '21 13:03 DrYurets

Hey @DrYurets

This is not a big deal. The input fields using the ID all have the same value so this should not cause any bugs.

Thanks, Kevin

kevindees avatar Mar 16 '21 18:03 kevindees