stats_convert_image_urls
Stats Convert Image URLs.
Description
stats_convert_image_urls( $html );
Parameters (1)
- 0. $html
- The html.
Usage
if ( !function_exists( 'stats_convert_image_urls' ) ) { require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/stats.php'; } // The html. $html = null; // NOTICE! Understand what this does before running. $result = stats_convert_image_urls($html);
Defined (1)
The function is defined in the following location(s).
- /modules/stats.php
- function stats_convert_image_urls( $html ) {
- $url = set_url_scheme( 'https://' . STATS_DASHBOARD_SERVER );
- $html = preg_replace( '|(["\'])(/i/stats.+)\\1|', '$1' . $url . '$2$1', $html );
- return $html;
- }