Make WordPress Core

Changeset 57824 for trunk


Ignore:
Timestamp:
03/13/2024 10:39:54 AM (5 weeks ago)
Author:
swissspidy
Message:

Interactivity API: Do not process directives when there aren’t any.

Short-circuits directive processing when the markup does not actually contain any data-wp-* attributes.
This reduces function calls and memory usage for the best case scenario due to not involving WP_HTML_Tag_Processor.

Props joemcgill, swissspidy, gziolo, cbravobernal, flixos90.
Fixes #60749.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.