From 3abfe35c7a5fb3449c6d0799b41d48c80f3f6dbd Mon Sep 17 00:00:00 2001 From: Yan Minari Date: Sat, 10 Jul 2021 20:42:30 -0300 Subject: [PATCH 1/2] fix: local stream wrapper class name --- inc/class-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class-plugin.php b/inc/class-plugin.php index 61671683..30639e17 100644 --- a/inc/class-plugin.php +++ b/inc/class-plugin.php @@ -144,7 +144,7 @@ public function tear_down() { */ public function register_stream_wrapper() { if ( defined( 'S3_UPLOADS_USE_LOCAL' ) && S3_UPLOADS_USE_LOCAL ) { - stream_wrapper_register( 's3', 'S3_Uploads_Local_Stream_Wrapper', STREAM_IS_URL ); + stream_wrapper_register( 's3', 'S3_Uploads\Local_Stream_Wrapper', STREAM_IS_URL ); } else { Stream_Wrapper::register( $this ); $acl = defined( 'S3_UPLOADS_OBJECT_ACL' ) ? S3_UPLOADS_OBJECT_ACL : 'public-read'; From 54baeec2dc18ac710d996ea45200bd4ca6b4c819 Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Fri, 30 Jul 2021 09:58:11 +0100 Subject: [PATCH 2/2] Load S3 Uploads at 0 priority, rather than 10 This allows other plugins on the default priority to load correctly. --- s3-uploads.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3-uploads.php b/s3-uploads.php index e3b72cfd..289d9ab5 100644 --- a/s3-uploads.php +++ b/s3-uploads.php @@ -10,7 +10,7 @@ require_once __DIR__ . '/inc/namespace.php'; -add_action( 'plugins_loaded', 'S3_Uploads\\init' ); +add_action( 'plugins_loaded', 'S3_Uploads\\init', 0 ); if ( defined( 'WP_CLI' ) && WP_CLI ) { WP_CLI::add_command( 's3-uploads', 'S3_Uploads\\WP_CLI_Command' );