Plugin Directory

Changeset 637515


Ignore:
Timestamp:
12/12/2012 07:42:58 AM (13 years ago)
Author:
froman118
Message:

3.5 bug fix

Location:
my-link-order/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • my-link-order/trunk/mylinkorder.php

    r534580 r637515  
    44Plugin URI: http://www.geekyweekly.com/mylinkorder
    55Description: My Link Order allows you to set the order in which links and link categories will appear in the sidebar. Uses a drag and drop interface for ordering. Adds a widget with additional options for easy installation on widgetized themes.
    6 Version: 3.3.2
     6Version: 3.5
    77Author: Andrew Charlton
    88Author URI: http://www.geekyweekly.com
     
    531531
    532532    $defaults = array(
    533         'orderby' => 'name', 'order' => 'ASC',
     533        'orderby' => 'order', 'order' => 'ASC',
    534534        'limit' => -1, 'category' => '',
    535535        'category_name' => '', 'hide_invisible' => 1,
     
    641641            foreach ( explode(',', $orderby) as $ordparam ) {
    642642                $ordparam = trim($ordparam);
    643                 if ( in_array( $ordparam, array( 'order', 'name', 'url', 'visible', 'rating', 'owner', 'updated' ) ) )
     643                $keys = array( 'link_order', 'link_id', 'link_name', 'link_url', 'link_visible', 'link_rating', 'link_owner', 'link_updated', 'link_notes' );
     644                if ( in_array( 'link_' . $ordparam, $keys ) )
    644645                    $orderparams[] = 'link_' . $ordparam;
     646                elseif ( in_array( $ordparam, $keys ) )
     647                    $orderparams[] = $ordparam;
    645648            }
    646649            $orderby = implode(',', $orderparams);
     
    664667        $query .= " LIMIT $limit";
    665668
    666     $results = $wpdb->get_results($wpdb->prepare($query));
     669    $results = $wpdb->get_results($query);
    667670
    668671    $cache[ $key ] = $results;
  • my-link-order/trunk/readme.txt

    r534580 r637515  
    44Tags: link, category, categories, order, sidebar, widget
    55Requires at least: 2.8
    6 Tested up to: 3.3.2
    7 Stable tag: 3.3.2
     6Tested up to: 3.5
     7Stable tag: 3.5
    88
    99My Link Order allows you to set the order in which links and link categories will appear in the sidebar.
Note: See TracChangeset for help on using the changeset viewer.