Make WordPress Core

Ticket #35322: 35322-442.diff

File 35322-442.diff, 7.8 KB (added by peterwilsoncc, 9 years ago)
  • src/wp-includes/css/wp-embed-template-ie.css

    diff --git a/src/wp-includes/css/wp-embed-template-ie.css b/src/wp-includes/css/wp-embed-template-ie.css
    index cec05c9..2d285eb 100644
    a b  
    1717.wp-embed-share-dialog-open:hover .dashicons-share {
    1818        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAc0lEQVR4AWMYhqB4lQEQLwDi/0D8AIgLKDXwAsgwNBxAiev+Y8EbyDWwgTIDEQY5APEBmAFEexkUwNCA/g8N+ABkg6DsAKIiBaoQ03aEQQ6kemsDDsMaYEroZiA9vEx5pNAl2VCesOmf9SgvHOhffNEfAAAMqPR5IEZH5wAAAABJRU5ErkJggg==);
    1919}
     20
     21
     22span.wp-embed-site-icon {
     23        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAEj0lEQVRIiZVWa4hVVRTeP8zmzpx91h4iKEfLtMbKERzoRVYiVASNiC8mYQxTGR9hzFlr3zM+IG5aRg+tRJMx78zcO/estXsQEllRmkMUQUE/gvoTRPSQoCiMLILs9uM87mNug23YnB/f3uvxrW+tfZSaZhmUXkC3B4ifBHI7Ad02sLIp/kbDgLwfKNpt8tHi6ey0XDkcnWNIxg3JYY2uT2Opu42iqzWWuj2q3KjDiQVtQ2NzNZa6Nbo+Q3IYiEdzQanrohz4xOsMygeA0t85PALauhWG3BuG5Jyxrppt4t8MyZvauhWdwyMAKP3GyiSg9E/vAOVhIDmtCiPtOi93GnLfNxj+r03yAyCv9oPoFmNlEqxsaukAkFcDuffibNyjF2W8aWssdatCYQZY/lRbXt5Yg7AyG0hOq+1HPLDyyv92QHJOY6k7CziI5gG5j9vD4qxaFiRHjZWVqlCYCSRnAOWYQdkI1p001lUNOjSWh3ySMUNcAZTjQLIViCVx8lELZrYAyYhSSqmOoLIISN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.css

    diff --git a/src/wp-includes/css/wp-embed-template.css b/src/wp-includes/css/wp-embed-template.css
    index d91bdb6..ef1b565 100644
    a b p.wp-embed-heading { 
    132132        border: 0;
    133133}
    134134
     135span.wp-embed-site-icon {
     136        background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCIgdmlld0JveD0iMCAwIDY0IDY0IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2NCA2NCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdHlsZTB7ZmlsbDoJIzAwNzNhYTt9PC9zdHlsZT48Zz48Zz48cGF0aCBkPSJNNC41NDggMzEuOTk5YzAgMTAuOSA2LjMgMjAuMyAxNS41IDI0LjcwNkw2LjkyNSAyMC44MjdDNS40MDIgMjQuMiA0LjUgMjggNC41IDMxLjk5OXogTTUwLjUzMSAzMC42MTRjMC0zLjM5NC0xLjIxOS01Ljc0Mi0yLjI2NC03LjU3Yy0xLjM5MS0yLjI2My0yLjY5NS00LjE3Ny0yLjY5NS02LjQzOWMwLTIuNTIzIDEuOTEyLTQuODcyIDQuNjA5LTQuODcyIGMwLjEyMSAwIDAuMiAwIDAuNCAwLjAyMkM0NS42NTMgNy4zIDM5LjEgNC41IDMyIDQuNTQ4Yy05LjU5MSAwLTE4LjAyNyA0LjkyMS0yMi45MzYgMTIuNCBjMC42NDUgMCAxLjMgMCAxLjggMC4wMzNjMi44NzEgMCA3LjMxNi0wLjM0OSA3LjMxNi0wLjM0OWMxLjQ3OS0wLjA4NiAxLjcgMi4xIDAuMiAyLjMgYzAgMC0xLjQ4NyAwLjE3NC0zLjE0MiAwLjI2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uNTMzeiIgY2xhc3M9InN0eWxlMCIvPjwvZz48L2c+PC9zdmc+);
     137        background-size: 25px 25px;
     138}
     139
    135140.wp-embed-site-title {
    136141        font-weight: bold;
    137142        line-height: 25px;
  • src/wp-includes/embed-template.php

    diff --git a/src/wp-includes/embed-template.php b/src/wp-includes/embed-template.php
    index fab8c84..be2ab5e 100644
    a b if ( have_posts() ) : 
    120120
    121121                        <div class="wp-embed-footer">
    122122                                <div class="wp-embed-site-title">
    123                                         <?php
    124                                         $site_title = sprintf(
    125                                                 '<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>',
    126                                                 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' ) ) ),
    129                                                 esc_html( get_bloginfo( 'name' ) )
    130                                         );
    131 
    132                                         /**
    133                                          * Filter the site title HTML in the embed footer.
    134                                          *
    135                                          * @since 4.4.0
    136                                          *
    137                                          * @param string $site_title The site title HTML.
    138                                          */
    139                                         echo apply_filters( 'embed_site_title_html', $site_title );
    140                                         ?>
     123                                        <?php wp_embed_site_title_html(); ?>
    141124                                </div>
    142125
    143126                                <div class="wp-embed-meta">
    else : 
    173156
    174157                <div class="wp-embed-footer">
    175158                        <div class="wp-embed-site-title">
    176                                 <?php
    177                                 $site_title = sprintf(
    178                                         '<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>',
    179                                         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' ) ) ),
    182                                         esc_html( get_bloginfo( 'name' ) )
    183                                 );
    184 
    185                                 /** This filter is documented in wp-includes/embed-template.php */
    186                                 echo apply_filters( 'embed_site_title_html', $site_title );
    187                                 ?>
     159                                <?php wp_embed_site_title_html(); ?>
    188160                        </div>
    189161                </div>
    190162        </div>
  • src/wp-includes/embed.php

    diff --git a/src/wp-includes/embed.php b/src/wp-includes/embed.php
    index 17b9ac4..09a0313 100644
    a b function the_excerpt_embed() { 
    841841}
    842842
    843843/**
     844 * The site title in the embed template's footer.
     845 *
     846 * @since 4.4.x
     847 *
     848 * @param bool $echo Optional. Output the HTML to the browser. Default is true.
     849 */
     850function wp_embed_site_title_html( $echo = true ) {
     851
     852        if ( has_site_icon() ) {
     853                $site_logo = '<img src="%2$s" srcset="%$3s 2x" width="32" height="32" alt="" class="wp-embed-site-icon"/>';
     854        }
     855        else {
     856                $site_logo = '<span class="wp-embed-site-icon"></span>';
     857        }
     858
     859        $site_title = sprintf(
     860                '<a href="%1$s" target="_top">' . $site_logo . '<span>%4$s</span></a>',
     861                esc_url( home_url() ),
     862                esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ),
     863                esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-blue.png' ) ) ),
     864                esc_html( get_bloginfo( 'name' ) )
     865        );
     866
     867        /**
     868         * Filter the site title HTML in the embed footer.
     869         *
     870         * @since 4.4.0
     871         *
     872         * @param string $site_title The site title HTML.
     873         */
     874        $site_title = apply_filters( 'embed_site_title_html', $site_title );
     875
     876        if ( true == $echo ) {
     877                echo $site_title;
     878        }
     879        return $site_title;
     880}
     881
     882
     883/**
    844884 * Filters the post excerpt for the embed template.
    845885 *
    846886 * Shows players for video and audio attachments.