@@ -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 | } |
@@ -105,6 +105,9 @@ |
||
| 105 | 105 | return isset( $importers[ $importer ] ) ? $importers[ $importer ][0] : 'Unknown Importer'; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @param string $class_name |
|
| 110 | + */ |
|
| 108 | 111 | private function is_importer( $backtrace, $class_name ) { |
| 109 | 112 | foreach ( $backtrace as $trace ) { |
| 110 | 113 | if ( strpos( $trace, $class_name ) !== false ) { |