[wp-testers] RE: wp_kses kills <!--more--> tags from xmlrpc posted entries

Toby Simmons toby at simmonsconsulting.com
Thu Dec 22 19:33:57 GMT 2005


Okay, after more digging, I found it is in wp_kses_split2() on line 101:

	if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9]+)([^>]*)>?$%', $string,
$matches))

This always strips the <!--more--> tags. My regular expression skillz are
way down right now (mighty tired after long night ...)

Sorry I can't offer a fix right off ...

___________________________________
W. Tobias Simmons
Simmons Consulting, Web Design and Marketing
toby at simmonsconsulting.com
http://www.simmonsconsulting.com
Phone: 501.821.4230 / Fax: 501.244.4416

-----Original Message-----
From: Toby Simmons [mailto:toby at simmonsconsulting.com] 
Sent: Thursday, December 22, 2005 1:11 PM
To: 'wp-testers at lists.automattic.com'
Subject: wp_kses kills <!--more--> tags from xmlrpc posted entries

I use Zempt to post most of the time, which uses XMLRPC (MT-style).
WordPress 1.5.2 works flawlessly, but 2.0RC3 strips <!--more--> tags, so
that they show up as one long entry with no "more..." link. Filed bug
report. It appears to be something in kses.php.

http://trac.wordpress.org/ticket/2130


___________________________________
W. Tobias Simmons
Simmons Consulting, Web Design and Marketing
toby at simmonsconsulting.com
http://www.simmonsconsulting.com
Phone: 501.821.4230 / Fax: 501.244.4416




More information about the wp-testers mailing list