Version Description
= [5.0] =
Please see the changelog for the complete list of changes in this release. Previous versions of The Events Calendar are not cross-compatible with 5.X add-ons. Remember to always make a backup of your database and files before updating!
Download this release
Release Info
| Developer | Camwynsp |
| Plugin | |
| Version | 5.14.0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 5.14.0.2 to 5.14.0.3
- common/vendor/autoload.php +1 -1
- common/vendor/autoload_52.php +1 -1
- common/vendor/composer/autoload_real.php +4 -4
- common/vendor/composer/autoload_real_52.php +3 -3
- common/vendor/composer/autoload_static.php +5 -5
- lang/the-events-calendar-de_CH.mo +0 -0
- lang/the-events-calendar-de_DE.mo +0 -0
- lang/the-events-calendar-pl_PL.mo +0 -0
- readme.txt +5 -1
- src/Tribe/Main.php +3 -3
- src/Tribe/Organizer.php +2 -6
- src/Tribe/Venue.php +4 -4
- the-events-calendar.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
common/vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit85e4708e161eaba84192934423f9d20f::getLoader();
|
common/vendor/autoload_52.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit9f3c449b40df600a557681aa4f5065b2::getLoader();
|
common/vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit9a521fa1808419fd199215db5bb24c8e
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
-
call_user_func(\Composer\Autoload\
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit85e4708e161eaba84192934423f9d20f
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit85e4708e161eaba84192934423f9d20f', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit85e4708e161eaba84192934423f9d20f', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit85e4708e161eaba84192934423f9d20f::getInitializer($loader));
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
common/vendor/composer/autoload_real_52.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
-
class
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitcc0f661df4f869b9b135db3c714eb548 {
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit9f3c449b40df600a557681aa4f5065b2 {
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit9f3c449b40df600a557681aa4f5065b2', 'loadClassLoader'), true /*, true */);
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit9f3c449b40df600a557681aa4f5065b2', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
common/vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'T' =>
|
|
@@ -261,10 +261,10 @@ class ComposerStaticInit9a521fa1808419fd199215db5bb24c8e
|
|
| 261 |
public static function getInitializer(ClassLoader $loader)
|
| 262 |
{
|
| 263 |
return \Closure::bind(function () use ($loader) {
|
| 264 |
-
$loader->prefixLengthsPsr4 =
|
| 265 |
-
$loader->prefixDirsPsr4 =
|
| 266 |
-
$loader->prefixesPsr0 =
|
| 267 |
-
$loader->classMap =
|
| 268 |
|
| 269 |
}, null, ClassLoader::class);
|
| 270 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInit85e4708e161eaba84192934423f9d20f
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'T' =>
|
| 261 |
public static function getInitializer(ClassLoader $loader)
|
| 262 |
{
|
| 263 |
return \Closure::bind(function () use ($loader) {
|
| 264 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit85e4708e161eaba84192934423f9d20f::$prefixLengthsPsr4;
|
| 265 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit85e4708e161eaba84192934423f9d20f::$prefixDirsPsr4;
|
| 266 |
+
$loader->prefixesPsr0 = ComposerStaticInit85e4708e161eaba84192934423f9d20f::$prefixesPsr0;
|
| 267 |
+
$loader->classMap = ComposerStaticInit85e4708e161eaba84192934423f9d20f::$classMap;
|
| 268 |
|
| 269 |
}, null, ClassLoader::class);
|
| 270 |
}
|
lang/the-events-calendar-de_CH.mo
CHANGED
|
Binary file
|
lang/the-events-calendar-de_DE.mo
CHANGED
|
Binary file
|
lang/the-events-calendar-pl_PL.mo
CHANGED
|
Binary file
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Contributors: theeventscalendar, borkweb, bordoni, brianjessee, aguseo, camwynsp
|
|
| 4 |
Tags: events, calendar, event, schedule, organizer
|
| 5 |
Donate link: https://evnt.is/29
|
| 6 |
Requires at least: 5.6
|
| 7 |
-
Stable tag: 5.14.0.
|
| 8 |
Tested up to: 5.9.0
|
| 9 |
Requires PHP: 7.1
|
| 10 |
License: GPLv2 or later
|
|
@@ -221,6 +221,10 @@ Remember to always make a backup of your database and files before updating!
|
|
| 221 |
|
| 222 |
== Changelog ==
|
| 223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
= [5.14.0.2] 2022-02-22 =
|
| 225 |
|
| 226 |
* Fix - Correct conditional in Filter Bar upsell banner. [TEC-4284]
|
| 4 |
Tags: events, calendar, event, schedule, organizer
|
| 5 |
Donate link: https://evnt.is/29
|
| 6 |
Requires at least: 5.6
|
| 7 |
+
Stable tag: 5.14.0.3
|
| 8 |
Tested up to: 5.9.0
|
| 9 |
Requires PHP: 7.1
|
| 10 |
License: GPLv2 or later
|
| 221 |
|
| 222 |
== Changelog ==
|
| 223 |
|
| 224 |
+
= [5.14.0.3] 2022-02-25 =
|
| 225 |
+
|
| 226 |
+
* Fix - Ensure the Venue and Organizer metaboxes load when creating a new post of that type. [BTRIA-1152]
|
| 227 |
+
|
| 228 |
= [5.14.0.2] 2022-02-22 =
|
| 229 |
|
| 230 |
* Fix - Correct conditional in Filter Bar upsell banner. [TEC-4284]
|
src/Tribe/Main.php
CHANGED
|
@@ -32,7 +32,7 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
| 32 |
const VENUE_POST_TYPE = 'tribe_venue';
|
| 33 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
| 34 |
|
| 35 |
-
const VERSION = '5.14.0.
|
| 36 |
|
| 37 |
/**
|
| 38 |
* Min Pro Addon
|
|
@@ -780,8 +780,8 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
| 780 |
|
| 781 |
/* edit-post metaboxes */
|
| 782 |
add_action( 'admin_menu', [ $this, 'addEventBox' ] );
|
| 783 |
-
add_action( '
|
| 784 |
-
add_action( '
|
| 785 |
|
| 786 |
add_action( 'wp_insert_post', [ $this, 'addPostOrigin' ], 10, 2 );
|
| 787 |
add_action( 'save_post', [ $this, 'addEventMeta' ], 15, 2 );
|
| 32 |
const VENUE_POST_TYPE = 'tribe_venue';
|
| 33 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
| 34 |
|
| 35 |
+
const VERSION = '5.14.0.3';
|
| 36 |
|
| 37 |
/**
|
| 38 |
* Min Pro Addon
|
| 780 |
|
| 781 |
/* edit-post metaboxes */
|
| 782 |
add_action( 'admin_menu', [ $this, 'addEventBox' ] );
|
| 783 |
+
add_action( 'add_meta_boxes', [ 'Tribe__Events__Venue', 'add_post_type_metabox' ] );
|
| 784 |
+
add_action( 'add_meta_boxes', [ 'Tribe__Events__Organizer', 'add_post_type_metabox' ] );
|
| 785 |
|
| 786 |
add_action( 'wp_insert_post', [ $this, 'addPostOrigin' ], 10, 2 );
|
| 787 |
add_action( 'save_post', [ $this, 'addEventMeta' ], 15, 2 );
|
src/Tribe/Organizer.php
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
-
use Automattic\WooCommerce\Vendor\League\Container\Argument\ClassName;
|
| 4 |
-
|
| 5 |
class Tribe__Events__Organizer extends Tribe__Events__Linked_Posts__Base {
|
| 6 |
const POSTTYPE = 'tribe_organizer';
|
| 7 |
|
|
@@ -720,15 +718,13 @@ class Tribe__Events__Organizer extends Tribe__Events__Linked_Posts__Base {
|
|
| 720 |
* @since 5.14.0
|
| 721 |
*/
|
| 722 |
public static function add_post_type_metabox() {
|
| 723 |
-
|
| 724 |
-
if ( empty( $request_vars['post'] ) || ! tribe_is_organizer( $request_vars['post'] ) ) {
|
| 725 |
return;
|
| 726 |
}
|
| 727 |
|
| 728 |
-
$self = new Tribe__Events__Organizer;
|
| 729 |
add_meta_box(
|
| 730 |
'tribe_events_organizer_details',
|
| 731 |
-
sprintf( esc_html__( '%s Information', 'the-events-calendar' ),
|
| 732 |
[ Tribe__Events__Main::instance(), 'OrganizerMetaBox' ],
|
| 733 |
self::POSTTYPE,
|
| 734 |
'normal',
|
| 1 |
<?php
|
| 2 |
|
|
|
|
|
|
|
| 3 |
class Tribe__Events__Organizer extends Tribe__Events__Linked_Posts__Base {
|
| 4 |
const POSTTYPE = 'tribe_organizer';
|
| 5 |
|
| 718 |
* @since 5.14.0
|
| 719 |
*/
|
| 720 |
public static function add_post_type_metabox() {
|
| 721 |
+
if ( ! Tribe__Admin__Helpers::instance()->is_post_type_screen( self::POSTTYPE ) ) {
|
|
|
|
| 722 |
return;
|
| 723 |
}
|
| 724 |
|
|
|
|
| 725 |
add_meta_box(
|
| 726 |
'tribe_events_organizer_details',
|
| 727 |
+
sprintf( esc_html__( '%s Information', 'the-events-calendar' ), tribe( 'tec.linked-posts.organizer' )->get_organizer_label_singular() ),
|
| 728 |
[ Tribe__Events__Main::instance(), 'OrganizerMetaBox' ],
|
| 729 |
self::POSTTYPE,
|
| 730 |
'normal',
|
src/Tribe/Venue.php
CHANGED
|
@@ -273,20 +273,20 @@ class Tribe__Events__Venue extends Tribe__Events__Linked_Posts__Base {
|
|
| 273 |
* @since 5.14.0
|
| 274 |
*/
|
| 275 |
public static function add_post_type_metabox() {
|
| 276 |
-
|
| 277 |
-
if (
|
| 278 |
return;
|
| 279 |
}
|
| 280 |
-
$self = new Tribe__Events__Venue;
|
| 281 |
|
| 282 |
add_meta_box(
|
| 283 |
'tribe_events_venue_details',
|
| 284 |
-
sprintf( esc_html__( '%s Information', 'the-events-calendar' ),
|
| 285 |
[ Tribe__Events__Main::instance(), 'VenueMetaBox' ],
|
| 286 |
self::POSTTYPE,
|
| 287 |
'normal',
|
| 288 |
'high'
|
| 289 |
);
|
|
|
|
| 290 |
}
|
| 291 |
|
| 292 |
/**
|
| 273 |
* @since 5.14.0
|
| 274 |
*/
|
| 275 |
public static function add_post_type_metabox() {
|
| 276 |
+
|
| 277 |
+
if ( ! Tribe__Admin__Helpers::instance()->is_post_type_screen( self::POSTTYPE ) ) {
|
| 278 |
return;
|
| 279 |
}
|
|
|
|
| 280 |
|
| 281 |
add_meta_box(
|
| 282 |
'tribe_events_venue_details',
|
| 283 |
+
sprintf( esc_html__( '%s Information', 'the-events-calendar' ), tribe( 'tec.linked-posts.venue' )->get_venue_label_singular() ),
|
| 284 |
[ Tribe__Events__Main::instance(), 'VenueMetaBox' ],
|
| 285 |
self::POSTTYPE,
|
| 286 |
'normal',
|
| 287 |
'high'
|
| 288 |
);
|
| 289 |
+
|
| 290 |
}
|
| 291 |
|
| 292 |
/**
|
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: 5.14.0.
|
| 6 |
* Author: The Events Calendar
|
| 7 |
* Author URI: https://evnt.is/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: 5.14.0.3
|
| 6 |
* Author: The Events Calendar
|
| 7 |
* Author URI: https://evnt.is/1x
|
| 8 |
* Text Domain: the-events-calendar
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInitf350131d1dfce6b8b439ad814c836c24::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit05c2c2f3738a17f72549ae022045f356
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
-
call_user_func(\Composer\Autoload\
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInitf350131d1dfce6b8b439ad814c836c24
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInitf350131d1dfce6b8b439ad814c836c24', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitf350131d1dfce6b8b439ad814c836c24', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitf350131d1dfce6b8b439ad814c836c24::getInitializer($loader));
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'T' =>
|
|
@@ -141,9 +141,9 @@ class ComposerStaticInit05c2c2f3738a17f72549ae022045f356
|
|
| 141 |
public static function getInitializer(ClassLoader $loader)
|
| 142 |
{
|
| 143 |
return \Closure::bind(function () use ($loader) {
|
| 144 |
-
$loader->prefixLengthsPsr4 =
|
| 145 |
-
$loader->prefixDirsPsr4 =
|
| 146 |
-
$loader->classMap =
|
| 147 |
|
| 148 |
}, null, ClassLoader::class);
|
| 149 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInitf350131d1dfce6b8b439ad814c836c24
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'T' =>
|
| 141 |
public static function getInitializer(ClassLoader $loader)
|
| 142 |
{
|
| 143 |
return \Closure::bind(function () use ($loader) {
|
| 144 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitf350131d1dfce6b8b439ad814c836c24::$prefixLengthsPsr4;
|
| 145 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitf350131d1dfce6b8b439ad814c836c24::$prefixDirsPsr4;
|
| 146 |
+
$loader->classMap = ComposerStaticInitf350131d1dfce6b8b439ad814c836c24::$classMap;
|
| 147 |
|
| 148 |
}, null, ClassLoader::class);
|
| 149 |
}
|
