mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
fix issue #40
This commit is contained in:
parent
7934ed9652
commit
d1a95266ef
1 changed files with 4 additions and 0 deletions
|
@ -3096,6 +3096,10 @@ class MainWP_Child {
|
|||
function get_favicon() {
|
||||
$favi = '';
|
||||
|
||||
if ( has_site_icon() ) {
|
||||
$favi = get_site_icon_url();
|
||||
}
|
||||
|
||||
if ( empty( $favi ) ) {
|
||||
if ( file_exists( ABSPATH . 'favicon.ico' ) ) {
|
||||
$favi = 'favicon.ico';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue