Commit c0d2873 1 parent e49e8a3 commit c0d2873 Copy full SHA for c0d2873
File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,16 @@ function sunflower_theme_class() {
18
18
}
19
19
20
20
/**
21
- * Change path to favicon.ico to sunflower.
21
+ * Change URL to site icon to sunflower as default.
22
+ *
23
+ * @param string $url Site icon URL.
22
24
*/
23
- function sunflower_get_site_icon_url_defaults () {
25
+ function sunflower_get_site_icon_url_defaults ( $ url ) {
26
+ // A custom site icon seems to be set. Keep it untouched.
27
+ if ( filter_var ( $ url , FILTER_VALIDATE_URL ) ) {
28
+ return $ url ;
29
+ }
30
+ // Set default site icon to sunflower.
24
31
return sunflower_parent_or_child ( 'assets/img/favicon.ico ' );
25
32
}
26
33
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ function sunflower_customize_register( $wp_customize ) {
31
31
)
32
32
);
33
33
34
- $ wp_customize ->remove_control ( 'site_icon ' );
35
34
}
36
35
}
37
36
You can’t perform that action at this time.
0 commit comments