Making WordPress.org

Changeset 12868


Ignore:
Timestamp:
08/29/2023 08:07:20 PM (2 years ago)
Author:
coffee2code
Message:

Photo Directory, Flagged: Fix JS to check that an item is an HTML element.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/flagged.php

    r12782 r12868  
    378378                // Function to check if a new node is the Quick Edit or Bulk Edit form
    379379                function checkNewNode(target) {
    380                     if (target.classList.contains('inline-edit-<?php echo Registrations::get_post_type(); ?>') || target.id === 'bulk-edit') {
     380                    if (target instanceof HTMLElement && (target.classList.contains('inline-edit-<?php echo Registrations::get_post_type(); ?>') || target.id === 'bulk-edit')) {
    381381                        addNewStatus(target);
    382382                    }
Note: See TracChangeset for help on using the changeset viewer.