Skip to content

Commit

Permalink
Merge pull request #62 from sectsect/feature/enhance-items-archive
Browse files Browse the repository at this point in the history
fix(admin): add missing GitHub logo image
  • Loading branch information
sectsect authored Dec 2, 2024
2 parents 21b8b48 + 5bad29d commit bb7f27e
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions admin/class-recursivetable.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,8 @@
<dl>
<dt>
<?php
$github_icon_url = plugin_dir_url( __DIR__ ) . 'assets/images/github.svg';
echo wp_get_attachment_image(
attachment_url_to_postid( $github_icon_url ),
'thumbnail',
false,
array(
'src' => $github_icon_url,
'width' => '22',
'alt' => 'GitHub',
'loading' => 'lazy',
)
);
// phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage
echo '<img src="' . esc_url( plugin_dir_url( __DIR__ ) . 'assets/images/github.svg' ) . '" width="22" height="auto" alt="GitHub" loading="lazy">';
?>
</dt>
<dd>Document on GitHub</dd>
Expand Down

0 comments on commit bb7f27e

Please sign in to comment.