From 8bf74b79b19fec43cd52e744a4548b94b439f3ef Mon Sep 17 00:00:00 2001 From: arttu Date: Fri, 11 Jan 2019 10:41:19 +0200 Subject: [PATCH 1/2] have manifest.json support all languages --- content/themes/custom/functions/function-manifest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/themes/custom/functions/function-manifest.php b/content/themes/custom/functions/function-manifest.php index 96b73cf..43e11bb 100644 --- a/content/themes/custom/functions/function-manifest.php +++ b/content/themes/custom/functions/function-manifest.php @@ -7,7 +7,7 @@ * Match manifest.json query for all or no language */ add_action( 'init', function() { - add_rewrite_rule( '^(fi|en|sv|)(?:/|)manifest.json?', 'index.php?manifest=true&lang=$matches[1]', 'top' ); + add_rewrite_rule( '^([a-z]*)(?:/|)manifest.json?', 'index.php?manifest=true&lang=$matches[1]', 'top' ); }); /** From c95d3b6c2aa89cc5f74bea12be82323505991fb8 Mon Sep 17 00:00:00 2001 From: arttu Date: Fri, 11 Jan 2019 12:21:48 +0200 Subject: [PATCH 2/2] update dustpress & disable dustpress cache --- composer.lock | 10 +++++----- content/themes/custom/functions.php | 3 --- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/composer.lock b/composer.lock index 12125f6..e073b68 100644 --- a/composer.lock +++ b/composer.lock @@ -125,16 +125,16 @@ }, { "name": "devgeniem/dustpress", - "version": "1.15.0", + "version": "1.19.1", "source": { "type": "git", "url": "https://github.com/devgeniem/dustpress.git", - "reference": "1db385b1d9446bc824ea5b82d286d7f7ec49973b" + "reference": "94a951a3e9920d28000c1fb6daf61fbac1a4acbd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/devgeniem/dustpress/zipball/1db385b1d9446bc824ea5b82d286d7f7ec49973b", - "reference": "1db385b1d9446bc824ea5b82d286d7f7ec49973b", + "url": "https://api.github.com/repos/devgeniem/dustpress/zipball/94a951a3e9920d28000c1fb6daf61fbac1a4acbd", + "reference": "94a951a3e9920d28000c1fb6daf61fbac1a4acbd", "shasum": "" }, "type": "library", @@ -170,7 +170,7 @@ "theme", "wordpress" ], - "time": "2018-05-09T10:18:19+00:00" + "time": "2019-01-07T10:43:54+00:00" }, { "name": "devgeniem/dustpress-debugger", diff --git a/content/themes/custom/functions.php b/content/themes/custom/functions.php index 1aa7fd1..f7cde94 100644 --- a/content/themes/custom/functions.php +++ b/content/themes/custom/functions.php @@ -9,9 +9,6 @@ function err($str) { // Instantiate DustPress dustpress(); -// Enable dustpress cache -add_filter( 'dustpress/settings/cache', '__return_true' ); - // Add geniem functions include_once( 'functions/function-geniem_admin.php' );