WordPress.org

Plugin Directory

Changeset 695524


Ignore:
Timestamp:
04/10/13 21:57:17 (12 months ago)
Author:
liedekef
Message:

wpdb prepare doesn't use correct backticks for column names

Location:
events-made-easy/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • events-made-easy/trunk/events-manager.php

    r695426 r695524  
    336336         $old_blog = $wpdb->blogid; 
    337337         // Get all blog ids 
    338          $blogids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM %s",$wpdb->blogs)); 
     338         $blogids = $wpdb->get_col("SELECT blog_id FROM ".$wpdb->blogs); 
    339339         foreach ($blogids as $blog_id) { 
    340340            switch_to_blog($blog_id); 
     
    416416         $old_blog = $wpdb->blogid; 
    417417         // Get all blog ids 
    418          $blogids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs")); 
     418         $blogids = $wpdb->get_col("SELECT blog_id FROM ".$wpdb->blogs); 
    419419         foreach ($blogids as $blog_id) { 
    420420            switch_to_blog($blog_id); 
     
    453453   global $wpdb; 
    454454  
    455    if (is_plugin_active_for_network('events-made-easy/events-manager.php')) { 
     455   if (is_plugin_active_for_network(plugin_basename( __FILE__ ))) { 
    456456      $old_blog = $wpdb->blogid; 
    457457      switch_to_blog($blog_id); 
  • events-made-easy/trunk/readme.txt

    r695412 r695524  
    120120* Bugfix: make qtranslate work again (one-liner fix) 
    121121* Bugfix: make ical work correctly with timezone included 
     122* Bugfix: wpdb prepare doesn't use correct backticks for column names, resulting in multisite issues (I tried to use the correct prepare syntax in 1.1.0) 
    122123* Improvement: only include the datepicker locale if it exist (like in 1.0.18), and take into account 2-letter locales again 
    123124 
Note: See TracChangeset for help on using the changeset viewer.