Changeset 910877
- Timestamp:
- 05/09/2014 06:25:45 AM (12 years ago)
- Location:
- anything-order/trunk
- Files:
-
- 3 edited
-
anything-order.php (modified) (2 diffs)
-
modules/taxonomy/class.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
anything-order/trunk/anything-order.php
r910857 r910877 1 1 <?php 2 2 /* 3 Plugin Name: Anythi g Order3 Plugin Name: Anything Order 4 4 Plugin URI: http://wordpress.org/plugins/anything-order/ 5 5 Description: This plugin allows you to arrange any post types and taxonomies with drag and drop. … … 8 8 Text Domain: anything-order 9 9 Domain Path: /languages/ 10 Version: 1.0. 210 Version: 1.0.3 11 11 License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 12 12 */ -
anything-order/trunk/modules/taxonomy/class.php
r910857 r910877 218 218 . " FROM $wpdb->terms AS t" 219 219 . " INNER JOIN $wpdb->term_taxonomy AS tt ON tt.term_id = t.term_id" 220 . " LEFT JOIN $wpdb->term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id"220 . " LEFT JOIN $wpdb->term_relationships AS tr ON (tr.term_taxonomy_id = tt.term_taxonomy_id AND tr.object_id = 0)" 221 221 . " WHERE t.$field IN ($values)" 222 . " AND tr.object_id = 0"223 222 . " ORDER BY $orderby $order"; 224 223 … … 241 240 "SELECT tt.term_taxonomy_id, tt.taxonomy" 242 241 . " FROM $wpdb->term_taxonomy AS tt" 243 . " LEFT JOIN $wpdb->term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id"242 . " LEFT JOIN $wpdb->term_relationships AS tr ON (tr.term_taxonomy_id = tt.term_taxonomy_id AND tr.object_id = 0)" 244 243 . " WHERE tt.term_taxonomy_id IN ($values)" 245 . " AND tr.object_id = 0"246 244 . " ORDER BY $orderby $order" 247 245 ); … … 305 303 $pieces['orderby'] = 'ORDER BY ' . $orderby; 306 304 $pieces['fields' ] .= ',tr.term_order'; 307 $pieces['join' ] .= " LEFT JOIN $wpdb->term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id"; 308 $pieces['where' ] .= ' AND (tr.object_id = 0 OR tr.object_id IS NULL)'; 305 $pieces['join' ] .= " LEFT JOIN $wpdb->term_relationships AS tr ON (tr.term_taxonomy_id = tt.term_taxonomy_id AND tr.object_id = 0)"; 309 306 } 310 307 -
anything-order/trunk/readme.txt
r910857 r910877 4 4 Requires at least: 3.8 5 5 Tested up to: 3.9 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 = 1.0.3 = 59 * Fix - Terms disappear after installing. 60 * Tweak - Correct the wrong plugin name. 61 58 62 = 1.0.2 = 59 63 * Fix - PHP error on wp_get_object_terms() with option 'fields' => 'names', 'slugs', 'tt_ids'
Note: See TracChangeset
for help on using the changeset viewer.