Completed
Push — sync/dbtlr/r159298-wpcom-15003... ( bc0eb2...c27aa0 )
by
unknown
12:20
created
modules/theme-tools/featured-content.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -646,7 +646,7 @@
 block discarded – undo
646 646
  * handlers should be copied when the theme context is loaded by the REST API.
647 647
  *
648 648
  * @param array $copy_dirs Copy paths with actions to be copied
649
- * @return array Copy paths with featured content plugin
649
+ * @return string[] Copy paths with featured content plugin
650 650
  */
651 651
 function wpcom_rest_api_featured_content_copy_plugin_actions( $copy_dirs ) {
652 652
 	$copy_dirs[] = __FILE__;
Please login to merge, or discard this patch.
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -28,6 +28,11 @@  discard block
 block discarded – undo
28 28
 
29 29
 	// /sites/%s/posts/new       -> $blog_id
30 30
 	// /sites/%s/posts/%d        -> $blog_id, $post_id
31
+
32
+	/**
33
+	 * @param string $path
34
+	 * @param integer $post_id
35
+	 */
31 36
 	function write_post( $path, $blog_id, $post_id ) {
32 37
 		global $wpdb;
33 38
 
@@ -704,6 +709,11 @@  discard block
 block discarded – undo
704 709
 	}
705 710
 
706 711
 	// /sites/%s/posts/%d/delete -> $blog_id, $post_id
712
+
713
+	/**
714
+	 * @param string $path
715
+	 * @param integer $post_id
716
+	 */
707 717
 	function delete_post( $path, $blog_id, $post_id ) {
708 718
 		$post = get_post( $post_id );
709 719
 		if ( !$post || is_wp_error( $post ) ) {
@@ -743,6 +753,11 @@  discard block
 block discarded – undo
743 753
 	}
744 754
 
745 755
 	// /sites/%s/posts/%d/restore -> $blog_id, $post_id
756
+
757
+	/**
758
+	 * @param string $path
759
+	 * @param integer $post_id
760
+	 */
746 761
 	function restore_post( $path, $blog_id, $post_id ) {
747 762
 		$args  = $this->query_args();
748 763
 		$post = get_post( $post_id );
@@ -763,6 +778,10 @@  discard block
 block discarded – undo
763 778
 		return $this->get_post_by( 'ID', $post->ID, $args['context'] );
764 779
 	}
765 780
 
781
+	/**
782
+	 * @param boolean $delete_featured_image
783
+	 * @param string $featured_image
784
+	 */
766 785
 	protected function parse_and_set_featured_image( $post_id, $delete_featured_image, $featured_image ) {
767 786
 		if ( $delete_featured_image ) {
768 787
 			delete_post_thumbnail( $post_id );
Please login to merge, or discard this patch.
modules/masterbar/masterbar.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
sync/class.jetpack-sync-module-posts.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -105,6 +105,9 @@
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
sync/class.jetpack-sync-functions.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -148,6 +148,7 @@  discard block
 block discarded – undo
148 148
 	 * Helper function that is used when getting home or siteurl values. Decides
149 149
 	 * whether to get the raw or filtered value.
150 150
 	 *
151
+	 * @param string $url_type
151 152
 	 * @return string
152 153
 	 */
153 154
 	public static function get_raw_or_filtered_url( $url_type ) {
@@ -197,6 +198,9 @@  discard block
 block discarded – undo
197 198
 		return self::get_protocol_normalized_url( 'main_network_site_url', network_site_url() );
198 199
 	}
199 200
 
201
+	/**
202
+	 * @param string $callable
203
+	 */
200 204
 	public static function get_protocol_normalized_url( $callable, $new_value ) {
201 205
 		$option_key = self::HTTPS_CHECK_OPTION_PREFIX . $callable;
202 206
 
@@ -236,6 +240,9 @@  discard block
 block discarded – undo
236 240
 		return $value;
237 241
 	}
238 242
 
243
+	/**
244
+	 * @param string $url_function
245
+	 */
239 246
 	public static function normalize_www_in_url( $option, $url_function ) {
240 247
 		$url        = wp_parse_url( call_user_func( $url_function ) );
241 248
 		$option_url = wp_parse_url( get_option( $option ) );
Please login to merge, or discard this patch.