[wp-trac] [WordPress Trac] #23873: Gallery shortcode orderby does not support multiple column sorting
WordPress Trac
noreply at wordpress.org
Fri Mar 29 18:30:52 UTC 2013
#23873: Gallery shortcode orderby does not support multiple column sorting
--------------------------+------------------------------
Reporter: dglingren | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.5.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by dglingren):
If you pursue this issue, consider a closer look at
"sanitize_sql_orderby".
Unlike the other WordPress "sanitize" functions, it doesn't actually
modify the parameter passed to it. It tests the incoming value and, if it
passes, returns the incoming value unchanged.
Also, the testing has some issues. For example, it accepts "orderby=ASC"
as a valid ORDER BY clause. The [gallery] shortcode will discard this
value, but other plugins that rely on this function might have more
serious issues.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23873#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list