@@ -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 ) { |
@@ -294,6 +294,9 @@ discard block |
||
| 294 | 294 | return $this->_options; |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | + /** |
|
| 298 | + * @param string $option_name |
|
| 299 | + */ |
|
| 297 | 300 | public function get_option( $option_name ) { |
| 298 | 301 | $options = $this->get_options(); |
| 299 | 302 | |
@@ -1428,6 +1431,8 @@ discard block |
||
| 1428 | 1431 | * Enqueues assets needed to do async loading of related posts. |
| 1429 | 1432 | * |
| 1430 | 1433 | * @uses wp_enqueue_script, wp_enqueue_style, plugins_url |
| 1434 | + * @param boolean $script |
|
| 1435 | + * @param boolean $style |
|
| 1431 | 1436 | * @return null |
| 1432 | 1437 | */ |
| 1433 | 1438 | protected function _enqueue_assets( $script, $style ) { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | * Get Stats Options. |
| 247 | 247 | * |
| 248 | 248 | * @access public |
| 249 | - * @param mixed $option Option. |
|
| 249 | + * @param string $option Option. |
|
| 250 | 250 | * @return mixed|null. |
| 251 | 251 | */ |
| 252 | 252 | function stats_get_option( $option ) { |
@@ -651,7 +651,7 @@ discard block |
||
| 651 | 651 | * Stats Convert Chart URLs. |
| 652 | 652 | * |
| 653 | 653 | * @access public |
| 654 | - * @param mixed $html HTML. |
|
| 654 | + * @param string $html HTML. |
|
| 655 | 655 | * @return string |
| 656 | 656 | */ |
| 657 | 657 | function stats_convert_chart_urls( $html ) { |