the_excerpt() on non-excerpt posts doesn't stripslashes
|Reported by:||anonymousbugger||Owned by:||ryan|
In trying to use the th_excerpt() function of WP, I noticed that my tick marks were still escaped. The key to this is that there was no excerpt entered for the posts.
Review of the code revealed that if there is an excerpt, it gets stripslashes, but when there is no exceprt, it attempts to use the post content. The check for empty excerpt isn't done until after the call to stripslashes. this means that when the content is used, it doesn't go through the stripslashes, causing them to show in the "faked" excerpt.
Change History (6)
- Owner changed from anonymous to rboren
- Status changed from new to assigned
- Resolution changed from 10 to 20
- Status changed from assigned to closed