| @@ -119,8 +119,14 @@ | ||
| 119 | 119 | $opts = $this->get_settings(); |
| 120 | 120 | if ( empty( $opts['enabled'] ) || empty( $opts['cdn_url'] ) ) { |
| 121 | 121 | return; |
| 122 | 122 | } |
| 123 | + // Something else on the site has taken over serving these files. The | |
| 124 | + // switch stays as the owner left it, and nothing is rewritten while | |
| 125 | + // the block lasts. See Module::blocked_by(). | |
| 126 | + if ( null !== $this->blocked_by() ) { | |
| 127 | + return; | |
| 128 | + } | |
| 123 | 129 | Cdn_Rewriter::reset_state(); |
| 124 | 130 | |
| 125 | 131 | // Attachment URLs still go through their own filter: media-library |
| 126 | 132 | // URLs are frequently consumed as PHP strings (feeds, oEmbed, REST |