WordPress.org

Make WordPress Core

Changeset 47833


Ignore:
Timestamp:
05/20/2020 10:36:04 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Customize: Load the default site icon from the wp-includes directory.

Files inside the wp-admin directory may not be publicly available.

Follow-up to [36635], [47018].

Merges [47832] to the 5.4 branch.

Props whyisjake, finomeno, ocean90.
Fixes #50131.

Location:
branches/5.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-includes/embed.php

    r47219 r47833  
    11821182        '<a href="%s" target="_top"><img src="%s" srcset="%s 2x" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>',
    11831183        esc_url( home_url() ),
    1184         esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ),
    1185         esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-blue.png' ) ) ),
     1184        esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ),
     1185        esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-blue.png' ) ) ),
    11861186        esc_html( get_bloginfo( 'name' ) )
    11871187    );
  • branches/5.4/src/wp-includes/functions.php

    r47398 r47833  
    16681668    do_action( 'do_faviconico' );
    16691669
    1670     wp_redirect( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) );
     1670    wp_redirect( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) );
    16711671    exit;
    16721672}
Note: See TracChangeset for help on using the changeset viewer.