We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8141ad4 commit 281044cCopy full SHA for 281044c
src/js/_enqueues/admin/common.js
@@ -2361,8 +2361,8 @@ $( function( $ ) {
2361
(function($){
2362
const usersForm = document.querySelector( '.users-php .delete-and-reassign-users-form' );
2363
2364
- // Check if the form contains any radio buttons.
2365
- if ( ! usersForm.querySelector( 'input[type="radio"]' ) ) {
+ // Check if the form exists and contains any radio buttons.
+ if ( ! usersForm || ! usersForm.querySelector( 'input[type="radio"]' ) ) {
2366
return;
2367
}
2368
0 commit comments