slug) && (strpos($repo->slug, 'wp-fix-plugin-does-not-exist-notices') !== false || strpos($repo->slug, 'fix-plugin-does-not-exist-notices') !== false)) { return 'main'; } return $branch; }, 999, 3); // Fix for Git Updater API URLs add_filter('gu_get_repo_api', function($api_url, $git, $repo) { if (isset($repo->slug) && (strpos($repo->slug, 'wp-fix-plugin-does-not-exist-notices') !== false || strpos($repo->slug, 'fix-plugin-does-not-exist-notices') !== false)) { return str_replace('/master/', '/main/', $api_url); } return $api_url; }, 999, 3); // Fix for Git Updater download URLs add_filter('gu_download_link', function($download_link, $git, $repo) { if (isset($repo->slug) && (strpos($repo->slug, 'wp-fix-plugin-does-not-exist-notices') !== false || strpos($repo->slug, 'fix-plugin-does-not-exist-notices') !== false)) { return str_replace('/master.zip', '/main.zip', $download_link); } return $download_link; }, 999, 3);