'1.0b1', ); $aws_plugin_version_required = '0.3.4'; require dirname( __FILE__ ) . '/classes/wp-aws-compatibility-check.php'; global $as3cf_compat_check; $as3cf_compat_check = new WP_AWS_Compatibility_Check( 'WP Offload S3', 'amazon-s3-and-cloudfront', __FILE__, 'Amazon Web Services', 'amazon-web-services', $aws_plugin_version_required ); function as3cf_init( $aws ) { global $as3cf_compat_check; if ( ! $as3cf_compat_check->is_compatible() ) { return; } global $as3cf; $abspath = dirname( __FILE__ ); require_once $abspath . '/include/functions.php'; require_once $abspath . '/classes/as3cf-error.php'; require_once $abspath . '/classes/as3cf-upgrade.php'; require_once $abspath . '/classes/upgrades/as3cf-region-meta.php'; require_once $abspath . '/classes/upgrades/as3cf-file-sizes.php'; require_once $abspath . '/classes/upgrades/as3cf-meta-wp-error.php'; require_once $abspath . '/classes/as3cf-notices.php'; require_once $abspath . '/classes/as3cf-stream-wrapper.php'; require_once $abspath . '/classes/as3cf-plugin-compatibility.php'; require_once $abspath . '/classes/amazon-s3-and-cloudfront.php'; $as3cf = new Amazon_S3_And_CloudFront( __FILE__, $aws ); } add_action( 'aws_init', 'as3cf_init' );