Last word of dynamic excerpt is being cropped

Description:

When adding an excerpt using the dynamic inserter the last word is being removed.

Step-by-step reproduction instructions:

  1. Open the Site Editor
  2. Add a template for a post type (e.g. Page)
  3. Add a paragraph and use the dynamic inserter to add the post excerpt
  4. Open the Page editor
  5. Create a page with a page excerpt (having added: add_post_type_support( 'page' , 'excerpt' ); or equivalent to your website scripts)
  6. Assign the previously created template to the page you have just created
  7. Note that when viewing the page in the front end, the last word of the excerpt is always missing

Screenshots, screen recording, code snippet

If you have an excerpt of “One, two, three.” It will show as “One, two”. If you have one as “One, two, three, four.” it will show as “One, two, three”. If you have one as “One …”, it will show as “One”.

Environment info

  • WordPress version: 6,.2.2
  • Gutenberg Plugin version: -
  • Cwicly Plugin version: 1.2.9.6.1.2
  • Cwicly Theme version: 1.0.3

Hello @StrangeTech,

Thank you for the report and step-by-step instructions.
We pushed a fix in 1.2.9.7 that should resolve this.

If you still encounter trouble, I’d be grateful if you could let me know by replying to this thread.

Thanks in advance.

Cheers,

Wow, thank you @Louis for the swift fix. I will test this tomorrow morning.