Changeset 683444
- Timestamp:
- 03/17/2013 11:40:26 PM (11 years ago)
- Location:
- event-organiser/trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
event-organiser/trunk/event-organiser.php
r683387 r683444 3 3 Plugin Name: Event Organiser 4 4 Plugin URI: http://www.wp-event-organiser.com 5 Version: 1.8. 15 Version: 1.8. 6 6 Description: Creates a custom post type 'events' with features such as reoccurring events, venues, Google Maps, calendar views and events and venue pages 7 7 Author: Stephen Harris … … 42 42 */ 43 43 global $eventorganiser_db_version; 44 $eventorganiser_db_version = '1.8. 1';44 $eventorganiser_db_version = '1.8.'; 45 45 46 46 -
event-organiser/trunk/includes/event-organiser-archives.php
r683356 r683444 329 329 330 330 function eventorganiser_is_event_query( $query, $exclusive = false ){ 331 331 332 332 $post_types = $query->get( 'post_type' ); 333 333 if( 'any' == $post_types ) 334 334 $post_types = get_post_types( array('exclude_from_search' => false) ); 335 335 336 if( $post_types == 'event' ){336 if( $post_types == 'event' ){ 337 337 $bool = true; 338 338 }elseif( $exclusive ){ … … 340 340 }elseif( ( is_array( $post_types ) && in_array( 'event', $post_types ) ) ){ 341 341 $bool = true; 342 }elseif( $post_types == '' ){343 $bool = eo_is_event_taxonomy();344 342 }else{ 345 343 $bool = false; 346 344 } 347 345 348 return $bool;346 return ; 349 347 } 350 348 -
event-organiser/trunk/includes/event-organiser-event-functions.php
r683356 r683444 806 806 807 807 /** 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 * 809 813 * @since 1.6 810 814 * 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 */ 818 function eo_is_event_taxonomy( $query = false ){ 814 819 $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 } 816 825 } 817 826 -
event-organiser/trunk/readme.txt
r683387 r683444 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5 7 Stable tag: 1.8. 17 Stable tag: 1.8. 8 8 License: GPLv3 9 9 … … 66 66 * Hungarian - Csaba Erdei 67 67 * Estonian - Kristjan Roosipuu 68 68 69 69 70 == Installation == … … 163 164 164 165 == Changelog == 166 167 168 169 170 171 172 165 173 166 174 = 1.8 = … … 432 440 433 441 == Upgrade Notice == 442 443 444 445 434 446 = 1.5 = 435 447 1.5 is a big update, so please back-up before upgrading.
Note: See TracChangeset
for help on using the changeset viewer.