This commit introduces a more reliable and consistent approach to setting up the development environment using backups: - Add setup-from-backup.sh script for environment setup from existing backups - Standardize script naming and organization - Move obsolete scripts to bin/obsolete directory - Update documentation with new workflow instructions - Create migration guide for transitioning to new workflow - Update Memory Bank with workflow improvements The new workflow provides: - More reliable environment setup - Faster setup process - Offline development capability - Consistent development environments across team members Breaking changes: - setup-dev.sh is replaced by setup-from-backup.sh - sync-and-setup.sh is replaced by separate scripts - verify-with-wpcli.sh is no longer used Migration path is documented in MIGRATION_GUIDE.md
82 lines
2.6 KiB
PHP
82 lines
2.6 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Event Tickets
|
|
* Plugin URI: https://evnt.is/1acb
|
|
* Description: Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event.
|
|
* Version: 5.20.1
|
|
* Requires at least: 6.5
|
|
* Requires PHP: 7.4
|
|
* Author: The Events Calendar
|
|
* Author URI: https://evnt.is/1aor
|
|
* License: GPLv2 or later
|
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
* Text Domain: event-tickets
|
|
* Domain Path: /lang/
|
|
* Elementor tested up to: 3.23.1
|
|
* Elementor Pro tested up to: 3.23.0
|
|
*/
|
|
|
|
/*
|
|
Copyright 2010-2022 by The Events Calendar and the contributors
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
die( '-1' );
|
|
}
|
|
|
|
define( 'EVENT_TICKETS_DIR', dirname( __FILE__ ) );
|
|
define( 'EVENT_TICKETS_MAIN_PLUGIN_FILE', __FILE__ );
|
|
|
|
// Load the required PHP min version functions.
|
|
require_once dirname( EVENT_TICKETS_MAIN_PLUGIN_FILE ) . '/src/functions/php-min-version.php';
|
|
|
|
// Load the Composer autoload file.
|
|
require_once dirname( EVENT_TICKETS_MAIN_PLUGIN_FILE ) . '/vendor/autoload.php';
|
|
|
|
/**
|
|
* Verifies if we need to warn the user about min PHP version and bail to avoid fatal errors.
|
|
*/
|
|
if ( tribe_is_not_min_php_version() ) {
|
|
tribe_not_php_version_textdomain( 'event-tickets', EVENT_TICKETS_MAIN_PLUGIN_FILE );
|
|
|
|
/**
|
|
* Include the plugin name into the correct place.
|
|
*
|
|
* @since 4.10
|
|
*
|
|
* @param array $names Current list of names.
|
|
*
|
|
* @return array
|
|
*/
|
|
function tribe_tickets_not_php_version_plugin_name( $names ) {
|
|
$names['event-tickets'] = esc_html__( 'Event Tickets', 'event-tickets' );
|
|
|
|
return $names;
|
|
}
|
|
|
|
add_filter( 'tribe_not_php_version_names', 'tribe_tickets_not_php_version_plugin_name' );
|
|
if ( ! has_filter( 'admin_notices', 'tribe_not_php_version_notice' ) ) {
|
|
add_action( 'admin_notices', 'tribe_not_php_version_notice' );
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Require the main plugin class.
|
|
require_once EVENT_TICKETS_DIR . '/src/Tribe/Main.php';
|
|
|
|
// Load the plugin.
|
|
Tribe__Tickets__Main::instance()->do_hooks();
|