Changeset 41046 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 07/14/2017 12:44:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r41045 r41046 5193 5193 * @access private 5194 5194 * 5195 * @see wp_staticize_emoji() 5196 * @staticvar string $cdn_url The CDN url returned by the {@see 'emoji_url'} filter. 5197 * @staticvar string $ext The file extension returned by the {@see 'emoji_ext'} filter. 5198 * 5195 5199 * @param array $matches The matched data. 5196 5200 * @return string HTML for the static emoji image. 5197 5201 */ 5198 5202 function _wp_staticize_emoji( $matches ) { 5199 /** This filter is documented in wp-includes/formatting.php */ 5200 $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.3/72x72/' ); 5201 5202 /** This filter is documented in wp-includes/formatting.php */ 5203 $ext = apply_filters( 'emoji_ext', '.png' ); 5203 static $cdn_url; 5204 if ( ! $cdn_url ) { 5205 /** This filter is documented in wp-includes/formatting.php */ 5206 $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.3/72x72/' ); 5207 } 5208 5209 static $ext; 5210 if ( ! $ext ) { 5211 /** This filter is documented in wp-includes/formatting.php */ 5212 $ext = apply_filters( 'emoji_ext', '.png' ); 5213 } 5204 5214 5205 5215 $char = str_replace( ';&#x', '-', $matches[1] );
Note: See TracChangeset
for help on using the changeset viewer.