Changeset 1649929
- Timestamp:
- 05/02/2017 07:41:00 PM (9 years ago)
- Location:
- category-thumbnails/tags/1.0.6
- Files:
-
- 2 edited
-
public_api.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
category-thumbnails/tags/1.0.6/public_api.php
r1649696 r1649929 18 18 } 19 19 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)); 21 21 return $result->term_thumbnail != null ? true : false; 22 22 } … … 35 35 36 36 $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)); 38 38 $data = json_decode($result->term_thumbnail); 39 39 … … 64 64 } 65 65 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)); 67 67 $data = json_decode($result->term_thumbnail); 68 68 -
category-thumbnails/tags/1.0.6/readme.txt
r1649696 r1649929 5 5 Tags: category, thumbnail, taxonomy, custom 6 6 Requires at least: 3.4.2 7 Tested up to: 3.9.18 Stable tag: 1.0. 57 Tested up to: 4.7.4 8 Stable tag: 1.0.6 9 9 10 10 This 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.