@@ -111,6 +111,9 @@ discard block |
||
111 | 111 | wp_enqueue_script( 'a8c_wpcom_masterbar_overrides', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/masterbar.js' ), '20170630' ); |
112 | 112 | } |
113 | 113 | |
114 | + /** |
|
115 | + * @param string $file |
|
116 | + */ |
|
114 | 117 | function wpcom_static_url( $file ) { |
115 | 118 | if ( ! empty( $this->sandbox_url ) ) { |
116 | 119 | // For testing undeployed changes to remotely enqueued scripts and styles. |
@@ -293,6 +296,9 @@ discard block |
||
293 | 296 | return $primary_anchor . $secondary_anchor; |
294 | 297 | } |
295 | 298 | |
299 | + /** |
|
300 | + * @param string $class |
|
301 | + */ |
|
296 | 302 | public function create_menu_item_anchor( $class, $url, $label, $id ) { |
297 | 303 | return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>'; |
298 | 304 | } |