Plugin Directory

Changeset 910857


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

Merge

Location:
anything-order/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • anything-order/trunk/README.md

    r910168 r910857  
    4444##Screenshots
    4545
    46 ![Enable/Disable arrangement](screenshot-1.png?raw=true "Screenshot 1")
     46![Enable/Disable arrangement](http://ps.w.org/anything-order/assets/screenshot-1.png?rev=910154?raw=true "Screenshot 1") 
    4747Enable/Disable arrangement with drag and drop on "Screen Options" tab.
    4848
    49 ![Multiple selection](screenshot-2.png?raw=true "Screenshot 2")
     49![Multiple selection](http://ps.w.org/anything-order/assets/screenshot-2.png?rev=910154?raw=true "Screenshot 2") 
    5050You can select multiple items.
    5151
    52 ![Dragging items](screenshot-3.png?raw=true "Screenshot 3")
     52![Dragging items](http://ps.w.org/anything-order/assets/screenshot-3.png?rev=910154?raw=true "Screenshot 3") 
    5353Dragging multiple items.
    5454
  • anything-order/trunk/anything-order.php

    r910168 r910857  
    88Text Domain: anything-order
    99Domain Path: /languages/
    10 Version: 1.0.1
     10Version: 1.0.2
    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

    r909476 r910857  
    193193                $field = 'name';
    194194                $select_this = 't.name, t.term_id, tt.taxonomy';
    195                 $values = $terms;
     195                $values = array_map( array( $this, 'add_quote' ), $terms );
    196196                break;
    197197
     
    199199                $field ='slug';
    200200                $select_this = 't.slug, t.term_id, tt.taxonomy';
    201                 $values = $terms;
     201                $values = array_map( array( $this, 'add_quote' ), $terms );
    202202                break;
    203203
     
    232232        } else if ( 'ids' == $fields || 'names' == $fields || 'slugs' == $fields ) {
    233233            $terms = $wpdb->get_results( $query );
     234            $_field = ( 'ids' == $fields ) ? 'term_id' : 'name';
    234235            foreach ( $terms as $key => $term ) {
    235236                $terms[$key] = sanitize_term_field( $_field, $term->$field, $term->term_id, $term->taxonomy, 'raw' );
     
    237238
    238239        } else if ( 'tt_ids' == $fields ) {
    239             $terms = $wpdb->get_col(
     240            $terms = $wpdb->get_results(
    240241                "SELECT tt.term_taxonomy_id, tt.taxonomy"
    241242              . " FROM $wpdb->term_taxonomy AS tt"
     
    253254        return $terms;
    254255    }
     256   
     257    /**
     258     * Surround the string with a single quote
     259     *
     260     * @since 1.0.2
     261     * @access protected
     262     *
     263     * @see Anything_Order_Taxonomy::get_object_terms()
     264     *
     265     * @param string $str An string.
     266     * @return string String surrounded with a single quote.
     267     *
     268     */
     269    protected function add_quote( $str ) {
     270        return "'$str'";
     271    }
    255272
    256273    /**
  • anything-order/trunk/readme.txt

    r910168 r910857  
    44Requires at least: 3.8
    55Tested up to: 3.9
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58= 1.0.2 =
     59* Fix - PHP error on wp_get_object_terms() with option 'fields' => 'names', 'slugs', 'tt_ids'
     60
    5861= 1.0.1 =
    5962* Tweak - Remove screenshots from the plugin's release zip files.
Note: See TracChangeset for help on using the changeset viewer.