Plugin Directory

Changeset 683444

Timestamp:
03/17/2013 11:40:26 PM (11 years ago)
Author:
stephenh1988
Message:

Committing 1.8.2 - fixes bugs introduced in 1.8

Location:
event-organiser/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • event-organiser/trunk/event-organiser.php

    r683387 r683444  
    33Plugin Name: Event Organiser
    44Plugin URI: http://www.wp-event-organiser.com
    5 Version: 1.8.1
     5Version: 1.8.
    66Description: Creates a custom post type 'events' with features such as reoccurring events, venues, Google Maps, calendar views and events and venue pages
    77Author: Stephen Harris
     
    4242 */
    4343global $eventorganiser_db_version;
    44 $eventorganiser_db_version = '1.8.1';
     44$eventorganiser_db_version = '1.8.';
    4545
    4646
  • event-organiser/trunk/includes/event-organiser-archives.php

    r683356 r683444  
    329329
    330330function eventorganiser_is_event_query( $query, $exclusive = false ){
    331    
     331   
    332332    $post_types = $query->get( 'post_type' );
    333333    if( 'any' == $post_types )
    334334        $post_types = get_post_types( array('exclude_from_search' => false) );
    335335   
    336     if( $post_types == 'event' ){
     336    if( $post_types == 'event' ){
    337337        $bool = true;
    338338    }elseif( $exclusive ){
     
    340340    }elseif( ( is_array( $post_types ) && in_array( 'event', $post_types ) ) ){
    341341        $bool = true;
    342     }elseif( $post_types == '' ){
    343         $bool = eo_is_event_taxonomy();
    344342    }else{
    345343        $bool = false;
    346344    }
    347345
    348     return $bool;
     346    return ;
    349347}
    350348
  • event-organiser/trunk/includes/event-organiser-event-functions.php

    r683356 r683444  
    806806
    807807/**
    808 * Checks if an event taxonomy archive page is being displayed. A simple wrapper for `is_tax()`.
     808* Checks if the query is for an event taxonomy.
     809
     810* When no $query is passed, acts as a simple wrapper for `is_tax()`.
     811* More generally acts as a wrapper for `$query->is_tax()`.
     812*
    809813* @since 1.6
    810814*
    811 * @return bool True if an event category, tag or venue archive page is being displayed. False otherwise.
    812  */
    813 function eo_is_event_taxonomy(){
     815* @param $query - The query to check. If not passed, uses the global $wp_query;
     816* @return bool True if query is for any event taxonomy (e.g. 'event-venue', 'event-category', 'event-tag').
     817 */
     818function eo_is_event_taxonomy( $query = false ){
    814819    $event_tax = get_object_taxonomies( 'event' );
    815     return ( is_tax( $event_tax ) );
     820    if( !$query ){
     821        return is_tax( $event_tax );
     822    }else{
     823        return $query->is_tax( $event_tax );
     824    }
    816825}
    817826
  • event-organiser/trunk/readme.txt

    r683387 r683444  
    55Requires at least: 3.3
    66Tested up to: 3.5
    7 Stable tag: 1.8.1
     7Stable tag: 1.8.
    88License: GPLv3
    99
     
    6666* Hungarian - Csaba Erdei
    6767* Estonian - Kristjan Roosipuu
     68
    6869
    6970== Installation ==
     
    163164
    164165== Changelog ==
     166
     167
     168
     169
     170
     171
     172
    165173
    166174= 1.8 =
     
    432440
    433441== Upgrade Notice ==
     442
     443
     444
     445
    434446= 1.5 =
    4354471.5 is a big update, so please back-up before upgrading.
Note: See TracChangeset for help on using the changeset viewer.