WordPress.org

Plugin Directory


Ignore:
Timestamp:
01/02/12 08:40:42 (2 years ago)
Author:
tammyhart
Message:

ingredient output fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • recipress/tags/1.7/php/functions.php

    r483245 r483275  
    202202                $amount = $ingredient['amount']; 
    203203                $measurement = $ingredient['measurement']; 
    204                 $ingredient = $ingredient['ingredient']; 
     204                $the_ingredient = $ingredient['ingredient']; 
    205205                $notes = $ingredient['notes']; 
    206206                if(!$ingredient['ingredient']) continue; 
     
    208208                if (isset($amount) || isset($measurement))  
    209209                    $output .= '<span class="amount">'.$amount.' '.$measurement.'</span> '; 
    210                 if (isset($ingredient))  
    211                     $output .= '<span class="name"><a href="'.get_term_link($ingredient, 'ingredient').'">'.$ingredient.'</a></span> '; 
     210                if (isset($the_ingredient))  
     211                    $output .= '<span class="name"><a href="'.get_term_link($the_ingredient, 'ingredient').'">'.$the_ingredient.'</a></span> '; 
    212212                if (isset($notes))  
    213213                    $output .= '<i class="notes">'.$notes.'</i></li>'; 
Note: See TracChangeset for help on using the changeset viewer.