[wp-trac] [WordPress Trac] #11311: kses converts ampersands to & in post titles, post content, and more
WordPress Trac
noreply at wordpress.org
Sat Apr 19 13:05:37 UTC 2014
#11311: kses converts ampersands to & in post titles, post content, and more
-------------------------------+-----------------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: administration
-------------------------------+-----------------------------
Comment (by anmari):
Just flagging that this is happens not just for posts and post types but
for user meta data too.
A custom add or update_user_meta does not result in an encoded ampersand.
However due to default filters added (in default-filters.php line 16) ,
user data like last name DOES have any ampersands escaped. Admittedly
not a common occurrence (an ampersand in last name I mean - except for a
Ke$sha type person perhaps?). The behaviour was flushed out when doing
some debug on generic user meta queries and searches, when I'd dumped some
test data into last name.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11311#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list