[wpmu-trac] [WordPress MU Trac] #261: Use of linkcategories in freshy throws database error

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Mar 1 03:36:26 GMT 2007


#261: Use of linkcategories in freshy throws database error
------------------------+---------------------------------------------------
 Reporter:  matthewsim  |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 Now that linkcategories is not a table in the database freshy/sidebar.php
 throws an error.  I grepped through the rest of the themes and the 5 other
 references are protected behind an "if", so I think this is the only one
 that needs to be updated.

 http://svn.automattic.com/wpcom-themes/freshy/sidebar.php

 22,33c22,23
 <                       <ul>
 <                        <?php
 <                        $link_cats = $wpdb->get_results("SELECT cat_id,
 cat_name FROM $wpdb->linkcategories");
 <                        foreach ($link_cats as $link_cat) {
 <                        ?>
 <                         <li id="linkcat-<?php echo $link_cat->cat_id;
 ?>"><?php echo $link_cat->cat_name; ?>
 <                          <ul>
 <                           <?php wp_get_links($link_cat->cat_id); ?>
 <                          </ul>
 <                         </li>
 <                        <?php } ?>
 <                       </ul>
 ---
 >                       <?php get_links_list(); ?>
 >

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/261>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list