Make WordPress Core


Ignore:
Timestamp:
03/13/2024 10:42:32 AM (9 months 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.

Reviewed by gziolo, swissspidy.
Merges [57824] to the to the 6.5 branch.

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

Location:
branches/6.5
Files:
2 edited

Legend:

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