Skip to content

Commit

Permalink
Keep priority of Icons (only change fallbacks) (#903)
Browse files Browse the repository at this point in the history
* keep icon prio the same as before

and only replace the icon, because we can not assume that a logo is always square!?!

* remove logo completely
  • Loading branch information
pfefferle authored Sep 26, 2024
1 parent b1f2a61 commit f5989f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/model/class-blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function get_preferred_username() {
*/
public function get_icon() {
// try site_logo, falling back to site_icon, first
$icon_id = get_option( 'site_logo', get_option( 'site_icon' ) );
$icon_id = get_option( 'site_icon' );

// try custom logo second
if ( ! $icon_id ) {
Expand Down Expand Up @@ -419,7 +419,7 @@ public function update_icon( $value ) {
if ( ! wp_attachment_is_image( $value ) ) {
return false;
}
return \update_option( 'site_logo', $value ) && \update_option( 'site_icon', $value );
return \update_option( 'site_icon', $value );
}

/**
Expand Down

0 comments on commit f5989f0

Please sign in to comment.