وردپرس

[Possible Duplicate] Editing highlighted link adds additional link.


This may be a duplicate ticket as I believe the issue is being addressed internally here:
https://github.com/Yoast/wordpress-seo/issues/21052

To Reproduce Step-by-step reproduction instructions

  1. Install and activate Yoast SEO latest version and use a default WP theme
  2. Create a new post and add a link/anchor text to content in the post that has at least two words (e.g. Yoast SEO)
  3. Highlight (very specific step, don’t just click on the link) the anchor text, click on the pencil icon, and change the link url. Press enter to save the new link value.
  4. Inspect the newly edited link in the DOM and you’ll see a new link containing the last character of the original.

Expected results

  1. That the anchor text or link would still be in one single a element.

Actual results

  1. The links are split into two link elements. One link element has the update url, the other does not.

Screenshots, screen recording, code snippet

The html initially is like this:


This is the header text

and becomes (when editing the link and adding ‘-test’ the end)

This is the header tex
t

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا