Completed
Push — remove/wp-admin-publicize-conn... ( d708bd...e84ae6 )
by
unknown
64:00 queued 52:22
created
modules/videopress/videopress.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -147,6 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * Performs a remote XML-RPC query using Jetpack's IXR Client. And also
148 148
 	 * appends some useful stuff about this setup to the query.
149 149
 	 *
150
+	 * @param string $method
150 151
 	 * @return the Jetpack_IXR_Client object after querying.
151 152
 	 */
152 153
 	function query( $method, $args = null ) {
@@ -349,6 +350,7 @@  discard block
 block discarded – undo
349 350
 	 *
350 351
 	 * Similar to current_user_can, but internal to VideoPress. Returns
351 352
 	 * true if the given VideoPress capability is allowed by the given user.
353
+	 * @param string $cap
352 354
 	 */
353 355
 	function can( $cap, $user_id = false ) {
354 356
 		if ( ! $user_id )
Please login to merge, or discard this patch.
modules/widgets/facebook-likebox.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -252,6 +252,9 @@
 block discarded – undo
252 252
 		return ( FALSE !== strpos( $url, 'facebook.com' ) ) ? TRUE : FALSE;
253 253
 	}
254 254
 
255
+	/**
256
+	 * @param integer $value
257
+	 */
255 258
 	function normalize_int_value( $value, $default = 0, $max = 0, $min = 0 ) {
256 259
 		$value = (int) $value;
257 260
 
Please login to merge, or discard this patch.
modules/widgets/goodreads.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
 		do_action( 'jetpack_stats_extra', 'widget', 'goodreads' );
90 90
 	}
91 91
 
92
+	/**
93
+	 * @param string $user_id
94
+	 */
92 95
 	function goodreads_user_id_exists( $user_id ) {
93 96
 		$url = "http://www.goodreads.com/user/show/$user_id/";
94 97
 		$response = wp_remote_head( $url, array( 'httpversion'=>'1.1', 'timeout'=>3, 'redirection'=> 2 ) );
Please login to merge, or discard this patch.
json-endpoints/class.wpcom-json-api-update-post-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
 		$new  = $this->api->ends_with( $path, '/new' );
33 38
 		$args = $this->query_args();
@@ -621,6 +626,11 @@  discard block
 block discarded – undo
621 626
 	}
622 627
 
623 628
 	// /sites/%s/posts/%d/delete -> $blog_id, $post_id
629
+
630
+	/**
631
+	 * @param string $path
632
+	 * @param integer $post_id
633
+	 */
624 634
 	function delete_post( $path, $blog_id, $post_id ) {
625 635
 		$post = get_post( $post_id );
626 636
 		if ( !$post || is_wp_error( $post ) ) {
@@ -656,6 +666,11 @@  discard block
 block discarded – undo
656 666
 	}
657 667
 
658 668
 	// /sites/%s/posts/%d/restore -> $blog_id, $post_id
669
+
670
+	/**
671
+	 * @param string $path
672
+	 * @param integer $post_id
673
+	 */
659 674
 	function restore_post( $path, $blog_id, $post_id ) {
660 675
 		$args  = $this->query_args();
661 676
 		$post = get_post( $post_id );
@@ -676,6 +691,10 @@  discard block
 block discarded – undo
676 691
 		return $this->get_post_by( 'ID', $post->ID, $args['context'] );
677 692
 	}
678 693
 
694
+	/**
695
+	 * @param boolean $delete_featured_image
696
+	 * @param string $featured_image
697
+	 */
679 698
 	protected function parse_and_set_featured_image( $post_id, $delete_featured_image, $featured_image ) {
680 699
 		if ( $delete_featured_image ) {
681 700
 			delete_post_thumbnail( $post_id );
Please login to merge, or discard this patch.
modules/widget-visibility/widget-conditions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -616,6 +616,9 @@
 block discarded – undo
616 616
 		return strcasecmp( $a->name, $b->name );
617 617
 	}
618 618
 
619
+	/**
620
+	 * @return string
621
+	 */
619 622
 	public static function maybe_get_split_term( $old_term_id = '', $taxonomy = '' ) {
620 623
 		$term_id = $old_term_id;
621 624
 
Please login to merge, or discard this patch.
modules/custom-post-types/portfolios.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 	 * Our [portfolio] shortcode.
394 394
 	 * Prints Portfolio data styled to look good on *any* theme.
395 395
 	 *
396
-	 * @return portfolio_shortcode_html
396
+	 * @return string
397 397
 	 */
398 398
 	static function portfolio_shortcode( $atts ) {
399 399
 		// Default attributes
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 	 * The Portfolio shortcode loop.
527 527
 	 *
528 528
 	 * @todo add theme color styles
529
-	 * @return html
529
+	 * @return string
530 530
 	 */
531 531
 	static function portfolio_shortcode_html( $atts ) {
532 532
 
@@ -618,6 +618,7 @@  discard block
 block discarded – undo
618 618
 	/**
619 619
 	 * Individual project class
620 620
 	 *
621
+	 * @param integer $portfolio_index_number
621 622
 	 * @return string
622 623
 	 */
623 624
 	static function get_project_class( $portfolio_index_number, $columns ) {
@@ -725,7 +726,7 @@  discard block
 block discarded – undo
725 726
 	/**
726 727
 	 * Displays the author of the current portfolio project.
727 728
 	 *
728
-	 * @return html
729
+	 * @return string
729 730
 	 */
730 731
 	static function get_project_author() {
731 732
 		$html = '<div class="project-author"><span>' . esc_html__( 'Author:', 'jetpack' ) . '</span> ';
@@ -738,7 +739,7 @@  discard block
 block discarded – undo
738 739
 	/**
739 740
 	 * Display the featured image if it's available
740 741
 	 *
741
-	 * @return html
742
+	 * @return string|null
742 743
 	 */
743 744
 	static function get_portfolio_thumbnail_link( $post_id ) {
744 745
 		if ( has_post_thumbnail( $post_id ) ) {
Please login to merge, or discard this patch.
modules/publicize/publicize.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -246,6 +246,7 @@
 block discarded – undo
246 246
 
247 247
 	/**
248 248
 	* Returns true if a user has a connection to a particular service, false otherwise
249
+	* @param string $service
249 250
 	*/
250 251
 	function is_enabled( $service, $_blog_id = false, $_user_id = false ) {
251 252
 		if ( !$_blog_id )
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +42 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1074,7 +1074,7 @@  discard block
 block discarded – undo
1074 1074
 	}
1075 1075
 	/**
1076 1076
 	 * Does the network allow admins to add new users.
1077
-	 * @return boolian
1077
+	 * @return boolean
1078 1078
 	 */
1079 1079
 	static function network_add_new_users( $option = null ) {
1080 1080
 		return (bool) get_site_option( 'add_new_users' );
@@ -1122,7 +1122,7 @@  discard block
 block discarded – undo
1122 1122
 	 * database which could be set to anything as opposed to what this function returns.
1123 1123
 	 * @param  bool  $option
1124 1124
 	 *
1125
-	 * @return boolean
1125
+	 * @return string
1126 1126
 	 */
1127 1127
 	public function is_main_network_option( $option ) {
1128 1128
 		// return '1' or ''
@@ -1133,7 +1133,7 @@  discard block
 block discarded – undo
1133 1133
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1134 1134
 	 *
1135 1135
 	 * @param  string  $option
1136
-	 * @return boolean
1136
+	 * @return string
1137 1137
 	 */
1138 1138
 	public function is_multisite( $option ) {
1139 1139
 		return (string) (bool) is_multisite();
@@ -1231,7 +1231,7 @@  discard block
 block discarded – undo
1231 1231
 
1232 1232
 	/**
1233 1233
 	 * Returns true if the site has file write access false otherwise.
1234
-	 * @return string ( '1' | '0' )
1234
+	 * @return integer ( '1' | '0' )
1235 1235
 	 **/
1236 1236
 	public static function file_system_write_access() {
1237 1237
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2027,7 +2027,7 @@  discard block
 block discarded – undo
2027 2027
 	 * Returns the requested option.  Looks in jetpack_options or jetpack_$name as appropriate.
2028 2028
  	 *
2029 2029
 	 * @param string $name    Option name
2030
-	 * @param mixed  $default (optional)
2030
+	 * @param boolean  $default (optional)
2031 2031
 	 */
2032 2032
 	public static function get_option( $name, $default = false ) {
2033 2033
 		return Jetpack_Options::get_option( $name, $default );
@@ -2094,6 +2094,7 @@  discard block
 block discarded – undo
2094 2094
 	 * @param int $user_id
2095 2095
 	 * @param string $token
2096 2096
 	 * return bool
2097
+	 * @param boolean $is_master_user
2097 2098
 	 */
2098 2099
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2099 2100
 		// not designed for concurrent updates
@@ -2488,6 +2489,7 @@  discard block
 block discarded – undo
2488 2489
 
2489 2490
 	/**
2490 2491
 	 * Like core's get_file_data implementation, but caches the result.
2492
+	 * @param string $file
2491 2493
 	 */
2492 2494
 	public static function get_file_data( $file, $headers ) {
2493 2495
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2511,6 +2513,9 @@  discard block
 block discarded – undo
2511 2513
 		return $data;
2512 2514
 	}
2513 2515
 
2516
+	/**
2517
+	 * @param string $untranslated_tag
2518
+	 */
2514 2519
 	public static function translate_module_tag( $untranslated_tag ) {
2515 2520
 		// Tags are aggregated by tools/build-module-headings-translations.php
2516 2521
 		// and output in modules/module-headings.php
@@ -2803,6 +2808,9 @@  discard block
 block discarded – undo
2803 2808
 		$this->sync->sync_all_module_options( $module );
2804 2809
 	}
2805 2810
 
2811
+	/**
2812
+	 * @return string
2813
+	 */
2806 2814
 	public static function deactivate_module( $module ) {
2807 2815
 		/**
2808 2816
 		 * Fires when a module is deactivated.
@@ -2841,6 +2849,9 @@  discard block
 block discarded – undo
2841 2849
 		return Jetpack_Options::update_option( 'active_modules', array_unique( $new ) );
2842 2850
 	}
2843 2851
 
2852
+	/**
2853
+	 * @param string $module
2854
+	 */
2844 2855
 	public static function enable_module_configurable( $module ) {
2845 2856
 		$module = Jetpack::get_module_slug( $module );
2846 2857
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -2851,21 +2862,33 @@  discard block
 block discarded – undo
2851 2862
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
2852 2863
 	}
2853 2864
 
2865
+	/**
2866
+	 * @param string $module
2867
+	 */
2854 2868
 	public static function module_configuration_load( $module, $method ) {
2855 2869
 		$module = Jetpack::get_module_slug( $module );
2856 2870
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
2857 2871
 	}
2858 2872
 
2873
+	/**
2874
+	 * @param string $module
2875
+	 */
2859 2876
 	public static function module_configuration_head( $module, $method ) {
2860 2877
 		$module = Jetpack::get_module_slug( $module );
2861 2878
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
2862 2879
 	}
2863 2880
 
2881
+	/**
2882
+	 * @param string $module
2883
+	 */
2864 2884
 	public static function module_configuration_screen( $module, $method ) {
2865 2885
 		$module = Jetpack::get_module_slug( $module );
2866 2886
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
2867 2887
 	}
2868 2888
 
2889
+	/**
2890
+	 * @param string $module
2891
+	 */
2869 2892
 	public static function module_configuration_activation_screen( $module, $method ) {
2870 2893
 		$module = Jetpack::get_module_slug( $module );
2871 2894
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -2873,6 +2896,9 @@  discard block
 block discarded – undo
2873 2896
 
2874 2897
 /* Installation */
2875 2898
 
2899
+	/**
2900
+	 * @param string $message
2901
+	 */
2876 2902
 	public static function bail_on_activation( $message, $deactivate = true ) {
2877 2903
 ?>
2878 2904
 <!doctype html>
@@ -3486,7 +3512,7 @@  discard block
 block discarded – undo
3486 3512
 	 * Add help to the Jetpack page
3487 3513
 	 *
3488 3514
 	 * @since Jetpack (1.2.3)
3489
-	 * @return false if not the Jetpack page
3515
+	 * @return false|null if not the Jetpack page
3490 3516
 	 */
3491 3517
 	function admin_help() {
3492 3518
 		$current_screen = get_current_screen();
@@ -4776,6 +4802,7 @@  discard block
 block discarded – undo
4776 4802
 	/**
4777 4803
 	 * Returns the requested Jetpack API URL
4778 4804
 	 *
4805
+	 * @param string $relative_url
4779 4806
 	 * @return string
4780 4807
 	 */
4781 4808
 	public static function api_url( $relative_url ) {
@@ -5201,6 +5228,10 @@  discard block
 block discarded – undo
5201 5228
 		return new WP_User( $token_details['user_id'] );
5202 5229
 	}
5203 5230
 
5231
+	/**
5232
+	 * @param integer $timestamp
5233
+	 * @param string $nonce
5234
+	 */
5204 5235
 	function add_nonce( $timestamp, $nonce ) {
5205 5236
 		global $wpdb;
5206 5237
 		static $nonces_used_this_request = array();
@@ -5406,6 +5437,9 @@  discard block
 block discarded – undo
5406 5437
 		Jetpack::state( null, null, true );
5407 5438
 	}
5408 5439
 
5440
+	/**
5441
+	 * @param string $file
5442
+	 */
5409 5443
 	public static function check_privacy( $file ) {
5410 5444
 		static $is_site_publicly_accessible = null;
5411 5445
 
@@ -6387,8 +6421,8 @@  discard block
 block discarded – undo
6387 6421
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6388 6422
 	 *  - Domain root relative URLs `/feh.png`
6389 6423
 	 *
6390
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6391
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6424
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6425
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6392 6426
 	 *
6393 6427
 	 * @return mixed|string
6394 6428
 	 */
@@ -6786,7 +6820,6 @@  discard block
 block discarded – undo
6786 6820
 	}
6787 6821
 
6788 6822
 	/**
6789
-	 * @param mixed $result Value for the user's option
6790 6823
 	 * @return mixed
6791 6824
 	 */
6792 6825
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
modules/publicize/publicize-jetpack.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@  discard block
 block discarded – undo
75 75
 		) );
76 76
 	}
77 77
 
78
+	/**
79
+	 * @param string $service_name
80
+	 */
78 81
 	function get_connections( $service_name, $_blog_id = false, $_user_id = false ) {
79 82
 		$connections = Jetpack_Options::get_option( 'publicize_connections' );
80 83
 		$connections_to_return = array();
@@ -100,6 +103,9 @@  discard block
 block discarded – undo
100 103
 		return $connection;
101 104
 	}
102 105
 
106
+	/**
107
+	 * @param string $filter
108
+	 */
103 109
 	function get_services( $filter ) {
104 110
 		if ( !in_array( $filter, array( 'all', 'connected' ) ) )
105 111
 			$filter = 'all';
Please login to merge, or discard this patch.