@@ -80,6 +80,9 @@ discard block |
||
| 80 | 80 | wp_enqueue_script( 'a8c_wpcom_masterbar_overrides', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/masterbar.js' ) ); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $file |
|
| 85 | + */ |
|
| 83 | 86 | function wpcom_static_url( $file ) { |
| 84 | 87 | $i = hexdec( substr( md5( $file ), - 1 ) ) % 2; |
| 85 | 88 | $url = 'https://s' . $i . '.wp.com' . $file; |
@@ -255,6 +258,9 @@ discard block |
||
| 255 | 258 | return $primary_anchor . $secondary_anchor; |
| 256 | 259 | } |
| 257 | 260 | |
| 261 | + /** |
|
| 262 | + * @param string $class |
|
| 263 | + */ |
|
| 258 | 264 | public function create_menu_item_anchor( $class, $url, $label, $id ) { |
| 259 | 265 | return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>'; |
| 260 | 266 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * |
| 153 | 153 | * @since 4.3.0 |
| 154 | 154 | * |
| 155 | - * @return array Array of Jetpack modules. |
|
| 155 | + * @return string Array of Jetpack modules. |
|
| 156 | 156 | */ |
| 157 | 157 | public function get_modules() { |
| 158 | 158 | require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' ); |
@@ -1032,7 +1032,7 @@ discard block |
||
| 1032 | 1032 | * |
| 1033 | 1033 | * @since 4.8.0 |
| 1034 | 1034 | * |
| 1035 | - * @param string $apiKey Optional API key to check. |
|
| 1035 | + * @param string $api_key Optional API key to check. |
|
| 1036 | 1036 | * |
| 1037 | 1037 | * @return bool True if key is valid, false otherwise. |
| 1038 | 1038 | */ |