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
64 lines
1.8 KiB
PHP
64 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Code Snippets
|
|
* Plugin URI: https://codesnippets.pro
|
|
* Description: An easy, clean and simple way to run code snippets on your site. No need to edit to your theme's functions.php file again!
|
|
* Author: Code Snippets Pro
|
|
* Author URI: https://codesnippets.pro
|
|
* License: GPL-2.0-or-later
|
|
* License URI: license.txt
|
|
* Text Domain: code-snippets
|
|
* Version: 3.6.8
|
|
* Requires PHP: 7.4
|
|
* Requires at least: 5.0
|
|
*
|
|
* @version 3.6.8
|
|
* @package Code_Snippets
|
|
* @author Shea Bunge <shea@codesnippets.pro>
|
|
* @copyright 2012-2023 Code Snippets Pro
|
|
* @license GPL-2.0-or-later https://spdx.org/licenses/GPL-2.0-or-later.html
|
|
* @link https://github.com/codesnippetspro/code-snippets
|
|
*
|
|
* phpcs:disable Modernize.FunctionCalls.Dirname.FileConstant
|
|
*/
|
|
|
|
// Exit if accessed directly.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
return;
|
|
}
|
|
|
|
// Halt loading here if the plugin is already loaded, or we're running an incompatible version of PHP.
|
|
if ( ! defined( 'CODE_SNIPPETS_FILE' ) && version_compare( phpversion(), '7.4', '>=' ) ) {
|
|
|
|
/**
|
|
* The current plugin version.
|
|
*
|
|
* Should be set to the same value as set above.
|
|
*
|
|
* @const string
|
|
*/
|
|
define( 'CODE_SNIPPETS_VERSION', '3.6.8' );
|
|
|
|
/**
|
|
* The full path to the main file of this plugin.
|
|
*
|
|
* This can later be passed to functions such as plugin_dir_path(), plugins_url() and plugin_basename()
|
|
* to retrieve information about plugin paths.
|
|
*
|
|
* @since 2.0.0
|
|
* @const string
|
|
*/
|
|
define( 'CODE_SNIPPETS_FILE', __FILE__ );
|
|
|
|
/**
|
|
* Used to determine which version of Code Snippets is running.
|
|
*
|
|
* @since 3.0.0
|
|
* @onst boolean
|
|
*/
|
|
define( 'CODE_SNIPPETS_PRO', true );
|
|
|
|
require_once dirname( __FILE__ ) . '/php/load.php';
|
|
} else {
|
|
require_once dirname( __FILE__ ) . '/php/deactivation-notice.php';
|
|
}
|