Skip to content

Conversation

@dmsnell
Copy link
Member

@dmsnell dmsnell commented Sep 11, 2025

Trac ticket: Core-63694
See: #9270, (#9850), #9851

@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch 2 times, most recently from 26885cf to f2edace Compare September 11, 2025 22:24
@github-actions
Copy link

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch 8 times, most recently from 8ab87ff to 24abf90 Compare September 18, 2025 19:59
@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch 5 times, most recently from 609f46a to 4ee95a3 Compare September 25, 2025 18:47
@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch 5 times, most recently from ff2d2d3 to 5bd7239 Compare October 6, 2025 21:18
@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch 4 times, most recently from 754e60d to 80345e7 Compare October 9, 2025 23:39
@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch 3 times, most recently from bdfa35e to 51d9e33 Compare October 21, 2025 09:04
@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch from 51d9e33 to b1c8dca Compare October 21, 2025 09:23
@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch from b1c8dca to 72c2904 Compare November 24, 2025 20:25
Trac ticket: Core-63694

This probably improves the performance in terms of both CPU time and
memory compared to the old PCRE-based approach.
Was detecting a non-escaped `<` as the start of an “element” and
then replaced a newline in the text as `<!-- wpnl -->` since it
thought it was replacing inside a tag. In the end that translated
into a raw `\n` again in the end.
@dmsnell dmsnell force-pushed the html-api/refactor-wp-replace-in-html-tags branch from 72c2904 to 638e665 Compare December 18, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant