WordPress.org

Make WordPress Core

Changeset 36635


Ignore:
Timestamp:
02/23/2016 04:54:32 PM (4 years ago)
Author:
swissspidy
Message:

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

Files inside the wp-admin directory may not be publicly available. This copies the blue WordPress logo to wp-includes/images.

Props thewanderingbrit.
Fixes #35322.

Location:
trunk/src/wp-includes
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed-template.php

    r36123 r36635  
    125125                        '<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>',
    126126                        esc_url( home_url() ),
    127                         esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ),
    128                         esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-blue.png' ) ) ),
     127                        esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ),
     128                        esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-blue.png' ) ) ),
    129129                        esc_html( get_bloginfo( 'name' ) )
    130130                    );
     
    178178                    '<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>',
    179179                    esc_url( home_url() ),
    180                     esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ),
    181                     esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-blue.png' ) ) ),
     180                    esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ),
     181                    esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-blue.png' ) ) ),
    182182                    esc_html( get_bloginfo( 'name' ) )
    183183                );
Note: See TracChangeset for help on using the changeset viewer.