Completed
Push — fix/site-logo-control-only-ima... ( 8be160...5e32f3 )
by
unknown
22:53 queued 11:20
created
class.jetpack-signature.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -183,6 +183,9 @@
 block discarded – undo
183 183
 	}
184 184
 }
185 185
 
186
+/**
187
+ * @param string $text
188
+ */
186 189
 function jetpack_sha1_base64( $text ) {
187 190
 	return base64_encode( sha1( $text, true ) );
188 191
 }
Please login to merge, or discard this patch.
class.jetpack-sync.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,6 @@  discard block
 block discarded – undo
65 65
 
66 66
 	/**
67 67
 	 * @param string $file __FILE__
68
-	 * @param string $option, Option name to sync
69 68
 	 * @param string $option ...
70 69
 	 */
71 70
 	static function sync_options( $file, $option /*, $option, ... */ ) {
@@ -76,8 +75,6 @@  discard block
 block discarded – undo
76 75
 	}
77 76
 	/**
78 77
 	 * @param string $file __FILE__
79
-	 * @param string $option, Option name to sync
80
-	 * @param string $option ...
81 78
 	 */
82 79
 	static function sync_constant( $file, $constant ) {
83 80
 		if ( is_network_admin() ) return;
@@ -353,6 +350,9 @@  discard block
 block discarded – undo
353 350
 		$this->transition_post_status_action( 'delete', $post->post_status, $post );
354 351
 	}
355 352
 
