Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider all levels in theme file check instead of one only #90

Merged
merged 1 commit into from
Dec 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
* Fixed file name sanitization in manual theme scan
* Some spelling and translation corrections
* Fixed theme file collection for child themes with duplicate names
* Consider all levels in theme file check instead of one only
* **Deutsch**
* Einige Rechtschreib- und Übersetzungsfehler korrigiert
* Sammlung von Theme Dateien für Child Themes mit doppelten Dateinamen korrigiert
* Bereinigung von Dateinamen beim manuellen Theme Scan korrigiert
* Bereinigung von Dateinamen beim manuellen Theme-Scan korrigiert
* Berücksichtigung aller Level im Theme-Scan


### 1.4.0 ###
Expand Down
2 changes: 1 addition & 1 deletion inc/class-antivirus.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ private static function _get_theme_data( $theme ) {
// Extract data.
$name = $theme->get( 'Name' );
$slug = $theme->get_stylesheet();
$files = array_values( $theme->get_files( 'php', 1 ) );
$files = array_values( $theme->get_files( 'php', -1 ) );

// Append parent's data, if we got a child theme.
$parent = self::_get_theme_data( $theme->parent() );
Expand Down