Note: All files are copied to the uploads directory. * Author: Dion Hulse * Author URI: https://dd32.id.au/ * Text Domain: add-from-server */ if ( !is_admin() ) { return; } const MIN_WP = '5.1'; const MIN_PHP = '7.0'; const VERSION = '3.4'; // Dynamic constants must be define()'d. define( __NAMESPACE__ . '\PLUGIN', plugin_basename( __FILE__ ) ); // Old versions of WordPress or PHP if ( version_compare( $GLOBALS['wp_version'], MIN_WP, '<' ) || version_compare( phpversion(), MIN_PHP, '<' ) ) { include dirname( __FILE__ ) . '/old-versions.php'; } else { include __DIR__ . '/class.add-from-server.php'; } // Load PHP8 compat functions. include __DIR__ . '/compat.php'; Plugin::instance();