From 98abb3a2370d93b9934fb8ebf9c6c56132fe8069 Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Fri, 22 May 2020 16:42:48 -0700 Subject: [PATCH] minimalism theme added a theme and a patch as an example --- composer.json | 2 +- composer.lock | 20 ++++++++++--------- composer.patches.json | 5 ++++- patches/0001-Patch-theme-minimalism.patch | 14 +++++++++++++ ...Updates-to-run-checks-during-cron-jo.patch | 9 --------- 5 files changed, 30 insertions(+), 20 deletions(-) create mode 100644 patches/0001-Patch-theme-minimalism.patch diff --git a/composer.json b/composer.json index e4dee522..47fa5548 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "johnpbloch/wordpress": "^5.4", "bjornjohansen/wplang": "^0.1.1", "lkwdwrd/wp-muplugin-loader": "^1.0", - "wpackagist-plugin/disable-wordpress-updates": "^1.6" + "wpackagist-theme/minimalism": "1.0.3" }, "extra": { "wordpress-install-dir": "web/wp", diff --git a/composer.lock b/composer.lock index c919239b..ff49fa34 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "c11b8cb708d8b64038e9a413cd8f254c", + "content-hash": "6f5c67e11208010e0856439723cf37c1", "packages": [ { "name": "bjornjohansen/wplang", @@ -394,27 +394,29 @@ "time": "2018-04-20T22:09:51+00:00" }, { - "name": "wpackagist-plugin/disable-wordpress-updates", - "version": "1.6.6", + "name": "wpackagist-theme/minimalism", + "version": "1.0.3", "source": { "type": "svn", - "url": "https://plugins.svn.wordpress.org/disable-wordpress-updates/", - "reference": "tags/1.6.6" + "url": "https://themes.svn.wordpress.org/minimalism/", + "reference": "1.0.3" }, "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/plugin/disable-wordpress-updates.1.6.6.zip", + "url": "https://downloads.wordpress.org/theme/minimalism.1.0.3.zip", "reference": null, "shasum": null }, "require": { "composer/installers": "~1.0" }, - "type": "wordpress-muplugin", + "type": "wordpress-theme", "extra": { - "patches_applied": [] + "patches_applied": { + "Minimalism theme footer": "patches/0001-Patch-theme-minimalism.patch" + } }, - "homepage": "https://wordpress.org/plugins/disable-wordpress-updates/" + "homepage": "https://wordpress.org/themes/minimalism/" } ], "packages-dev": [], diff --git a/composer.patches.json b/composer.patches.json index 3ef90353..74db1668 100644 --- a/composer.patches.json +++ b/composer.patches.json @@ -2,6 +2,9 @@ "patches": { "wpackagist-plugin/disable-wordpress-updates": { "Patch title": "patches/0001-Patched-Disable-Updates-to-run-checks-during-cron-jo.patch" - } + }, + "wpackagist-theme/minimalism": { + "Minimalism theme footer": "patches/0001-Patch-theme-minimalism.patch" + } } } diff --git a/patches/0001-Patch-theme-minimalism.patch b/patches/0001-Patch-theme-minimalism.patch new file mode 100644 index 00000000..051f4356 --- /dev/null +++ b/patches/0001-Patch-theme-minimalism.patch @@ -0,0 +1,14 @@ +diff --git a/footer.php b/footer.php +index a7f191a7..24ea872d 100644 +--- a/footer.php ++++ b/footer.php +@@ -4,7 +4,7 @@ + <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> + <p> + <?php printf(__('%1$s powered by %2$s', 'minimalism'), get_bloginfo('name'), +- '<a href="http://wordpress.org/">WordPress</a>'); ?> | <a href="http://www.genaehr.com/minimalism/">minimalism</a> by <a href="http://www.genaehr.com/">www.genaehr.com</a> ++ '<a href="http://autistici.org/">R*</a>'); ?> | <a href="http://www.genaehr.com/minimalism/">minimalism</a> by <a href="http://www.genaehr.com/">www.genaehr.com</a> + <br /><?php printf(__('%1$s and %2$s.', 'minimalism'), '<a href="' . get_bloginfo('rss2_url') . '">' . __('Entries (RSS)', 'minimalism') . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __('Comments (RSS)', 'minimalism') . '</a>'); ?> + <!-- <?php printf(__('%d queries. %s seconds.', 'minimalism'), get_num_queries(), timer_stop(0, 3)); ?> --> + </p> + diff --git a/patches/0001-Patched-Disable-Updates-to-run-checks-during-cron-jo.patch b/patches/0001-Patched-Disable-Updates-to-run-checks-during-cron-jo.patch index 22c407ae..1ec7f9cd 100644 --- a/patches/0001-Patched-Disable-Updates-to-run-checks-during-cron-jo.patch +++ b/patches/0001-Patched-Disable-Updates-to-run-checks-during-cron-jo.patch @@ -1,12 +1,3 @@ -From a4968df0b59c116fb8118fd625c5ed12e5e53d6d Mon Sep 17 00:00:00 2001 -From: lucha <lucha@paranoici.org> -Date: Wed, 19 Apr 2017 14:44:43 +0200 -Subject: [PATCH] Patched Disable Updates to run checks during cron jobs - ---- - wp-content/mu-plugins/disable-updates.php | 21 ++++++++++++--------- - 1 file changed, 12 insertions(+), 9 deletions(-) - diff --git a/wp-content/mu-plugins/disable-updates.php b/wp-content/mu-plugins/disable-updates.php index e3139547..dd58cca5 100644 --- a/wp-content/mu-plugins/disable-updates.php -- GitLab