WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5795 closed defect (bug) (invalid)

<!--more--> is also filtered by htmlspecialchars

Reported by: fightbulc Owned by:
Milestone: Priority: high
Severity: major Version: 2.3.3
Component: Template Keywords:
Focuses: Cc:

Description

When one adds the <!--more--> tag into his post Wordpress transforms this tag as well with htmlspecialchars which leads to the mistake that "get_the_content()" doesnt recognize the tag anymore. By this the excerpt function isnt given anymore.

Easy adjustment can be done in "post-template.php" line 107 - 111.

Change History (3)

comment:1 ffemtcj6 years ago

  • Cc ffemtcj added
  • Resolution set to invalid
  • Status changed from new to closed

I checked into this and if you manually type <!--more--> it does do as you say. However if you click the more button it works perfectly fine.

comment:2 DD326 years ago

If you want to enter the more tag manually, You need to enter it in the HTML view rather than the Visual view.

comment:3 Viper007Bond6 years ago

  • Milestone 2.6 deleted

Yes, the visual view figures you wanted to actually display a < (i.e. &lt;) and not use it for code. It is a what-you-see-is-what-you-get editor after all. ;)

Note: See TracTickets for help on using tickets.