-
Notifications
You must be signed in to change notification settings - Fork 841
Labels
Triaged[Feature] Copy a Post[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Pri] Low[Status] Auto-allocated[Type] BugWhen a feature is broken and / or not performing as intendedWhen a feature is broken and / or not performing as intended
Description
Impacted plugin
Jetpack
Quick summary
The "copy post" or "duplicate post" functionality may incorrectly strip the \ character from post content.
This affected character is U+005C Reverse Solidus character or "backslash."
Steps to reproduce
-
Create a post with content like this:
<!-- wp:code --> <pre class="wp-block-code"><code>\t is a tab</code></pre> <!-- /wp:code -->
That is a Code block with the text
\t is a tab. -
Save the post.
-
From the post edit view, click "Duplicate" on the post.
-
A post is created where the text is now
t is a tab:<!-- wp:code --> <pre class="wp-block-code"><code>t is a tab</code></pre> <!-- /wp:code -->
<!-- wp:code -->
-<pre class="wp-block-code"><code>\t is a tab</code></pre>
+<pre class="wp-block-code"><code>t is a tab</code></pre>
<!-- /wp:code -->This seems to happen regularly with the \ character:
\t->t\n->n\f->f\\->\\9->9\->(space)
Note
The reproduction uses a Code block because it's easy to see the characters, but this seems to happen on any content. Text in a Paragraph block will also be affected.
Site owner impact
Fewer than 20% of the total website/platform users
Severity
Minor
What other impact(s) does this issue have?
No response
If a workaround is available, please outline it here.
No response
Platform (Simple and/or Atomic)
No response
Copilot
Metadata
Metadata
Assignees
Labels
Triaged[Feature] Copy a Post[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Pri] Low[Status] Auto-allocated[Type] BugWhen a feature is broken and / or not performing as intendedWhen a feature is broken and / or not performing as intended
Type
Projects
Status
Triage