WordPress.org

Plugin Directory

Changeset 396372


Ignore:
Timestamp:
06/13/11 00:02:59 (3 years ago)
Author:
mfields
Message:

String to decimal ... remove unused link code.

Location:
taxonomy-images/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • taxonomy-images/trunk/readme.md

    r391118 r396372  
    208208--------- 
    209209 
     210__0.7.1__ 
     211 
     212* Remove unused link code which is throwing an error when no taxonomies support images. 
     213 
    210214__0.7__ 
    211215 
  • taxonomy-images/trunk/readme.txt

    r391118 r396372  
    211211==Changelog== 
    212212 
     213= 0.7.1 = 
     214* Remove unused link code which is throwing an error when no taxonomies support images. 
     215 
    213216= 0.7 = 
    214217* No longer breaks display of the [Better Plugin Compatibility Control](http://wordpress.org/extend/plugins/better-plugin-compatibility-control/) plugin. 
  • taxonomy-images/trunk/taxonomy-images.php

    r391118 r396372  
    44Plugin URI:           http://wordpress.mfields.org/plugins/taxonomy-images/ 
    55Description:          Associate images from your media library to categories, tags and custom taxonomies. 
    6 Version:              0.7 
     6Version:              0.7.1 
    77Author:               Michael Fields 
    88Author URI:           http://wordpress.mfields.org/ 
     
    435435    } 
    436436    global $wpdb; 
    437     $data = $wpdb->get_results( $wpdb->prepare( "SELECT term_id, taxonomy FROM $wpdb->term_taxonomy WHERE term_taxonomy_id = %s LIMIT 1", $tt_id ) ); 
     437    $data = $wpdb->get_results( $wpdb->prepare( "SELECT term_id, taxonomy FROM $wpdb->term_taxonomy WHERE term_taxonomy_id = %d LIMIT 1", $tt_id ) ); 
    438438    if ( isset( $data[0]->term_id ) ) { 
    439439        $cache[$tt_id]['term_id'] = absint( $data[0]->term_id ); 
     
    10881088 
    10891089    if ( ! isset( $settings['taxonomies'] ) ) { 
    1090         $link = ''; 
    1091         if ( current_user_can( 'manage_options' ) ) { 
    1092             $link = '<a href="' . esc_url(  ) . '">' . esc_html__( 'Manage settings.', 'taxonomy-images' ) . '</a>'; 
    1093         } 
    10941090        trigger_error( sprintf( esc_html__( 'No taxonomies have image support. %1$s', 'taxonomy-images' ), taxonomy_images_plugin_settings_page_link() ) ); 
    10951091        return false; 
Note: See TracChangeset for help on using the changeset viewer.