Plugin Directory

Changeset 1649929


Ignore:
Timestamp:
05/02/2017 07:41:00 PM (9 years ago)
Author:
hovida
Message:

Fix SQL, Version

Location:
category-thumbnails/tags/1.0.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • category-thumbnails/tags/1.0.6/public_api.php

    r1649696 r1649929  
    1818        }
    1919       
    20         $result = $wpdb->get_row($wpdb->prepare('SELECT `term_thumbnail` FROM `%sterm_taxonomy` WHERE `term_id`=%d LIMIT 1', $wpdb->prefix, $cat));
     20        $result = $wpdb->get_row($wpdb->prepare('SELECT `term_thumbnail` FROM `' . $wpdb->prefix . 'term_taxonomy` WHERE `term_id`=%d LIMIT 1', $cat));
    2121        return $result->term_thumbnail != null ? true : false;
    2222    }
     
    3535       
    3636        $attributes     = array();
    37         $result         = $wpdb->get_row($wpdb->prepare('SELECT `term_thumbnail` FROM `%sterm_taxonomy` WHERE `term_id`=%d LIMIT 1', $wpdb->prefix, $cat));
     37        $result         = $wpdb->get_row($wpdb->prepare('SELECT `term_thumbnail` FROM `' . $wpdb->prefix . 'term_taxonomy` WHERE `term_id`=%d LIMIT 1', $cat));
    3838        $data           = json_decode($result->term_thumbnail);
    3939       
     
    6464        }
    6565       
    66         $result         = $wpdb->get_row($wpdb->prepare('SELECT `term_thumbnail` FROM `%sterm_taxonomy` WHERE `term_id`=%d LIMIT 1', $wpdb->prefix, $cat));
     66        $result         = $wpdb->get_row($wpdb->prepare('SELECT `term_thumbnail` FROM `' . $wpdb->prefix . 'term_taxonomy` WHERE `term_id`=%d LIMIT 1', $cat));
    6767        $data           = json_decode($result->term_thumbnail);
    6868       
  • category-thumbnails/tags/1.0.6/readme.txt

    r1649696 r1649929  
    55Tags: category, thumbnail, taxonomy, custom
    66Requires at least: 3.4.2
    7 Tested up to: 3.9.1
    8 Stable tag: 1.0.5
     7Tested up to: 4.7.4
     8Stable tag: 1.0.6
    99
    1010This Plugin provide functions like post-thumbnails for categories and (own) custom taxonomys. Please visit the Author-URL for Documentation.
Note: See TracChangeset for help on using the changeset viewer.