Skip to content

Commit 49c2b56

Browse files
committed
Merge pull request #6 from palepurple/master
allow xmlrpc media upload requests to work too ...
2 parents 87a84cf + 1b454e1 commit 49c2b56

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/class-tiny-settings.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ class Tiny_Settings extends Tiny_WP_Base {
3030
public function __construct() {
3131
parent::__construct();
3232
$this->notices = new Tiny_Notices();
33+
34+
if(defined('XMLRPC_REQUEST') && XMLRPC_REQUEST && $this->get_api_key()) {
35+
$this->compressor = Tiny_Compress::get_compressor($this->get_api_key(), $this->get_method('after_compress_callback'));
36+
}
3337
}
3438

3539
public function admin_init() {

0 commit comments

Comments
 (0)