wp-help icon indicating copy to clipboard operation
wp-help copied to clipboard

Documentation Truncated after Sync in Rare Cases

Open mrwweb opened this issue 4 years ago • 3 comments

I ran into a new problem today that I've never seen. On a synced help document, a majority of the content was removed. After a bunch of experimentation, I narrowed it down to an issue with the link replacement during the slurp process. I was unable to see exactly what content was creating the issue and in a rush, so for now, I simply removed all links to other help pages on that page to solve the issue. However, I hope to figure out more later, and I want to post this here in case other people have had similar issues.

Related:

  • https://wordpress.org/support/topic/sync-pull-breaking-at-links/ (My example also had internal links, through removing them didn't seem to resolve the problem.)

mrwweb avatar Oct 10 '19 19:10 mrwweb

A brief update: After some testing today, I think this issue affects any page that

  1. Includes an internal documentation link to another help page
  2. Has a "#" character anywhere following that link

mrwweb avatar Nov 04 '19 22:11 mrwweb

Oy, that’s an interesting one. Nice work narrowing down the case. That should help in finding the culprit.

markjaquith avatar Nov 07 '19 04:11 markjaquith

Todo:

  • [ ] Make the functions more functional
  • [ ] Write unit tests for them
  • [ ] Develop a failing unit test
  • [ ] Fix it

markjaquith avatar Nov 08 '19 00:11 markjaquith