From 0a98ba8c2e826314574c24af6e9f33615a6833d0 Mon Sep 17 00:00:00 2001 From: Marcus Quinn <6428977+marcusquinn@users.noreply.github.com> Date: Sat, 12 Apr 2025 01:20:15 +0100 Subject: [PATCH] Fix namespace issues in Updater.php --- includes/Updater.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Updater.php b/includes/Updater.php index 15e8862..e2b3067 100644 --- a/includes/Updater.php +++ b/includes/Updater.php @@ -79,7 +79,7 @@ class Updater { */ private function is_github_installation() { // Check for GitHub-specific markers in the plugin directory - $plugin_dir = plugin_dir_path($this->plugin_file); + $plugin_dir = \plugin_dir_path($this->plugin_file); // Look for .git directory with GitHub remote if (file_exists($plugin_dir . '.git')) { @@ -104,7 +104,7 @@ class Updater { */ private function is_gitea_installation() { // Check for Gitea-specific markers in the plugin directory - $plugin_dir = plugin_dir_path($this->plugin_file); + $plugin_dir = \plugin_dir_path($this->plugin_file); // Look for .git directory with Gitea remote if (file_exists($plugin_dir . '.git')) { @@ -135,7 +135,7 @@ class Updater { } // Set the update server based on the installation source - add_filter('gul_update_server', function() { + \add_filter('gul_update_server', function() { if ($this->source === 'github') { return 'https://github.com/wpallstars/fix-plugin-does-not-exist-notices'; // GitHub repository URL } elseif ($this->source === 'gitea') {