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