Commit 810fe78a authored by Joe Hoyle's avatar Joe Hoyle
Browse files

Attemp to get php 5.2 compat

parent ae3807de
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -14,8 +14,9 @@ if ( defined( 'WP_CLI' ) && WP_CLI ) {
	require_once dirname( __FILE__ ) . '/inc/class-s3-uploads-wp-cli-command.php';
}

add_action( 'plugins_loaded', function() {
add_action( 'plugins_loaded', 's3_uploads_init' );

function s3_uploads_init() {
	if ( ! defined( 'S3_UPLOADS_BUCKET' ) || ! defined( 'S3_UPLOADS_KEY' ) || ! defined( 'S3_UPLOADS_SECRET' ) ) {
		return;
	}
@@ -27,4 +28,4 @@ add_action( 'plugins_loaded', function() {
	remove_filter( 'admin_notices', 'wpthumb_errors' );

	add_action( 'wp_handle_sideload_prefilter', array( $instance, 'filter_sideload_move_temp_file_to_s3' ) );
});
}
 No newline at end of file