mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 14:23:31 +00:00
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:
parent
b1f2a6160e
commit
f5989f0380
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue