Completed
Push — add/masterbar/tracks-events ( c85f9a...a36123 )
by
unknown
08:36
created
modules/masterbar/masterbar.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@  discard block
 block discarded – undo
75 75
 		add_action( 'wp_logout', array( $this, 'maybe_logout_user_from_wpcom' ) );
76 76
 	}
77 77
 
78
+	/**
79
+	 * @param string $site_slug
80
+	 */
78 81
 	private function initialize_tracks_events( $site_slug ) {
79 82
 		$this->tracks_events = array(
80 83
 			//my sites - top level items
@@ -230,6 +233,9 @@  discard block
 block discarded – undo
230 233
 		wp_enqueue_script( 'jp-tracks', '//stats.wp.com/w.js', array(), gmdate( 'YW' ), true );
231 234
 	}
232 235
 
236
+	/**
237
+	 * @param string $file
238
+	 */
233 239
 	function wpcom_static_url( $file ) {
234 240
 		if ( ! empty( $this->sandbox_url ) ) {
235 241
 			// For testing undeployed changes to remotely enqueued scripts and styles.
@@ -412,6 +418,9 @@  discard block
 block discarded – undo
412 418
 		return $primary_anchor . $secondary_anchor;
413 419
 	}
414 420
 
421
+	/**
422
+	 * @param string $class
423
+	 */
415 424
 	public function create_menu_item_anchor( $class, $url, $label, $id ) {
416 425
 		return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>';
417 426
 	}
Please login to merge, or discard this patch.