Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#53749 closed defect (bug) (reported-upstream)

Double copying

Reported by: arskrigitsioniets's profile arskrigitsioniets Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.8
Component: Editor Keywords: needs-testing
Focuses: Cc:

Description (last modified by sabernhardt)

When I copy a post with specific content and then enter it into a new post, I get content duplicated. The problem appeared after 5.8 update.

How to reproduce:

  1. Paste the following code in your editor, you will get it duplicated for some reason.
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:image {"id":26642,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://strategycon.ru/wp-content/uploads/2021/06/no-image-1.jpg" alt="" class="wp-image-26642"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p><strong>Дата выхода:</strong><br><strong>Разработчик:</strong><br><strong>Издатель:</strong><br><strong>Платформы:</strong> Windows, macOS, Linux, PlayStation 4, Xbox One, Nintendo Switch, Android, iOS, Browser<br><strong>Жанр:</strong><br><strong>Русский язык:</strong> <span style="color:#008000" class="has-inline-color">присутствует</span> <span class="has-inline-color has-vivid-red-color">отсутствует</span></p>
<!-- /wp:paragraph -->

<!-- wp:group -->
<div class="wp-block-group"><!-- wp:heading {"level":6} -->
<h6>ОФИЦИАЛЬНЫЕ ИСТОЧНИКИ РАЗРАБОТЧИКОВ:</h6>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>Официальный сайт</li><li>Официальный форум</li><li>Facebook</li><li>Twitter</li><li>YouTube</li><li>Instagram</li><li>VK</li><li>Discord</li><li>Reddit</li><li>Twitch</li><li>Kickstarter</li></ul>
<!-- /wp:list --></div>
<!-- /wp:group -->

<!-- wp:heading {"level":6} -->
<h6>КУПИТЬ И СКАЧАТЬ:</h6>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>Steam</li><li>Epic Games Store</li><li>GOG</li><li>Google Play</li><li>App Store</li><li>Microsoft Store</li><li>PlayStation Store</li><li>Nintendo eShop</li></ul>
<!-- /wp:list --></div>
<!-- /wp:column -->

<!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:block {"ref":8784} /-->

<!-- wp:block {"ref":16185} /-->

<!-- wp:html -->
<div class="block-as-link">
   <a href="https://strategycon.ru/tag/spaceland/"><i class="far fa-file-alt"></i>&nbsp;НОВОСТИ ИГРЫ</a>
  </div>
<!-- /wp:html -->

<!-- wp:html -->
<div class="block-as-link-developers">
   <a href="https://strategycon.ru/tag/astra-exodus-dd/"><i class="far fa-file-alt"></i>&nbsp;ДНЕВНИКИ РАЗРАБОТЧИКОВ</a>
  </div>
<!-- /wp:html -->

<!-- wp:block {"ref":8863} /-->

<!-- wp:shortcode -->
[display-posts tag="flotsam" include_date="true" date_format="j F, Y" posts_per_page="4" no_posts_message="Пока что ничего нет" image_size="medium" wrapper_class="dp-with-images-list"]
<!-- /wp:shortcode -->

<!-- wp:heading {"level":5} -->
<h5>Описание на русском</h5>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Описания ещё нет.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:block {"ref":19142} /-->

<!-- wp:table {"hasFixedLayout":true} -->
<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th class="has-text-align-left" data-align="left">Название</th><th class="has-text-align-left" data-align="left">Дата выхода</th><th class="has-text-align-left" data-align="left">Описание</th></tr></thead><tbody><tr><td class="has-text-align-left" data-align="left">Название<br><a href="https://store.steampowered.com/app/1300851/112_Operator__Facilities/" target="_blank" rel="noreferrer noopener">Steam</a></td><td class="has-text-align-left" data-align="left">01/01/1900</td><td class="has-text-align-left" data-align="left"></td></tr><tr><td class="has-text-align-left" data-align="left"></td><td class="has-text-align-left" data-align="left"></td><td class="has-text-align-left" data-align="left"></td></tr><tr><td class="has-text-align-left" data-align="left"></td><td class="has-text-align-left" data-align="left"></td><td class="has-text-align-left" data-align="left"></td></tr></tbody></table><figcaption><em>Перечислены только платные контентные дополнения – без учёта внеигровых саундтреков, апгрейдов до особых изданий, цифровых артбуков, изначально бесплатных дополнений и других подобных материалов.</em></figcaption></figure>
<!-- /wp:table -->

<!-- wp:block {"ref":22875} /-->

<!-- wp:embed {"url":"https://www.youtube.com/watch?v=HOgqlqXM5kY","type":"video","providerNameSlug":"youtube","responsive":true,"className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://www.youtube.com/watch?v=HOgqlqXM5kY
</div></figure>
<!-- /wp:embed -->

<!-- wp:block {"ref":8757} /-->

Change History (8)

#1 @arskrigitsioniets
3 years ago

For some reason, the code, copied from here, doesn't turn out to article.

You can download it in .txt and copy from there if you have such a problem with replication: https://drive.google.com/file/d/1ce3lj68dJMb_Q04aqJ9vkx4h2J8nPHR1/view?usp=sharing

#2 @sabernhardt
3 years ago

  • Description modified (diff)
  • Summary changed from Double coping to Double copying

#3 @hellofromTonya
3 years ago

  • Keywords reporter-feedback added

Hello @arskrigitsioniets,

Welcome back to WordPress Core Trac!

Can you share the contents of the .txt in a service like Pastebin or Gist please? Why? Requesting access to view the Google Doc requires a contributor to share their email whereas with a service like Pastebin or Gist, the content is readily available for any contributor to copy and use.

Please share additional information to help contributors investigate and attempt to reproduce the issue:

  • What are the step-by-step instructions to reproduce the problem? For example, create a new post, copy content from , paste into the new post, etc. Knowing these exact steps helps contributors follow those steps to reproduce it.
  • Is the entire article duplicated or only part of it? (screen capture video or images can help)
  • What plugins are activated?
  • What theme is used?
  • Are there any errors or notifications?

#4 @arskrigitsioniets
3 years ago

Can you share the contents of the .txt in a service like Pastebin or Gist please?

https://pastebin.com/AvAWNgQc

What are the step-by-step instructions to reproduce the problem? For example, create a new post, copy content from , paste into the new post, etc. Knowing these exact steps helps contributors follow those steps to reproduce it.

Video: https://youtu.be/uNmwjgyrFs4

  1. Open "All pages", find my template page (usual page with content), and copy all content.
  2. Open "Create new page"
  3. Paste content via Ctrl+V

Is the entire article duplicated or only part of it? (screen capture video or images can help)
The entire article is duplicated

What plugins are activated?
There is a shortcode from https://ru.wordpress.org/plugins/display-posts-shortcode/, but the fact is I can replicate it even on clean WP, if I paste this content. Just this content contains a shortcode from that plugin.

What theme is used?
https://ru.wordpress.org/themes/hueman/], but I also can replicate it on default Twenty Twenty One.

Are there any errors or notifications?
No

Last edited 3 years ago by arskrigitsioniets (previous) (diff)

This ticket was mentioned in Slack in #core-test by hellofromtonya. View the logs.


3 years ago

#6 @hellofromTonya
3 years ago

  • Keywords needs-testing added; reporter-feedback removed

Marking needs-testing to attempt reproducing and providing a testing report for further investigation. Discussing in the Test triage session (see here in Slack).

#7 @skorasaurus
3 years ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

Hi,

Thanks for reporting. This appears to be an issue that is already reported at https://github.com/WordPress/gutenberg/issues/34177

You can follow its progress there.

#8 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.