| @@ -19,11 +19,13 @@ | ||
| 19 | 19 | $full_path = $abs_path . '<span>' . substr( $full_path, strlen( $abs_path ) ) . '</span>'; |
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - if ( in_array( $item->type, $abandoned_types, true ) ) { | |
| 24 | - $file_name = esc_html( $detail['file_name'] ); | |
| 25 | - $short_desc = esc_html( $detail['short_desc'] ); | |
| 23 | + $item_type = isset( $item->type ) ? $item->type : ( $detail['type'] ?? '' ); | |
| 24 | + $file_name = $detail['file_name'] ?? ''; | |
| 25 | + $short_desc = $detail['short_desc'] ?? ''; | |
| 26 | + | |
| 27 | + if ( in_array( $item_type, $abandoned_types, true ) ) { | |
| 26 | 28 | $abandoned_plugins_html .= '<tr class="report-list-item" style="border: 1px solid #F2F2F2;padding: 0;text-align: left;vertical-align: top"> |
| 27 | 29 | <td class="report-list-item-info" style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;line-height: 22px;font-weight: 500;letter-spacing: -0.23px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top"> |
| 28 | 30 | <span style="color: inherit;display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;line-height: inherit;vertical-align: middle;letter-spacing: -0.25px;padding-left: 20px;"> |
| 29 | 31 | ' . esc_html( $file_name ) . ' |
| @@ -38,14 +40,14 @@ | ||
| 38 | 40 | } else { |
| 39 | 41 | $other_issues_html .= '<tr class="report-list-item" style="border: 1px solid #F2F2F2;padding: 0;text-align: left;vertical-align: top"> |
| 40 | 42 | <td class="report-list-item-info" style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;line-height: 22px;font-weight: 500;letter-spacing: -0.23px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top"> |
| 41 | 43 | <span style="color: inherit;display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;line-height: inherit;vertical-align: middle;letter-spacing: -0.25px;padding-left: 20px;"> |
| 42 | - ' . esc_html( $detail['file_name'] ) . ' | |
| 44 | + ' . esc_html( $file_name ) . ' | |
| 43 | 45 | <span class="report-list-item-path" style="display: inline-block; width: 100%;">' . wp_kses( $full_path, array( 'span' => array() ) ) . '</span> |
| 44 | 46 | </span> |
| 45 | 47 | </td> |
| 46 | - <td class="report-list-item-info" style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;line-height: 22px;font-weight: 500;letter-spacing: -0.25px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top"> | |
| 47 | - <span style="color: inherit;display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;line-height: inherit;vertical-align: middle;letter-spacing: -0.25px;padding-right: 20px;">' . esc_html( $detail['short_desc'] ) . '</span> | |
| 48 | + <td class="report-list-item-info" style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;line-height: 22px;font-weight: 500;letter-spacing: -0.23px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top"> | |
| 49 | + <span style="color: inherit;display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;line-height: inherit;vertical-align: middle;letter-spacing: -0.25px;padding-right: 20px;">' . esc_html( $short_desc ) . '</span> | |
| 48 | 50 | </td> |
| 49 | 51 | </tr>'; |
| 50 | 52 | } |
| 51 | 53 | } |