@@ -175,7 +175,7 @@ |
||
175 | 175 | /** |
176 | 176 | * Back end function to abstract the xmlrpc function calls to wpcom. |
177 | 177 | * |
178 | - * @param $endpoint |
|
178 | + * @param string $endpoint |
|
179 | 179 | * @param $error_message |
180 | 180 | */ |
181 | 181 | function __process_ajax_proxy_request( $endpoint, $error_message ) { |
@@ -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, '//' ) ) { |
@@ -80,6 +80,8 @@ |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Maybe output or return, depending on the context |
83 | + * @param string $val |
|
84 | + * @param boolean $maybe |
|
83 | 85 | */ |
84 | 86 | private function _output_or_return( $val, $maybe ) { |
85 | 87 | if ( $maybe ) { |