fix child themes
This commit is contained in:
parent
8c874117c8
commit
3afd015fee
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: Gitea Updater
|
* Plugin Name: Gitea Updater
|
||||||
* Plugin URI: http://www.paucapo.com
|
* Plugin URI: http://www.paucapo.com
|
||||||
* Description: Plugins updater
|
* Description: Plugins updater
|
||||||
* Version: 0.3.13
|
* Version: 0.3.14
|
||||||
* Author: Pau Capó
|
* Author: Pau Capó
|
||||||
* Author URI: http://www.paucapo.com
|
* Author URI: http://www.paucapo.com
|
||||||
* Text Domain: gitea
|
* Text Domain: gitea
|
||||||
|
|
@ -168,7 +168,7 @@ class Gitea_Updater {
|
||||||
|
|
||||||
foreach ( $themes as $theme ) {
|
foreach ( $themes as $theme ) {
|
||||||
|
|
||||||
$headers = $this->get_file_headers( file_get_contents( $theme->get_template_directory() . '/style.css' ), 'theme' );
|
$headers = $this->get_file_headers( file_get_contents( $theme->get_stylesheet_directory() . '/style.css' ), 'theme' );
|
||||||
if ( empty( $headers['GiteaHost'] ) || empty( $headers['GiteaUri'] ) ) {
|
if ( empty( $headers['GiteaHost'] ) || empty( $headers['GiteaUri'] ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue