Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 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:


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)

#1 @ffemtcj
10 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.

#2 @DD32
10 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.

#3 @Viper007Bond
10 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.