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

Po 328 #89

Open
wants to merge 2 commits into
base: PO-328-base
Choose a base branch
from
Open
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 composer.lock

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

3 changes: 0 additions & 3 deletions content/themes/custom/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

Expand Down
2 changes: 1 addition & 1 deletion content/themes/custom/functions/function-manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
});

/**
Expand Down