#1016 closed enhancement (fixed)
Allow usage of uppercase 'ASC'/'DESC' to order in shortcode_speakers
Reported by: | pixolin | Owned by: | iandunn |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | WordCamp Site & Plugins | Keywords: | has-patch |
Cc: |
Description
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.
Attachments (2)
Change History (5)
#1
@
9 years ago
- Owner set to iandunn
- Resolution set to fixed
- Status changed from new to closed
In 1539:
Note: See
TracTickets for help on using
tickets.
Patch for ticket #1016