wp-help
wp-help copied to clipboard
Documentation Truncated after Sync in Rare Cases
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.)
A brief update: After some testing today, I think this issue affects any page that
- Includes an internal documentation link to another help page
- Has a "#" character anywhere following that link
Oy, that’s an interesting one. Nice work narrowing down the case. That should help in finding the culprit.
Todo:
- [ ] Make the functions more functional
- [ ] Write unit tests for them
- [ ] Develop a failing unit test
- [ ] Fix it