[wp-trac] Re: [WordPress Trac] #7423: in WP_Query,
sanitization breaks usage of multiple post_status values
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 29 10:58:21 GMT 2008
#7423: in WP_Query, sanitization breaks usage of multiple post_status values
-------------------------+--------------------------------------------------
Reporter: markjaquith | Owner: markjaquith
Type: defect | Status: assigned
Priority: high | Milestone: 2.7
Component: General | Version: 2.6
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by azaozz):
Replying to [comment:4 filosofo]:
> Actually, I use a custom post_type with some regularity, and the API
makes it easy to do with {{{set_post_type()}}} and {{{get_post_type()}}}.
I was commenting about the post_status not post_type, sorry for any
misunderstandings.
As you mention, post_type can be customized and the new type is filtered
with sanitize_user(). So the new type can include number, space,
underscore, dot, dash, @ and must start with a letter. Perhaps it should
be recommended that the new type follows the existing format: one word,
all lower case ascii.
DD32, it seems that would affect other functions too. Perhaps make a patch
and open new ticket if it needs to be changed, so it can be tracked
properly.
--
Ticket URL: <http://trac.wordpress.org/ticket/7423#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list