@@ -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(), 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 | } |