WPIntell

Source evidence

I think version 2.4.5 introduced a bug

Simple Custom Post Order · support · 2025-01-10T11:42:00+00:00

mixedsentiment
mediumseverity
0.84relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 28 rows with source links

21.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
davidgas resolved
Hi, recently had to debug a site that returned an empty array [] when calling $tags = get_tags(array(‘taxonomy’ => ‘my_taxonomy’));. After tracing and debugging I’ve found Simple Custom Post Order to be the cause. The plugin is inserting a ORDER BY term_order but that column doesn’t exist in the DB so fails. I’ve installed previous versions, and found 2.4.4 the last version working correctly. Checked changes between 2.4.4 and 2.4.5 and this code is probably the cause (not checked): This is version 2.4.4: public function scporder_get_terms_orderby($orderby, $args) { if (is_admin()) return $orderby; $tags = $this->get_scporder_options_tags(); if (!isset($args['taxonomy'])) return $orderby; if(is_array($args['taxonomy'])){ $taxonomy = $args['taxonomy'][0]; } else { $taxonomy = $args['taxonomy']; } if (!in_array($taxonomy, $tags)) return $orderby; $orderby = 't.term_order'; return $orderby; } This is version 2.4.5: public function scporder_get_terms_orderby($orderby, $args) { if (is_admin()) return $orderby; $tags = $this->get_scporder_options_tags(); if (!isset($args['taxonomy'])) return $orderby; $taxonomy = $args['taxonomy']; if (!in_array($taxonomy, $tags)) return $orderby; $orderby = 't.term_order'; return $orderby; } Can you please check if I’m correct? Thanks. Hello @davidgas , Thank you for bringing this to our attention! We’ve reviewed the code in the latest version, and it should work as expected. Please update to the most recent version (2.5.10), and don’t hesitate to let us know if you encounter any issues afterward. Warm regards, Cristina This reply was modified 1 year, 4 months ago by cristinnaiulia . Marking this support thread as resolved due to inactivity. If you have any other questions or need further help please open a new thread.

Comments

2 shown
cristinnaiulia 2025-01-14T09:00:00+00:00

Hello @davidgas , Thank you for bringing this to our attention! We’ve reviewed the code in the latest version, and it should work as expected. Please update to the most recent version (2.5.10), and don’t hesitate to let us know if you encounter any issues afterward. Warm regards, Cristina This reply was modified 1 year, 4 months ago by cristinnaiulia .

cristinnaiulia 2025-01-21T08:55:00+00:00

Marking this support thread as resolved due to inactivity. If you have any other questions or need further help please open a new thread.