From 3f095b550b16697bc72bada9236724ea3e18547f Mon Sep 17 00:00:00 2001 From: Oscar Arzola Date: Wed, 18 Dec 2024 09:58:56 -0500 Subject: [PATCH 1/2] lint styles --- src/Services/PermissionsManager.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Services/PermissionsManager.php b/src/Services/PermissionsManager.php index 6885ce6e..68399271 100644 --- a/src/Services/PermissionsManager.php +++ b/src/Services/PermissionsManager.php @@ -46,9 +46,10 @@ public function setupFilters(): void add_filter('edit_post_link', function ($link) use ($institution) { $currentBlogId = get_current_blog_id(); if ($currentBlogId === 1 && $institution !== 0) { - return ''; - } - else return $link; + return ''; + } else { + return $link; + } }); } From d6728b3f57d4ccd2dfcaaadb6e2f33a1c2690bdb Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 18 Dec 2024 15:00:47 +0000 Subject: [PATCH 2/2] chore(l10n): update pot file --- languages/pressbooks-multi-institution.pot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/languages/pressbooks-multi-institution.pot b/languages/pressbooks-multi-institution.pot index 7387fd22..5bfcb241 100644 --- a/languages/pressbooks-multi-institution.pot +++ b/languages/pressbooks-multi-institution.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-12-18T01:54:13+00:00\n" +"POT-Creation-Date: 2024-12-18T15:00:46+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.11.0\n" "X-Domain: pressbooks-multi-institution\n" @@ -137,7 +137,7 @@ msgstr "" msgid "Administer Institution" msgstr "" -#: src/Services/PermissionsManager.php:104 +#: src/Services/PermissionsManager.php:105 msgid "Sorry, you are not allowed to access this page." msgstr ""