@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * Convenience function for grabbing options from params->options |
| 48 | 48 | * @param string $option the option to grab |
| 49 | - * @param mixed $default (optional) |
|
| 49 | + * @param boolean $default (optional) |
|
| 50 | 50 | * @return option or $default if not set |
| 51 | 51 | * |
| 52 | 52 | * @since 4.5.0 |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | |
| 396 | 396 | /** |
| 397 | 397 | * Check the reasons to bail before we attempt to insert ads. |
| 398 | - * @return true if we should bail (don't insert ads) |
|
| 398 | + * @return boolean if we should bail (don't insert ads) |
|
| 399 | 399 | * |
| 400 | 400 | * @since 4.5.0 |
| 401 | 401 | */ |
@@ -63,6 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Updates user data |
| 65 | 65 | * |
| 66 | + * @param integer $user_id |
|
| 66 | 67 | * @return array |
| 67 | 68 | */ |
| 68 | 69 | public function update_user( $user_id, $blog_id ) { |
@@ -242,6 +242,7 @@ |
||
| 242 | 242 | /** |
| 243 | 243 | * Returns the current error as an IXR_Error |
| 244 | 244 | * |
| 245 | + * @param string $tracks_event_name |
|
| 245 | 246 | * @return bool|IXR_Error |
| 246 | 247 | */ |
| 247 | 248 | function error( $error = null, $tracks_event_name = null, $user = null ) { |
@@ -125,6 +125,9 @@ discard block |
||
| 125 | 125 | wp_enqueue_script( 'a8c_wpcom_masterbar_overrides', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/masterbar.js' ), array( 'jquery' ), JETPACK__VERSION ); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @param string $file |
|
| 130 | + */ |
|
| 128 | 131 | function wpcom_static_url( $file ) { |
| 129 | 132 | if ( ! empty( $this->sandbox_url ) ) { |
| 130 | 133 | // For testing undeployed changes to remotely enqueued scripts and styles. |
@@ -307,6 +310,9 @@ discard block |
||
| 307 | 310 | return $primary_anchor . $secondary_anchor; |
| 308 | 311 | } |
| 309 | 312 | |
| 313 | + /** |
|
| 314 | + * @param string $class |
|
| 315 | + */ |
|
| 310 | 316 | public function create_menu_item_anchor( $class, $url, $label, $id ) { |
| 311 | 317 | return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>'; |
| 312 | 318 | } |