-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore locale when sorting for shortcode "camptix_attendees" #1310
Comments
I think this is actually due to the data storage type, as we don't do any special for sorting in locales, just on wordcamp.org/public_html/wp-content/plugins/camptix/addons/shortcodes.php Lines 207 to 219 in f79c65e
Unsure how we've done this before, but I think we'd have to change that in the database (which might require some assistance to do so) and there is a chance of data loss. @dd32 have you known us do this before? |
Actually - if we sort by polish collation (utf8mb4_polish_ci) then the results look correct, but unsure if we can push this through wp_query. |
Ah - this isn't possible through WP Query, due to the santitization of the orderby parameter: https://github.com/WordPress/wordpress-develop/blob/6.5/src/wp-includes/class-wp-query.php#L1663-L1685 |
Yup, because it's stored as
My initial response is "noooo". However, it turns out that core does use the (utf8mb4_unicode_ci uses v4 utf8 weighting keys for sort, utf8mb4_unicode_520_ci uses v5.2 utf8 weighted sorts) AFAIK we don't use that, because a combination of HyperDB + how utf8mb4 is forced on.. Upon looking into it, The above won't "fix" this though; it'll just let new tables be created using 520 AFAIK, we could adjust existing tables though.
This would be possible via the
|
Thanks @dd32 - I think I prefer the non-update options via the We'd need to adjust the query here: wordcamp.org/public_html/wp-content/plugins/camptix/addons/shortcodes.php Lines 275 to 292 in f79c65e
suppress_filters to false since the filter wouldn't run, but otherwise this could work.
|
I forgot |
Describe the bug
Showing attendees by
camptix_attendees
shortcode ignore local sorting.To reproduce
Steps to reproduce the behavior:
Expected behavior
Proper sorting by name according to the site locale.
Screenshots / Screencasts
WordCamp
If this is a problem on a specific WordCamp's site, list the site or page URL here.
The text was updated successfully, but these errors were encountered: