Skip to content

Commit

Permalink
add support favicon.svg
Browse files Browse the repository at this point in the history
  • Loading branch information
5t111111 committed Jan 7, 2024
1 parent ff7ffb0 commit 4be3049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ to WordPress websites.
### Admin page customization

- Disable admin dashboard page
- Add favicon to admin pages (`favicon.ico` or `favicon.png` must be placed in your theme's root directory)
- Add favicon to admin pages (`favicon.ico`, `favicon.png` or `favicon.svg` must be placed in your theme's root directory)
- Disable post autosave
- Disable comments features by default

Expand Down
2 changes: 1 addition & 1 deletion src/AdminPad.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function init()

public function addFavicon()
{
$favicon_files = ["favicon.ico", "favicon.png"];
$favicon_files = ["favicon.ico", "favicon.png", "favicon.svg"];

foreach ($favicon_files as $favicon_file) {
$abspath = get_stylesheet_directory() . '/' . $favicon_file;
Expand Down

0 comments on commit 4be3049

Please sign in to comment.