Skip to content

Commit

Permalink
Merge branch 'issue-866-undefined-array-key' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Nov 26, 2024
2 parents 5fee11e + a5da4aa commit d0520f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions collectors/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ public function process() {

foreach ( $all as $part ) {
$file = $part['path'] ?? $part['post'];
$file = QM_Util::standard_dir( $file );

if ( isset( $this->data->count_template_parts[ $file ] ) ) {
$this->data->count_template_parts[ $file ]++;
Expand All @@ -484,8 +485,6 @@ public function process() {
$display = $part['id'];
$theme_display = $display;
} else {
$file = QM_Util::standard_dir( $file );

$filename = str_replace( array(
$stylesheet_directory,
$template_directory,
Expand Down

0 comments on commit d0520f1

Please sign in to comment.