From 9d9192ef5d5c51fa9b622b5a83141b880d86811e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Cap=C3=B3?= Date: Wed, 2 Feb 2022 20:49:48 +0100 Subject: [PATCH] fuck --- gitea-updater.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitea-updater.php b/gitea-updater.php index 230c72d..8dd7cb6 100644 --- a/gitea-updater.php +++ b/gitea-updater.php @@ -3,7 +3,7 @@ * Plugin Name: Gitea Updater * Plugin URI: http://www.paucapo.com * Description: Plugins updater - * Version: 0.3.10 + * Version: 0.3.11 * Author: Pau Capó * Author URI: http://www.paucapo.com * Text Domain: gitea @@ -169,7 +169,7 @@ class Gitea_Updater { foreach ( $themes as $theme ) { $headers = $this->get_file_headers( file_get_contents( $theme->get_template_directory() . '/style.css' ), 'theme' ); - if ( empty( $headers['GiteaHost'] ) || empty( $headers['GiteaURI'] ) ) { + if ( empty( $headers['GiteaHost'] ) || empty( $headers['GiteaUri'] ) ) { continue; } @@ -185,7 +185,7 @@ class Gitea_Updater { $host = $this->get_host( $headers['GiteaHost'] ); - $repo = $headers['GiteaURI']; + $repo = $headers['GiteaUri']; $url = $this->get_url( $host, $repo, '/raw/master/style.css' ); $new_version = $local_version;