[wp-trac] [WordPress Trac] #33756: Improve docs for sanitize_title()
WordPress Trac
noreply at wordpress.org
Fri Mar 10 11:29:24 UTC 2017
#33756: Improve docs for sanitize_title()
----------------------------------------+-----------------------------
Reporter: ericlewis | Owner: psdtohtmlguru
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses: docs
----------------------------------------+-----------------------------
Comment (by gma992):
@wonderboymusic
{{{
Sanitizes a string for use as a slug in a URL. is incomplete. Also
sanitizes for use as HTML id or class attribute value. There may be other
uses...
}}}
Not sure if I'm missing something here, but basically sanitize_title()
strip tags, removes accents and replace special characters, right? I'm not
really sure what you mean with id or class attribute value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33756#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list