WordPress.org

Plugin Directory

Changeset 69824


Ignore:
Timestamp:
10/21/08 20:51:27 (6 years ago)
Author:
thornomad
Message:

switched the is_tag call around so that it checks to make sure the current wordpress version supports tags -- not sure if is necessary but playing it safe! Thanks again, to Lex for pointing that out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-calendar/trunk/eventcalendar3.php

    r69696 r69824  
    138138  global $ec3,$wpdb; 
    139139 
    140   if($ec3->query->is_page || $ec3->query->is_single || $ec3->query->is_admin || $ec3->query->is_tag) 
     140  //To prevent breaking prior to ver 2.3 
     141  if(function_exists('get_the_tags')) { 
     142      if($ec3->query->is_tag) 
     143          return $where; 
     144  } 
     145 
     146  if($ec3->query->is_page || $ec3->query->is_single || $ec3->query->is_admin) 
    141147      return $where; 
    142148 
Note: See TracChangeset for help on using the changeset viewer.