Plugin Directory

Changeset 910877


Ignore:
Timestamp:
05/09/2014 06:25:45 AM (12 years ago)
Author:
pmwp
Message:

Merge

Location:
anything-order/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anything-order/trunk/anything-order.php

    r910857 r910877  
    11<?php
    22/*
    3 Plugin Name: Anythig Order
     3Plugin Name: Anything Order
    44Plugin URI: http://wordpress.org/plugins/anything-order/
    55Description: This plugin allows you to arrange any post types and taxonomies with drag and drop.
     
    88Text Domain: anything-order
    99Domain Path: /languages/
    10 Version: 1.0.2
     10Version: 1.0.3
    1111License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    1212*/
  • anything-order/trunk/modules/taxonomy/class.php

    r910857 r910877  
    218218               . " FROM $wpdb->terms AS t"
    219219               . " 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)"
    221221               . " WHERE t.$field IN ($values)"
    222                . " AND tr.object_id = 0"
    223222               . " ORDER BY $orderby $order";
    224223
     
    241240                "SELECT tt.term_taxonomy_id, tt.taxonomy"
    242241              . " 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)"
    244243              . " WHERE tt.term_taxonomy_id IN ($values)"
    245               . " AND tr.object_id = 0"
    246244              . " ORDER BY $orderby $order"
    247245            );
     
    305303            $pieces['orderby']  = 'ORDER BY ' . $orderby;
    306304            $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)";
    309306        }
    310307
  • anything-order/trunk/readme.txt

    r910857 r910877  
    44Requires at least: 3.8
    55Tested up to: 3.9
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58= 1.0.3 =
     59* Fix - Terms disappear after installing.
     60* Tweak - Correct the wrong plugin name.
     61
    5862= 1.0.2 =
    5963* 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.