stats_convert_image_urls

Stats Convert Image URLs.

Description

stats_convert_image_urls( $html ); 

Parameters (1)

0. $html
The html.

Usage

  1. if ( !function_exists( 'stats_convert_image_urls' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/stats.php'; 
  3.  
  4. // The html. 
  5. $html = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = stats_convert_image_urls($html); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/stats.php  
  1. function stats_convert_image_urls( $html ) { 
  2. $url = set_url_scheme( 'https://' . STATS_DASHBOARD_SERVER ); 
  3. $html = preg_replace( '|(["\'])(/i/stats.+)\\1|', '$1' . $url . '$2$1', $html ); 
  4. return $html;