353
+	/**
354
+	 * @param string $new_status
355
+	 */
356 356
 	function transition_post_status_action( $new_status, $old_status, $post ) {
357 357
 		$sync = $this->get_post_sync_operation( $new_status, $old_status, $post, $this->sync_conditions['posts'] );
358 358
 		if ( !$sync ) {
@@ -737,6 +737,11 @@  discard block
 block discarded – undo
737 737
 /* Options Sync */
738 738
 
739 739
 	/* Ah... so much simpler than Posts and Comments :) */
740
+
741
+	/**
742
+	 * @param string $file
743
+	 * @param string $option
744
+	 */
740 745
 	function options( $file, $option /*, $option, ... */ ) {
741 746
 		$options = func_get_args();
742 747
 		$file = array_shift( $options );
@@ -844,6 +849,7 @@  discard block
 block discarded – undo
844 849
 
845 850
 	/**
846 851
 	 * Returns default values of Constants
852
+	 * @param string $constant
847 853
 	 */
848 854
 	function default_constant( $constant ) {
849 855
 		switch( $constant ) {
Please login to merge, or discard this patch.
class.jetpack-xmlrpc-server.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,7 @@  discard block
 block discarded – undo
148 148
 	/**
149 149
 	 * Returns the current error as an IXR_Error
150 150
 	 *
151
+	 * @param Jetpack_Error $error
151 152
 	 * @return null|IXR_Error
152 153
 	 */
153 154
 	function error( $error = null ) {
@@ -174,7 +175,7 @@  discard block
 block discarded – undo
174 175
 	/**
175 176
 	 * Just authenticates with the given Jetpack credentials.
176 177
 	 *
177
-	 * @return bool|IXR_Error
178
+	 * @return string
178 179
 	 */
179 180
 	function test_connection() {
180 181
 		return JETPACK__VERSION;
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +43 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
 	}
1054 1054
 	/**
1055 1055
 	 * Does the network allow admins to add new users.
1056
-	 * @return boolian
1056
+	 * @return boolean
1057 1057
 	 */
1058 1058
 	static function network_add_new_users( $option = null ) {
1059 1059
 		return (bool) get_site_option( 'add_new_users' );
@@ -1101,7 +1101,7 @@  discard block
 block discarded – undo
1101 1101
 	 * database which could be set to anything as opposed to what this function returns.
1102 1102
 	 * @param  bool  $option
1103 1103
 	 *
1104
-	 * @return boolean
1104
+	 * @return string
1105 1105
 	 */
1106 1106
 	public function is_main_network_option( $option ) {
1107 1107
 		// return '1' or ''
@@ -1112,7 +1112,7 @@  discard block
 block discarded – undo
1112 1112
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1113 1113
 	 *
1114 1114
 	 * @param  string  $option
1115
-	 * @return boolean
1115
+	 * @return string
1116 1116
 	 */
1117 1117
 	public function is_multisite( $option ) {
1118 1118
 		return (string) (bool) is_multisite();
@@ -1210,7 +1210,7 @@  discard block
 block discarded – undo
1210 1210
 
1211 1211
 	/**
1212 1212
 	 * Returns true if the site has file write access false otherwise.
1213
-	 * @return string ( '1' | '0' )
1213
+	 * @return integer ( '1' | '0' )
1214 1214
 	 **/
1215 1215
 	public static function file_system_write_access() {
1216 1216
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -1972,7 +1972,7 @@  discard block
 block discarded – undo
1972 1972
 	 * Returns the requested option.  Looks in jetpack_options or jetpack_$name as appropriate.
1973 1973
  	 *
1974 1974
 	 * @param string $name    Option name
1975
-	 * @param mixed  $default (optional)
1975
+	 * @param boolean  $default (optional)
1976 1976
 	 */
1977 1977
 	public static function get_option( $name, $default = false ) {
1978 1978
 		return Jetpack_Options::get_option( $name, $default );
@@ -1982,6 +1982,7 @@  discard block
 block discarded – undo
1982 1982
 	* Stores two secrets and a timestamp so WordPress.com can make a request back and verify an action
1983 1983
 	* Does some extra verification so urls (such as those to public-api, register, etc) can't just be crafted
1984 1984
 	* $name must be a registered option name.
1985
+	* @param string $name
1985 1986
 	*/
1986 1987
 	public static function create_nonce( $name ) {
1987 1988
 		$secret = wp_generate_password( 32, false ) . ':' . wp_generate_password( 32, false ) . ':' . ( time() + 600 );
@@ -2039,6 +2040,7 @@  discard block
 block discarded – undo
2039 2040
 	 * @param int $user_id
2040 2041
 	 * @param string $token
2041 2042
 	 * return bool
2043
+	 * @param boolean $is_master_user
2042 2044
 	 */
2043 2045
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2044 2046
 		// not designed for concurrent updates
@@ -2433,6 +2435,7 @@  discard block
 block discarded – undo
2433 2435
 
2434 2436
 	/**
2435 2437
 	 * Like core's get_file_data implementation, but caches the result.
2438
+	 * @param string $file
2436 2439
 	 */
2437 2440
 	public static function get_file_data( $file, $headers ) {
2438 2441
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2456,6 +2459,9 @@  discard block
 block discarded – undo
2456 2459
 		return $data;
2457 2460
 	}
2458 2461
 
2462
+	/**
2463
+	 * @param string $untranslated_tag
2464
+	 */
2459 2465
 	public static function translate_module_tag( $untranslated_tag ) {
2460 2466
 		// Tags are aggregated by tools/build-module-headings-translations.php
2461 2467
 		// and output in modules/module-headings.php
@@ -2748,6 +2754,9 @@  discard block
 block discarded – undo
2748 2754
 		$this->sync->sync_all_module_options( $module );
2749 2755
 	}
2750 2756
 
2757
+	/**
2758
+	 * @return string
2759
+	 */
2751 2760
 	public static function deactivate_module( $module ) {
2752 2761
 		/**
2753 2762
 		 * Fires when a module is deactivated.
@@ -2786,6 +2795,9 @@  discard block
 block discarded – undo
2786 2795
 		return Jetpack_Options::update_option( 'active_modules', array_unique( $new ) );
2787 2796
 	}
2788 2797
 
2798
+	/**
2799
+	 * @param string $module
2800
+	 */
2789 2801
 	public static function enable_module_configurable( $module ) {
2790 2802
 		$module = Jetpack::get_module_slug( $module );
2791 2803
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -2796,21 +2808,33 @@  discard block
 block discarded – undo
2796 2808
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
2797 2809
 	}
2798 2810
 
2811
+	/**
2812
+	 * @param string $module
2813
+	 */
2799 2814
 	public static function module_configuration_load( $module, $method ) {
2800 2815
 		$module = Jetpack::get_module_slug( $module );
2801 2816
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
2802 2817
 	}
2803 2818
 
2819
+	/**
2820
+	 * @param string $module
2821
+	 */
2804 2822
 	public static function module_configuration_head( $module, $method ) {
2805 2823
 		$module = Jetpack::get_module_slug( $module );
2806 2824
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
2807 2825
 	}
2808 2826
 
2827
+	/**
2828
+	 * @param string $module
2829
+	 */
2809 2830
 	public static function module_configuration_screen( $module, $method ) {
2810 2831
 		$module = Jetpack::get_module_slug( $module );
2811 2832
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
2812 2833
 	}
2813 2834
 
2835
+	/**
2836
+	 * @param string $module
2837
+	 */
2814 2838
 	public static function module_configuration_activation_screen( $module, $method ) {
2815 2839
 		$module = Jetpack::get_module_slug( $module );
2816 2840
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -2818,6 +2842,9 @@  discard block
 block discarded – undo
2818 2842
 
2819 2843
 /* Installation */
2820 2844
 
2845
+	/**
2846
+	 * @param string $message
2847
+	 */
2821 2848
 	public static function bail_on_activation( $message, $deactivate = true ) {
2822 2849
 ?>
2823 2850
 <!doctype html>
@@ -3431,7 +3458,7 @@  discard block
 block discarded – undo
3431 3458
 	 * Add help to the Jetpack page
3432 3459
 	 *
3433 3460
 	 * @since Jetpack (1.2.3)
3434
-	 * @return false if not the Jetpack page
3461
+	 * @return false|null if not the Jetpack page
3435 3462
 	 */
3436 3463
 	function admin_help() {
3437 3464
 		$current_screen = get_current_screen();
@@ -4721,6 +4748,7 @@  discard block
 block discarded – undo
4721 4748
 	/**
4722 4749
 	 * Returns the requested Jetpack API URL
4723 4750
 	 *
4751
+	 * @param string $relative_url
4724 4752
 	 * @return string
4725 4753
 	 */
4726 4754
 	public static function api_url( $relative_url ) {
@@ -5146,6 +5174,10 @@  discard block
 block discarded – undo
5146 5174
 		return new WP_User( $token_details['user_id'] );
5147 5175
 	}
5148 5176
 
5177
+	/**
5178
+	 * @param integer $timestamp
5179
+	 * @param string $nonce
5180
+	 */
5149 5181
 	function add_nonce( $timestamp, $nonce ) {
5150 5182
 		global $wpdb;
5151 5183
 		static $nonces_used_this_request = array();
@@ -5351,6 +5383,9 @@  discard block
 block discarded – undo
5351 5383
 		Jetpack::state( null, null, true );
5352 5384
 	}
5353 5385
 
5386
+	/**
5387
+	 * @param string $file
5388
+	 */
5354 5389
 	public static function check_privacy( $file ) {
5355 5390
 		static $is_site_publicly_accessible = null;
5356 5391
 
@@ -6332,8 +6367,8 @@  discard block
 block discarded – undo
6332 6367
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6333 6368
 	 *  - Domain root relative URLs `/feh.png`
6334 6369
 	 *
6335
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6336
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6370
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6371
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6337 6372
 	 *
6338 6373
 	 * @return mixed|string
6339 6374
 	 */
@@ -6731,7 +6766,6 @@  discard block
 block discarded – undo
6731 6766
 	}
6732 6767
 
6733 6768
 	/**
6734
-	 * @param mixed $result Value for the user's option
6735 6769
 	 * @return mixed
6736 6770
 	 */
6737 6771
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
class.json-api-endpoints.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1352,6 +1352,7 @@  discard block
 block discarded – undo
1352 1352
 	 * timezone set in the options table for the blog or the GMT offset.
1353 1353
 	 *
1354 1354
 	 * @param datetime string
1355
+	 * @param string $date_string
1355 1356
 	 *
1356 1357
 	 * @return array( $local_time_string, $gmt_time_string )
1357 1358
 	 */
@@ -1466,6 +1467,10 @@  discard block
 block discarded – undo
1466 1467
 		do_action( 'restapi_theme_init' );
1467 1468
 	}
1468 1469
 
1470
+	/**
1471
+	 * @param string $from_hook
1472
+	 * @param string $to_hook
1473
+	 */
1469 1474
 	function copy_hooks( $from_hook, $to_hook, $base_paths ) {
1470 1475
 		global $wp_filter;
1471 1476
 		foreach ( $wp_filter as $hook => $actions ) {
@@ -1520,7 +1525,7 @@  discard block
 block discarded – undo
1520 1525
 	 *
1521 1526
 	 * This method is used in get_link() to construct meta links for API responses.
1522 1527
 	 *
1523
-	 * @param $path string The current endpoint path, relative to the version
1528
+	 * @param string $path string The current endpoint path, relative to the version
1524 1529
 	 * @param $method string Request method used to access the endpoint path
1525 1530
 	 * @return string The current version, or otherwise the maximum version available
1526 1531
 	 */
@@ -1648,7 +1653,6 @@  discard block
 block discarded – undo
1648 1653
 	 *
1649 1654
 	 * Used to construct meta links in API responses
1650 1655
 	 *
1651
-	 * @param mixed $args Optional arguments to be appended to URL
1652 1656
 	 * @return string Endpoint URL
1653 1657
 	 **/
1654 1658
 	function get_link() {
Please login to merge, or discard this patch.
class.json-api.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@  discard block
 block discarded – undo
29 29
 	public $did_output = false;
30 30
 
31 31
 	/**
32
+	 * @param string $method
33
+	 * @param string $url
34
+	 * @param string $post_body
32 35
 	 * @return WPCOM_JSON_API instance
33 36
 	 */
34 37
 	static function init( $method = null, $url = null, $post_body = null ) {
@@ -342,6 +345,9 @@  discard block
 block discarded – undo
342 345
 		return call_user_func_array( array( $endpoint, 'callback' ), $path_pieces );
343 346
 	}
344 347
 
348
+	/**
349
+	 * @param integer $status_code
350
+	 */
345 351
 	function output_early( $status_code, $response = null, $content_type = 'application/json' ) {
346 352
 		$exit = $this->exit;
347 353
 		$this->exit = false;
@@ -536,6 +542,9 @@  discard block
 block discarded – undo
536 542
 		return json_encode( $data );
537 543
 	}
538 544
 
545
+	/**
546
+	 * @param string $needle
547
+	 */
539 548
 	function ends_with( $haystack, $needle ) {
540 549
 		return $needle === substr( $haystack, -strlen( $needle ) );
541 550
 	}
@@ -563,6 +572,10 @@  discard block
 block discarded – undo
563 572
 	}
564 573
 
565 574
 	// Returns true if the specified blog ID is a restricted blog
575
+
576
+	/**
577
+	 * @param integer $blog_id
578
+	 */
566 579
 	function is_restricted_blog( $blog_id ) {
567 580
 		/**
568 581
 		 * Filters all REST API access and return a 403 unauthorized response for all Restricted blog IDs.
@@ -626,6 +639,7 @@  discard block
 block discarded – undo
626 639
 	 * The result is always output, never returned.
627 640
 	 *
628 641
 	 * @param string|null $error_code.  Call with string to start the trapping.  Call with null to stop.
642
+	 * @param string $error_code
629 643
 	 */
630 644
 	function trap_wp_die( $error_code = null ) {
631 645
 		// Stop trapping
Please login to merge, or discard this patch.
class.media-extractor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	 * NOTE: If you want IMAGES, call extract( $blog_id, $post_id, ...) which will give you more/better image extraction
75 75
 	 * This method will give you an error if you ask for IMAGES.
76 76
 	 *
77
-	 * @param $content The HTML post_content of a post
77
+	 * @param string $content The HTML post_content of a post
78 78
 	 * @param $what_to_extract (int) A mask of things to extract, e.g. Jetpack_Media_Meta_Extractor::IMAGES | Jetpack_Media_Meta_Extractor::MENTIONS
79 79
 	 * @param $already_extracted (array) Previously extracted things, e.g. images from extract(), which can be used for x-referencing here
80 80
 	 * @returns a structure containing metadata about the embedded things, or empty array if nothing found, or WP_Error on error
Please login to merge, or discard this patch.
class.media-summary.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -214,6 +214,9 @@  discard block
 block discarded – undo
214 214
 		}
215 215
 	}
216 216
 
217
+	/**
218
+	 * @param string $type
219
+	 */
217 220
 	static function get_video_poster( $type, $id ) {
218 221
 		if ( 'videopress' == $type ) {
219 222
 			if ( function_exists( 'video_get_highest_resolution_image_url' ) ) {
@@ -267,6 +270,9 @@  discard block
 block discarded – undo
267 270
 		return str_word_count( self::clean_text( $post_content ) );
268 271
 	}
269 272
 
273
+	/**
274
+	 * @param string $excerpt_content
275
+	 */
270 276
 	static function get_word_remaining_count( $post_content, $excerpt_content ) {
271 277
 		return str_word_count( self::clean_text( $post_content ) ) - str_word_count( self::clean_text( $excerpt_content ) );
272 278
 	}
Please login to merge, or discard this patch.
functions.photon.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -7,6 +7,7 @@
 block discarded – undo
7 7
  *
8 8
  * @param string $image_url URL to the publicly accessible image you want to manipulate
9 9
  * @param array|string $args An array of arguments, i.e. array( 'w' => '300', 'resize' => array( 123, 456 ) ), or in string form (w=123&h=456)
10
+ * @param string $scheme
10 11
  * @return string The raw final URL. You should run this through esc_url() before displaying it.
11 12
  */
12 13
 function jetpack_photon_url( $image_url, $args = array(), $scheme = null ) {
Please login to merge, or discard this patch.