Skip to content

Commit 9b90ad1

Browse files
committed
fix params
1 parent 446dcad commit 9b90ad1

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

includes/class-gumlet.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -310,21 +310,16 @@ protected function get_global_params() {
310310
$params = [];
311311

312312
// For now, only "auto" is supported.
313-
$auto = [];
314313
if ( ! empty ( $this->options['auto_format'] ) ) {
315-
array_push( $auto, 'format' );
314+
$params["format"] = "auto";
316315
}
317316

318-
if ( ! empty ( $this->options['auto_enhance'] ) ) {
319-
array_push( $auto, 'enhance' );
320-
}
317+
// if ( ! empty ( $this->options['auto_enhance'] ) ) {
318+
// array_push( $auto, 'enhance' );
319+
// }
321320

322321
if ( ! empty ( $this->options['auto_compress'] ) ) {
323-
array_push( $auto, 'compress' );
324-
}
325-
326-
if ( ! empty( $auto ) ) {
327-
$params['auto'] = implode( '%2C', $auto );
322+
$params["compress"] = "true";
328323
}
329324

330325
return $params;

0 commit comments

Comments
 (0)