@@ -7,6 +7,7 @@ discard block |
||
| 7 | 7 | * |
| 8 | 8 | * @param string $image_url URL to the publicly accessible image you want to manipulate |
| 9 | 9 | * @param array|string $args An array of arguments, i.e. array( 'w' => '300', 'resize' => array( 123, 456 ) ), or in string form (w=123&h=456) |
| 10 | + * @param string $scheme |
|
| 10 | 11 | * @return string The raw final URL. You should run this through esc_url() before displaying it. |
| 11 | 12 | */ |
| 12 | 13 | function jetpack_photon_url( $image_url, $args = array(), $scheme = null ) { |
@@ -268,7 +269,7 @@ discard block |
||
| 268 | 269 | * |
| 269 | 270 | * @param string $url The URL to parse |
| 270 | 271 | * @param integer $component Retrieve specific URL component |
| 271 | - * @return mixed Result of parse_url |
|
| 272 | + * @return string|false Result of parse_url |
|
| 272 | 273 | */ |
| 273 | 274 | function jetpack_photon_parse_url( $url, $component = -1 ) { |
| 274 | 275 | if ( 0 === strpos( $url, '//' ) ) { |
@@ -300,7 +301,7 @@ discard block |
||
| 300 | 301 | * |
| 301 | 302 | * @access public |
| 302 | 303 | * @param mixed $content Content from text widget. |
| 303 | - * @return void |
|
| 304 | + * @return string|null |
|
| 304 | 305 | */ |
| 305 | 306 | function jetpack_photon_support_text_widgets( $content ) { |
| 306 | 307 | if ( class_exists( 'Jetpack_Photon' ) && Jetpack::is_module_active( 'photon' ) ) { |