From aa6207bae748d8830b52d84060026bcbd3348f1e Mon Sep 17 00:00:00 2001 From: Miriam Goldman Date: Thu, 17 Oct 2024 14:03:43 -0400 Subject: [PATCH] files --- README.md | 7 +++++++ wp-offload-media-overrides.php | 36 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 README.md create mode 100644 wp-offload-media-overrides.php diff --git a/README.md b/README.md new file mode 100644 index 0000000..31128bd --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# WP Offload Media Overrides + +The following plugin has been developed to allow WP Offload Media to work on Pantheon environments that have less resources available to them. + +## Install + +Download release, and upload to the /plugins/ folder, and activate via normal methods. \ No newline at end of file diff --git a/wp-offload-media-overrides.php b/wp-offload-media-overrides.php new file mode 100644 index 0000000..9fb2fe9 --- /dev/null +++ b/wp-offload-media-overrides.php @@ -0,0 +1,36 @@ +callbacks[10] ) ) { + // Clear all filters at priority 10 + unset( $wp_filter['wp_unique_filename']->callbacks[10] ); + + } + } + + +}); +