Make WordPress Core

Opened 2 months ago

Closed 2 months ago

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

The 'Read more' hyperlink text in the 'Latest Posts' block renders differently on the site

Reported by: shraddhagore's profile shraddhagore Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Editor Keywords:
Focuses: Cc:

Description

Bug Report

Description

In the editor, the excerpt displays a 'Read More' hyperlink text, while on the site, it shows a 'Continue Reading' hyperlink text.

Environment

  • WordPress: 6.8-alpha-59840
  • PHP: 7.4.29
  • Server: Apache
  • Database: mysqli (Server: 10.1.48-MariaDB-0ubuntu0.18.04.1 / Client: mysqlnd 7.4.29)
  • Browser: Chrome 133.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-One 2.4
  • MU Plugins:
    • 000-qs-loader.php
  • Plugins:
    • Test Reports 1.2.0

Steps to Reproduce

  1. Apply the 'Twenty Twenty-One' theme.
  2. Create lengthy posts.
  3. Add the 'Latest Posts' block to any page.
  4. Check discrepancies on the editor and site.

Expected Results

  1. The hyperlink text should be same on editor and on site.

Actual Results

  • Hyperlink Text (Editor): Read more
  • Hyperlink Text (Site): Continue reading

Supplemental Artifacts

Attachments (5)

editor.png (156.4 KB) - added by shraddhagore 2 months ago.
site.png (124.0 KB) - added by shraddhagore 2 months ago.
62993.patch (725 bytes) - added by viralsampat 2 months ago.
I have checked above mentioned issue and I have resolved it and added patch. Also, I have attached screenshot after resolved this issue.
latest-post-block-editor.png (231.1 KB) - added by viralsampat 2 months ago.
Editor-end
latest-post-block-front-end.png (262.5 KB) - added by viralsampat 2 months ago.
Front-end:

Download all attachments as: .zip

Change History (7)

@shraddhagore
2 months ago

@shraddhagore
2 months ago

@viralsampat
2 months ago

I have checked above mentioned issue and I have resolved it and added patch. Also, I have attached screenshot after resolved this issue.

@viralsampat
2 months ago

Editor-end

#1 @viralsampat
2 months ago

Hello @shraddhagore

Thank you so much for posting this issue.

I have worked on it and added my patch. Also, I have attached its screenshots for reference.


Patch: https://core.trac.wordpress.org/attachment/ticket/62993/62993.patch


Environment

WordPress: 6.7.2 running
Theme: Twenty Twenty-one, 2.4
Browser: Google Chrome, Version 133.0.6943.98 (Official Build) (arm64)
Device: MacBook Air M1
OS: macOS 15.3.1 (24D70)
Gutenberg plugin: Version Version 20.3.0


Screenshots
Editor: https://core.trac.wordpress.org/attachment/ticket/62993/latest-post-block-editor.png

Front-end: https://core.trac.wordpress.org/attachment/ticket/62993/latest-post-block-front-end.png

Thanks,

#2 @sabernhardt
2 months ago

  • Component changed from Themes to Editor
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
  • Summary changed from Twenty Twenty-One Theme: The 'Read more' hyperlink text in the 'Latest Posts' block renders differently on the site to The 'Read more' hyperlink text in the 'Latest Posts' block renders differently on the site
  • Version trunk deleted

The mismatch can happen with any theme that purposely replaces the "Read more" link text. This would need to be fixed in the editor, and you could continue discussion on the Gutenberg issue:
https://github.com/WordPress/gutenberg/issues/28969

(also reported earlier in GB20510, but that was closed)

Note: See TracTickets for help on using tickets.