From 1dc764764055243acd07d0c4f480e6e912be6870 Mon Sep 17 00:00:00 2001 From: Matt Lauber Date: Tue, 20 Mar 2018 17:05:07 -0400 Subject: [PATCH] Add plugin-priority fields for core plugins (#3113) * Bug in plugin Ordering Comparing plugin A without a `plugin-priority` field to plugin B with a `plugin-priority= 1` results in the plugins being ordered B, A when it seems like they should be ordered A, B. * Switch to setting a plugin-priority on the built in themes to allow overriding parts of them. --- themes/tiddlywiki/snowwhite/plugin.info | 3 ++- themes/tiddlywiki/vanilla/plugin.info | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/tiddlywiki/snowwhite/plugin.info b/themes/tiddlywiki/snowwhite/plugin.info index 0b2784cba4..348802d783 100644 --- a/themes/tiddlywiki/snowwhite/plugin.info +++ b/themes/tiddlywiki/snowwhite/plugin.info @@ -5,5 +5,6 @@ "core-version": ">=5.0.0", "plugin-type": "theme", "description": "Emphasises individual tiddlers", - "dependents": ["$:/themes/tiddlywiki/vanilla"] + "dependents": ["$:/themes/tiddlywiki/vanilla"], + "plugin-priority": "0" } diff --git a/themes/tiddlywiki/vanilla/plugin.info b/themes/tiddlywiki/vanilla/plugin.info index 349fc2e637..2317900a16 100644 --- a/themes/tiddlywiki/vanilla/plugin.info +++ b/themes/tiddlywiki/vanilla/plugin.info @@ -4,5 +4,6 @@ "author": "JeremyRuston", "core-version": ">=5.0.0", "plugin-type": "theme", - "description": "Basic theme" + "description": "Basic theme", + "plugin-priority": "0" }