Changeset 35379
- Timestamp:
- 10/23/2015 09:16:30 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed-template.php
r35295 r35379 124 124 <div class="wp-embed-site-title"> 125 125 <?php 126 $site_icon_url = get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) );127 128 /**129 * Filters the site icon URL for use in the embed template.130 *131 * @since 4.4.0132 *133 * @param string $site_icon_url The site icon URL.134 */135 $site_icon_url = apply_filters( 'embed_site_icon_url', $site_icon_url );136 137 126 printf( 138 127 '<a href="%s" target="_top"><img src="%s" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>', 139 128 esc_url( home_url() ), 140 esc_url( $site_icon_url),129 esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ), 141 130 esc_attr( get_bloginfo( 'name' ) ) 142 131 ); … … 225 214 <div class="wp-embed-site-title"> 226 215 <?php 227 $site_icon_url = get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) );228 229 /**230 * Filters the site icon URL for use in the embed template.231 *232 * @since 4.4.0233 *234 * @param string $site_icon_url The site icon URL.235 */236 $site_icon_url = apply_filters( 'embed_site_icon_url', $site_icon_url );237 238 216 printf( 239 217 '<a href="%s" target="_top"><img src="%s" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>', 240 218 esc_url( home_url() ), 241 esc_url( $site_icon_url),219 esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ), 242 220 esc_html( get_bloginfo( 'name' ) ) 243 221 ); -
trunk/src/wp-includes/general-template.php
r35328 r35379 777 777 } 778 778 779 return $url; 779 /** 780 * Filter the site icon URL. 781 * 782 * @site 4.4.0 783 * 784 * @param string $url Site icon URL. 785 * @param int $size Size of the site icon. 786 * @param int $blog_id ID of the blog to get the site icon for. 787 */ 788 return apply_filters( 'get_site_icon_url', $url, $size, $blog_id ); 780 789 } 781 790
Note: See TracChangeset
for help on using the changeset viewer.