[wp-meta] [Making WordPress.org] #1016: Allow usage of uppercase 'ASC'/'DESC' to order in shortcode_speakers
Making WordPress.org
noreply at wordpress.org
Mon May 4 10:02:55 UTC 2015
#1016: Allow usage of uppercase 'ASC'/'DESC' to order in shortcode_speakers
------------------------+--------------------------
Reporter: pixolin | Owner:
Type: enhancement | Status: new
Priority: normal | Component: wordcamp.org
Keywords: has-patch |
------------------------+--------------------------
I got somewhat confused when using the shortcode to list speakers on the
website for our WordCamp Cologne:
I added a parameter {{{order="ASC"}}} as I usually do when adding a new
WP_Query() in a template, but to no avail. After several attempts I looked
into the plugin source code and found out, the shortcode [speakers] only
accepts the parameter order in lowercase, which then gets turned into
uppercase by function [parse
order](https://core.trac.wordpress.org/browser/tags/4.2.1/src/wp-
includes/query.php#L2311) (introducded in WordPress 3.9).
A simple workaround would be to add {{{$attr['order'] = strtolower(
$attr['order'] );}}} to improve handling of the shortcode.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1016>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list