@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * Returns status of WordAds approval. |
| 70 | 70 | * |
| 71 | - * @return boolean true if site is WordAds approved |
|
| 71 | + * @return string true if site is WordAds approved |
|
| 72 | 72 | * |
| 73 | 73 | * @since 4.5.0 |
| 74 | 74 | */ |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * Returns status of WordAds active. |
| 85 | 85 | * |
| 86 | - * @return boolean true if ads are active on site |
|
| 86 | + * @return string true if ads are active on site |
|
| 87 | 87 | * |
| 88 | 88 | * @since 4.5.0 |
| 89 | 89 | */ |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Returns status of WordAds house ads. |
| 100 | 100 | * |
| 101 | - * @return boolean true if WP.com house ads should be shown |
|
| 101 | + * @return string true if WP.com house ads should be shown |
|
| 102 | 102 | * |
| 103 | 103 | * @since 4.5.0 |
| 104 | 104 | */ |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | /** |
| 115 | 115 | * Returns whether or not this site is safe to run ads on. |
| 116 | 116 | * |
| 117 | - * @return boolean true if ads shown not be shown on this site. |
|
| 117 | + * @return string true if ads shown not be shown on this site. |
|
| 118 | 118 | * |
| 119 | 119 | * @since 6.5.0 |
| 120 | 120 | */ |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | * @param array $args Widget args. |
| 48 | 48 | * @param array $instance The Widget instance. |
| 49 | 49 | * |
| 50 | - * @return bool|void |
|
| 50 | + * @return false|null |
|
| 51 | 51 | */ |
| 52 | 52 | public function widget( $args, $instance ) { |
| 53 | 53 | global $wordads; |
@@ -308,7 +308,7 @@ |
||
| 308 | 308 | * @since 8.7.0 |
| 309 | 309 | * |
| 310 | 310 | * @param array|string $data the data to be encoded. |
| 311 | - * @return boolean|string The encoded string on success, false on failure |
|
| 311 | + * @return false|string The encoded string on success, false on failure |
|
| 312 | 312 | */ |
| 313 | 313 | public function encrypt_data_to_wpcom( $data ) { |
| 314 | 314 | |
@@ -50,6 +50,7 @@ |
||
| 50 | 50 | * Perform the IXR request. |
| 51 | 51 | * |
| 52 | 52 | * @param string[] ...$args IXR args. |
| 53 | + * @param string $args |
|
| 53 | 54 | * |
| 54 | 55 | * @return bool True if request succeeded, false otherwise. |
| 55 | 56 | */ |
@@ -25,6 +25,7 @@ |
||
| 25 | 25 | * The rest of the arguments are the params specified to the method. |
| 26 | 26 | * |
| 27 | 27 | * @param string[] ...$args IXR args. |
| 28 | + * @param string $args |
|
| 28 | 29 | */ |
| 29 | 30 | public function addCall( ...$args ) { |
| 30 | 31 | $method_name = array_shift( $args ); |
@@ -433,6 +433,9 @@ |
||
| 433 | 433 | ); |
| 434 | 434 | } |
| 435 | 435 | |
| 436 | + /** |
|
| 437 | + * @param string $column |
|
| 438 | + */ |
|
| 436 | 439 | function _build_date_range_query( $column, $range, $where ) { |
| 437 | 440 | global $wpdb; |
| 438 | 441 | |
@@ -15,6 +15,9 @@ |
||
| 15 | 15 | exit; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | +/** |
|
| 19 | + * @param string $file_pattern |
|
| 20 | + */ |
|
| 18 | 21 | function wpcom_rest_api_v2_load_plugin_files( $file_pattern ) { |
| 19 | 22 | $plugins = glob( dirname( __FILE__ ) . '/' . $file_pattern ); |
| 20 | 23 | |
@@ -174,6 +174,7 @@ |
||
| 174 | 174 | * @since 1.3 |
| 175 | 175 | * @var string $guid VideoPress unique identifier |
| 176 | 176 | * @var int $maxwidth maximum requested video width. final width and height are calculated on VideoPress servers based on the aspect ratio of the original video upload. |
| 177 | + * @param string $guid |
|
| 177 | 178 | */ |
| 178 | 179 | public function __construct( $guid, $maxwidth = 640 ) { |
| 179 | 180 | $this->guid = $guid; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * Singleton implementation |
| 44 | 44 | * |
| 45 | - * @return object |
|
| 45 | + * @return Jetpack_Photon|null |
|
| 46 | 46 | */ |
| 47 | 47 | public static function instance() { |
| 48 | 48 | if ( ! is_a( self::$instance, 'Jetpack_Photon' ) ) { |
@@ -1382,7 +1382,7 @@ discard block |
||
| 1382 | 1382 | * after ourselves without breaking anyone else's filters. |
| 1383 | 1383 | * |
| 1384 | 1384 | * @internal |
| 1385 | - * @return true |
|
| 1385 | + * @return boolean |
|
| 1386 | 1386 | */ |
| 1387 | 1387 | public function override_image_downsize_in_rest_edit_context() { |
| 1388 | 1388 | return true; |