Version Description
Download this release
Release Info
| Developer | zbtirrell |
| Plugin | |
| Version | 3.12.3 |
| Comparing to | |
| See all releases | |
Code changes from version 3.12.2 to 3.12.3
- readme.txt +14 -8
- src/Tribe/Main.php +1 -1
- src/Tribe/Rewrite.php +34 -15
- src/Tribe/Template/Month.php +2 -6
- the-events-calendar.php +1 -1
readme.txt
CHANGED
|
@@ -4,8 +4,8 @@ Contributors: ModernTribe, roblagatta, borkweb, zbtirrell, barry.hughes, bordon
|
|
| 4 |
Tags: events, calendar, event, venue, organizer, dates, date, google maps, conference, workshop, concert, meeting, seminar, summit, class, modern tribe, tribe, widget
|
| 5 |
Donate link: http://m.tri.be/29
|
| 6 |
Requires at least: 3.9
|
| 7 |
-
Tested up to: 4.3
|
| 8 |
-
Stable tag: 3.12.
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
|
@@ -315,15 +315,21 @@ At no point during the 3.0 lifecycle will the major version change. But you can
|
|
| 315 |
|
| 316 |
== Changelog ==
|
| 317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
= [3.12.2] 2015-09-22 =
|
| 319 |
-
|
| 320 |
-
* Fix -
|
| 321 |
-
* Fix -
|
| 322 |
-
* Fix -
|
|
|
|
| 323 |
|
| 324 |
= [3.12.1] 2015-09-09 =
|
| 325 |
-
|
| 326 |
-
*
|
|
|
|
| 327 |
|
| 328 |
= [3.12] 2015-09-08 =
|
| 329 |
|
| 4 |
Tags: events, calendar, event, venue, organizer, dates, date, google maps, conference, workshop, concert, meeting, seminar, summit, class, modern tribe, tribe, widget
|
| 5 |
Donate link: http://m.tri.be/29
|
| 6 |
Requires at least: 3.9
|
| 7 |
+
Tested up to: 4.3.1
|
| 8 |
+
Stable tag: 3.12.3
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
| 315 |
|
| 316 |
== Changelog ==
|
| 317 |
|
| 318 |
+
= [3.12.3] 2015-10-01 =
|
| 319 |
+
|
| 320 |
+
* Fix - Ensure daily counts in month view are accurate (our thanks to @communityanswers in the support forums for highlighting this)
|
| 321 |
+
|
| 322 |
= [3.12.2] 2015-09-22 =
|
| 323 |
+
|
| 324 |
+
* Fix - Restore expected functionality for the Hide from Event Listings option
|
| 325 |
+
* Fix - Ensure the correct day is highlighted in month view, regardless of the site's timezone (our thanks to @james for making us aware of this)
|
| 326 |
+
* Fix - Improve compatibility with the standard WordPress import tool (our thanks to @joelgoodman for highlighting this)
|
| 327 |
+
* Fix - Ensure our URLs are compatible with pathinfo-style permalink structures (thanks to @mill.joes and others for make us aware of this)
|
| 328 |
|
| 329 |
= [3.12.1] 2015-09-09 =
|
| 330 |
+
|
| 331 |
+
* Tweak - Text domains updated for consistency with the plugin slug
|
| 332 |
+
* Fix - Restored normal operation of the changelog reader (used within the update screen)
|
| 333 |
|
| 334 |
= [3.12] 2015-09-08 =
|
| 335 |
|
src/Tribe/Main.php
CHANGED
|
@@ -24,7 +24,7 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
| 24 |
const VENUE_POST_TYPE = 'tribe_venue';
|
| 25 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
| 26 |
|
| 27 |
-
const VERSION = '3.12.
|
| 28 |
const MIN_ADDON_VERSION = '3.12';
|
| 29 |
const FEED_URL = 'https://theeventscalendar.com/feed/';
|
| 30 |
const INFO_API_URL = 'http://wpapi.org/api/plugin/the-events-calendar.php';
|
| 24 |
const VENUE_POST_TYPE = 'tribe_venue';
|
| 25 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
| 26 |
|
| 27 |
+
const VERSION = '3.12.3';
|
| 28 |
const MIN_ADDON_VERSION = '3.12';
|
| 29 |
const FEED_URL = 'https://theeventscalendar.com/feed/';
|
| 30 |
const INFO_API_URL = 'http://wpapi.org/api/plugin/the-events-calendar.php';
|
src/Tribe/Rewrite.php
CHANGED
|
@@ -74,6 +74,7 @@ if ( ! class_exists( 'Tribe__Events__Rewrite' ) ) {
|
|
| 74 |
$this->hook_lock = true;
|
| 75 |
|
| 76 |
// Hook the methods
|
|
|
|
| 77 |
add_filter( 'generate_rewrite_rules', array( $this, 'filter_generate' ) );
|
| 78 |
add_filter( 'post_type_link', array( $this, 'filter_post_type_link' ), 15, 2 );
|
| 79 |
|
|
@@ -91,13 +92,43 @@ if ( ! class_exists( 'Tribe__Events__Rewrite' ) ) {
|
|
| 91 |
* @return void
|
| 92 |
*/
|
| 93 |
public function filter_generate( WP_Rewrite $wp_rewrite ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
$options = array(
|
| 95 |
'default_view' => Tribe__Events__Main::instance()->getOption( 'viewOption', 'month' ),
|
| 96 |
);
|
| 97 |
|
| 98 |
-
|
| 99 |
-
$this->setup( $wp_rewrite )
|
| 100 |
-
|
| 101 |
// Single
|
| 102 |
->single( array( '(\d{4}-\d{2}-\d{2})' ), array( Tribe__Events__Main::POSTTYPE => '%1', 'eventDate' => '%2' ) )
|
| 103 |
->single( array( '{{ all }}' ), array( Tribe__Events__Main::POSTTYPE => '%1', 'post_type' => Tribe__Events__Main::POSTTYPE, 'eventDisplay' => 'all' ) )
|
|
@@ -146,18 +177,6 @@ if ( ! class_exists( 'Tribe__Events__Rewrite' ) ) {
|
|
| 146 |
->tag( array( 'ical' ), array( 'ical' => 1 ) )
|
| 147 |
->tag( array( 'feed', '(feed|rdf|rss|rss2|atom)' ), array( 'feed' => '%2' ) )
|
| 148 |
->tag( array(), array( 'eventDisplay' => $options['default_view'] ) );
|
| 149 |
-
|
| 150 |
-
/**
|
| 151 |
-
* Use this to change the instance of the Rewrite
|
| 152 |
-
* Should be used when you want to add more rewrite rules without having to deal with the array merge
|
| 153 |
-
*/
|
| 154 |
-
do_action( 'tribe_events_pre_rewrite', $this );
|
| 155 |
-
|
| 156 |
-
/**
|
| 157 |
-
* Backwards Compatibility filter, this filters the WP Rewrite Rules.
|
| 158 |
-
* @todo Check if is worth deprecating this hook
|
| 159 |
-
*/
|
| 160 |
-
$wp_rewrite->rules = apply_filters( 'tribe_events_rewrite_rules', $this->rules + $wp_rewrite->rules, $this );
|
| 161 |
}
|
| 162 |
|
| 163 |
/**
|
| 74 |
$this->hook_lock = true;
|
| 75 |
|
| 76 |
// Hook the methods
|
| 77 |
+
add_action( 'tribe_events_pre_rewrite', array( $this, 'generate_core_rules' ) );
|
| 78 |
add_filter( 'generate_rewrite_rules', array( $this, 'filter_generate' ) );
|
| 79 |
add_filter( 'post_type_link', array( $this, 'filter_post_type_link' ), 15, 2 );
|
| 80 |
|
| 92 |
* @return void
|
| 93 |
*/
|
| 94 |
public function filter_generate( WP_Rewrite $wp_rewrite ) {
|
| 95 |
+
// Gets the rewrite bases and completes any other required setup work
|
| 96 |
+
$this->setup( $wp_rewrite );
|
| 97 |
+
|
| 98 |
+
/**
|
| 99 |
+
* Use this to change the Tribe__Events__Rewrite instance before new rules
|
| 100 |
+
* are committed.
|
| 101 |
+
*
|
| 102 |
+
* Should be used when you want to add more rewrite rules without having to
|
| 103 |
+
* deal with the array merge, noting that rules for The Events Calendar are
|
| 104 |
+
* themselves added via this hook (default priority).
|
| 105 |
+
*
|
| 106 |
+
* @var Tribe__Events__Rewrite $rewrite
|
| 107 |
+
*/
|
| 108 |
+
do_action( 'tribe_events_pre_rewrite', $this );
|
| 109 |
+
|
| 110 |
+
/**
|
| 111 |
+
* Backwards Compatibility filter, this filters the WP Rewrite Rules.
|
| 112 |
+
* @todo Check if is worth deprecating this hook
|
| 113 |
+
*/
|
| 114 |
+
$wp_rewrite->rules = apply_filters( 'tribe_events_rewrite_rules', $this->rules + $wp_rewrite->rules, $this );
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/**
|
| 118 |
+
* Sets up the rules required by The Events Calendar.
|
| 119 |
+
*
|
| 120 |
+
* This should be called during tribe_events_pre_rewrite, which means other plugins needing to add rules
|
| 121 |
+
* of their own can do so on the same hook at a lower or higher priority, according to how specific
|
| 122 |
+
* those rules are.
|
| 123 |
+
*
|
| 124 |
+
* @param Tribe__Events__Rewrite $rewrite
|
| 125 |
+
*/
|
| 126 |
+
public function generate_core_rules( Tribe__Events__Rewrite $rewrite ) {
|
| 127 |
$options = array(
|
| 128 |
'default_view' => Tribe__Events__Main::instance()->getOption( 'viewOption', 'month' ),
|
| 129 |
);
|
| 130 |
|
| 131 |
+
$rewrite
|
|
|
|
|
|
|
| 132 |
// Single
|
| 133 |
->single( array( '(\d{4}-\d{2}-\d{2})' ), array( Tribe__Events__Main::POSTTYPE => '%1', 'eventDate' => '%2' ) )
|
| 134 |
->single( array( '{{ all }}' ), array( Tribe__Events__Main::POSTTYPE => '%1', 'post_type' => Tribe__Events__Main::POSTTYPE, 'eventDisplay' => 'all' ) )
|
| 177 |
->tag( array( 'ical' ), array( 'ical' => 1 ) )
|
| 178 |
->tag( array( 'feed', '(feed|rdf|rss|rss2|atom)' ), array( 'feed' => '%2' ) )
|
| 179 |
->tag( array(), array( 'eventDisplay' => $options['default_view'] ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
}
|
| 181 |
|
| 182 |
/**
|
src/Tribe/Template/Month.php
CHANGED
|
@@ -620,7 +620,7 @@ if ( ! class_exists( 'Tribe__Events__Template__Month' ) ) {
|
|
| 620 |
'end_date' => $end_of_day,
|
| 621 |
'update_post_term_cache' => false,
|
| 622 |
'update_post_meta_cache' => false,
|
| 623 |
-
'no_found_rows' =>
|
| 624 |
'orderby' => 'menu_order',
|
| 625 |
), $this->args
|
| 626 |
);
|
|
@@ -628,11 +628,7 @@ if ( ! class_exists( 'Tribe__Events__Template__Month' ) ) {
|
|
| 628 |
// we don't need this join since we already checked it
|
| 629 |
unset ( $args[ Tribe__Events__Main::TAXONOMY ] );
|
| 630 |
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
$result->found_posts = count( $event_ids_on_date );
|
| 634 |
-
|
| 635 |
-
return $result;
|
| 636 |
}
|
| 637 |
|
| 638 |
/**
|
| 620 |
'end_date' => $end_of_day,
|
| 621 |
'update_post_term_cache' => false,
|
| 622 |
'update_post_meta_cache' => false,
|
| 623 |
+
'no_found_rows' => false,
|
| 624 |
'orderby' => 'menu_order',
|
| 625 |
), $this->args
|
| 626 |
);
|
| 628 |
// we don't need this join since we already checked it
|
| 629 |
unset ( $args[ Tribe__Events__Main::TAXONOMY ] );
|
| 630 |
|
| 631 |
+
return tribe_get_events( $args, true );
|
|
|
|
|
|
|
|
|
|
|
|
|
| 632 |
}
|
| 633 |
|
| 634 |
/**
|
the-events-calendar.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/*
|
| 3 |
Plugin Name: The Events Calendar
|
| 4 |
Description: The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.
|
| 5 |
-
Version: 3.12.
|
| 6 |
Author: Modern Tribe, Inc.
|
| 7 |
Author URI: http://m.tri.be/1x
|
| 8 |
Text Domain: the-events-calendar
|
| 2 |
/*
|
| 3 |
Plugin Name: The Events Calendar
|
| 4 |
Description: The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.
|
| 5 |
+
Version: 3.12.3
|
| 6 |
Author: Modern Tribe, Inc.
|
| 7 |
Author URI: http://m.tri.be/1x
|
| 8 |
Text Domain: the-events-calendar
|
