Keep priority of Icons (only change fallbacks) (#903)

* 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
This commit is contained in:
Matthias Pfefferle 2024-09-26 18:09:19 +02:00 committed by GitHub
parent b1f2a6160e
commit f5989f0380
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,7 +207,7 @@ class Blog extends Actor {
*/
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 ) {
@ -419,7 +419,7 @@ class Blog extends Actor {
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 );
}
/**