Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APO-286: Prevent default settings from enabling Auto Minify due to deprecation #547

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions compiled.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"container.dnsRecordEditor.thead.value": "Wert",
"container.dnsRecordEditor.thead.ttl": "TTL",
"container.dnsRecordEditor.thead.status": "Status",
"container.minifyCard.title": "Automatisch herabsetzen",
"container.minifyCard.description": "Dateigröße des Quelltexts auf Ihrer Webseite verringern.",
"container.minifyCard.css": "CSS",
"container.minifyCard.html": "HTML",
"container.minifyCard.javascript": "JavaScript",
"container.purgeCacheCard.button": "Alles löschen",
"container.purgeCacheCard.title": "Cache löschen",
"container.purgeCacheCard.description": "Löchen Sie gecachte Dateien, um Cloudflare zu zwingen, eine neue frische Version dieser Dateien von Ihrem Webserver zu holen.",
Expand Down
6 changes: 0 additions & 6 deletions lang/en.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions lang/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"container.dnsRecordEditor.thead.value": "Valor",
"container.dnsRecordEditor.thead.ttl": "TTL",
"container.dnsRecordEditor.thead.status": "Estado",
"container.minifyCard.title": "Autominificar",
"container.minifyCard.description": "Reduce el tamaño del archivo del código fuente de tu sitio web.",
"container.minifyCard.css": "CSS",
"container.minifyCard.html": "HTML",
"container.minifyCard.javascript": "JavaScript",
"container.purgeCacheCard.button": "Borrar todo",
"container.purgeCacheCard.title": "Borrar caché",
"container.purgeCacheCard.description": "Borra los archivos en caché para forzar a Cloudflare a buscar una versión actualizada de dichos archivos de tu servidor web.",
Expand Down
5 changes: 0 additions & 5 deletions lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"container.dnsRecordEditor.thead.value": "Valeur",
"container.dnsRecordEditor.thead.ttl": "TTL",
"container.dnsRecordEditor.thead.status": "Statut",
"container.minifyCard.title": "Auto Réduction",
"container.minifyCard.description": "Réduit la taille du fichier source de votre site web.",
"container.minifyCard.css": "CSS",
"container.minifyCard.html": "HTML",
"container.minifyCard.javascript": "JavaScript",
"container.purgeCacheCard.button": "Tout vider",
"container.purgeCacheCard.title": "Vider le cache",
"container.purgeCacheCard.description": "Supprime les fichiers en cache pour forcer Cloudflare à récupérer une version récente de ces fichiers sur votre serveur web.",
Expand Down
5 changes: 0 additions & 5 deletions lang/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"container.dnsRecordEditor.thead.value": "Valore",
"container.dnsRecordEditor.thead.ttl": "TTL",
"container.dnsRecordEditor.thead.status": "Stato",
"container.minifyCard.title": "Compressione Automatica",
"container.minifyCard.description": "Riduci la dimensione del file del codice sorgente sul tuo sito web.",
"container.minifyCard.css": "CSS",
"container.minifyCard.html": "HTML",
"container.minifyCard.javascript": "JavaScript",
"container.purgeCacheCard.button": "Cancella Tutto",
"container.purgeCacheCard.title": "Svuota Cache",
"container.purgeCacheCard.description": "Cancella i file nella cache per forzare Cloudflare a recuperare una versione aggiornata di tali file dal tuo web server.",
Expand Down
5 changes: 0 additions & 5 deletions lang/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"container.dnsRecordEditor.thead.value": "waarde",
"container.dnsRecordEditor.thead.ttl": "TTL",
"container.dnsRecordEditor.thead.status": "status",
"container.minifyCard.title": "Auto Minimaliseren",
"container.minifyCard.description": "Reduceer de documentgrootte of de broncode op uw website.",
"container.minifyCard.css": "CSS",
"container.minifyCard.html": "HTML",
"container.minifyCard.javascript": "JavaScript",
"container.purgeCacheCard.button": "Verwijder alles",
"container.purgeCacheCard.title": "Cache legen",
"container.purgeCacheCard.description": "Verwijder cached documenten om Cloudflare te dwingen om een nieuwe versie te maken van de files op uw web server." ,
Expand Down
5 changes: 0 additions & 5 deletions lang/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"container.dnsRecordEditor.thead.value": "Valor",
"container.dnsRecordEditor.thead.ttl": "TTL",
"container.dnsRecordEditor.thead.status": "Status",
"container.minifyCard.title": "Reduzir Automaticamente",
"container.minifyCard.description": "Reduzir o tamanho do ficheiro do código fonte da sua página.",
"container.minifyCard.css": "CSS",
"container.minifyCard.html": "HTML",
"container.minifyCard.javascript": "JavaScript",
"container.purgeCacheCard.button": "Limpar Tudo",
"container.purgeCacheCard.title": "Limpar a Cache",
"container.purgeCacheCard.description": "Limpe os ficheiros da cache para forçar a Cloudflare a procurar novas versões destes ficheiros no seu servidor.",
Expand Down
4 changes: 2 additions & 2 deletions src/Test/WordPress/PluginActionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function testReturnApplyDefaultSettingsWithZoneWithPlanBIZ()
);
$this->mockWordPressClientAPI->method('responseOk')->willReturn(true);
$this->mockWordPressClientAPI->method('changeZoneSettings')->willReturn(true);
$this->mockWordPressClientAPI->expects($this->exactly(16))->method('changeZoneSettings');
$this->mockWordPressClientAPI->expects($this->exactly(15))->method('changeZoneSettings');

$this->pluginActions->applyDefaultSettings();
}
Expand All @@ -89,7 +89,7 @@ public function testReturnApplyDefaultSettingsWithZoneWithFreePlan()
);
$this->mockWordPressClientAPI->method('responseOk')->willReturn(true);
$this->mockWordPressClientAPI->method('changeZoneSettings')->willReturn(true);
$this->mockWordPressClientAPI->expects($this->exactly(14))->method('changeZoneSettings');
$this->mockWordPressClientAPI->expects($this->exactly(13))->method('changeZoneSettings');

$this->pluginActions->applyDefaultSettings();
}
Expand Down
5 changes: 0 additions & 5 deletions src/WordPress/PluginActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ public function applyDefaultSettings()
throw new ZoneSettingFailException();
}

$result &= $this->clientAPI->changeZoneSettings($zoneId, 'minify', array('value' => array('css' => 'on', 'html' => 'on', 'js' => 'on')));
if (!$result) {
throw new ZoneSettingFailException();
}

$result &= $this->clientAPI->changeZoneSettings($zoneId, 'browser_cache_ttl', array('value' => 14400));
if (!$result) {
throw new ZoneSettingFailException();
Expand Down
Loading