Completed
Push — master ( bf78fd...b40852 )
by Scott
21:09
created
wp-includes/ms-functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1872,7 +1872,7 @@  discard block
 block discarded – undo
1872 1872
  * @since MU
1873 1873
  *
1874 1874
  * @param array|string $deprecated Not used.
1875
- * @return array The current site's domain
1875
+ * @return string[] The current site's domain
1876 1876
  */
1877 1877
 function redirect_this_site( $deprecated = '' ) {
1878 1878
 	return array( get_current_site()->domain );
@@ -2150,7 +2150,7 @@  discard block
 block discarded – undo
2150 2150
  *
2151 2151
  * @staticvar bool $forced_content
2152 2152
  *
2153
- * @param bool $force
2153
+ * @param string|boolean $force
2154 2154
  * @return bool True if forced, false if not forced.
2155 2155
  */
2156 2156
 function force_ssl_content( $force = '' ) {
Please login to merge, or discard this patch.
wp-includes/ms-load.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
  *
66 66
  * @since 3.0.0
67 67
  *
68
- * @return true|string Returns true on success, or drop-in file to include.
68
+ * @return boolean|string Returns true on success, or drop-in file to include.
69 69
  */
70 70
 function ms_site_check() {
71 71
 
Please login to merge, or discard this patch.
wp-includes/pluggable.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
  *
735 735
  * @param string $cookie
736 736
  * @param string $scheme Optional. The cookie scheme to use: auth, secure_auth, or logged_in
737
- * @return array|false Authentication cookie components
737
+ * @return string Authentication cookie components
738 738
  */
739 739
 function wp_parse_auth_cookie($cookie = '', $scheme = '') {
740 740
 	if ( empty($cookie) ) {
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
  *
1032 1032
  * @since 1.2.0
1033 1033
  *
1034
- * @param int|string $action    Action nonce.
1034
+ * @param integer $action    Action nonce.
1035 1035
  * @param string     $query_arg Optional. Key to check for nonce in `$_REQUEST` (since 2.5).
1036 1036
  *                              Default '_wpnonce'.
1037 1037
  * @return false|int False if the nonce is invalid, 1 if the nonce is valid and generated between
@@ -1071,7 +1071,7 @@  discard block
 block discarded – undo
1071 1071
  *
1072 1072
  * @since 2.0.3
1073 1073
  *
1074
- * @param int|string   $action    Action nonce.
1074
+ * @param integer   $action    Action nonce.
1075 1075
  * @param false|string $query_arg Optional. Key to check for the nonce in `$_REQUEST` (since 2.5). If false,
1076 1076
  *                                `$_REQUEST` values will be evaluated for '_ajax_nonce', and '_wpnonce'
1077 1077
  *                                (in that order). Default false.
@@ -1534,7 +1534,7 @@  discard block
 block discarded – undo
1534 1534
  * should be notified, overriding the site setting.
1535 1535
  *
1536 1536
  * @param int $comment_id Comment ID.
1537
- * @return true Always returns true.
1537
+ * @return boolean Always returns true.
1538 1538
  */
1539 1539
 function wp_notify_moderator($comment_id) {
1540 1540
 	global $wpdb;
@@ -1790,8 +1790,8 @@  discard block
 block discarded – undo
1790 1790
  * @since 2.0.3
1791 1791
  *
1792 1792
  * @param string     $nonce  Nonce that was used in the form to verify
1793
- * @param string|int $action Should give context to what is taking place and be the same when nonce was created.
1794
- * @return false|int False if the nonce is invalid, 1 if the nonce is valid and generated between
1793
+ * @param integer $action Should give context to what is taking place and be the same when nonce was created.
1794
+ * @return string False if the nonce is invalid, 1 if the nonce is valid and generated between
1795 1795
  *                   0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
1796 1796
  */
1797 1797
 function wp_verify_nonce( $nonce, $action = -1 ) {
@@ -1854,7 +1854,7 @@  discard block
 block discarded – undo
1854 1854
  * @since 2.0.3
1855 1855
  * @since 4.0.0 Session tokens were integrated with nonce creation
1856 1856
  *
1857
- * @param string|int $action Scalar value to add context to the nonce.
1857
+ * @param integer $action Scalar value to add context to the nonce.
1858 1858
  * @return string The token.
1859 1859
  */
1860 1860
 function wp_create_nonce($action = -1) {
Please login to merge, or discard this patch.
wp-includes/plugin.php 1 patch
Doc Comments   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
  *                                  and functions with the same priority are executed
101 101
  *                                  in the order in which they were added to the action.
102 102
  * @param int      $accepted_args   Optional. The number of arguments the function accepts. Default 1.
103
- * @return true
103
+ * @return boolean
104 104
  */
105 105
 function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) {
106 106
 	global $wp_filter, $merged_filters;
@@ -195,7 +195,6 @@  discard block
 block discarded – undo
195 195
  *
196 196
  * @param string $tag     The name of the filter hook.
197 197
  * @param mixed  $value   The value on which the filters hooked to `$tag` are applied on.
198
- * @param mixed  $var,... Additional variables passed to the functions hooked to `$tag`.
199 198
  * @return mixed The filtered value after all hooked functions are applied to it.
200 199
  */
201 200
 function apply_filters( $tag, $value ) {
@@ -349,7 +348,7 @@  discard block
 block discarded – undo
349 348
  *
350 349
  * @param string   $tag      The filter to remove hooks from.
351 350
  * @param int|bool $priority Optional. The priority number to remove. Default false.
352
- * @return true True when finished.
351
+ * @return boolean True when finished.
353 352
  */
354 353
 function remove_all_filters( $tag, $priority = false ) {
355 354
 	global $wp_filter, $merged_filters;
@@ -454,7 +453,7 @@  discard block
 block discarded – undo
454 453
  *                                  and functions with the same priority are executed
455 454
  *                                  in the order in which they were added to the action.
456 455
  * @param int      $accepted_args   Optional. The number of arguments the function accepts. Default 1.
457
- * @return true Will always return true.
456
+ * @return boolean Will always return true.
458 457
  */
459 458
 function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1) {
460 459
 	return add_filter($tag, $function_to_add, $priority, $accepted_args);
@@ -477,8 +476,6 @@  discard block
 block discarded – undo
477 476
  * @global array $wp_current_filter Stores the list of current filters with the current one last
478 477
  *
479 478
  * @param string $tag     The name of the action to be executed.
480
- * @param mixed  $arg,... Optional. Additional arguments which are passed on to the
481
- *                        functions hooked to the action. Default empty.
482 479
  */
483 480
 function do_action($tag, $arg = '') {
484 481
 	global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter;
@@ -651,7 +648,7 @@  discard block
 block discarded – undo
651 648
  *
652 649
  * @param string   $tag      The action to remove hooks from.
653 650
  * @param int|bool $priority The priority number to remove them from. Default false.
654
- * @return true True when finished.
651
+ * @return boolean True when finished.
655 652
  */
656 653
 function remove_all_actions($tag, $priority = false) {
657 654
 	return remove_all_filters($tag, $priority);
Please login to merge, or discard this patch.
wp-includes/post-template.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
  *
105 105
  * @since 0.71
106 106
  *
107
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
107
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
108 108
  * @return string
109 109
  */
110 110
 function get_the_title( $post = 0 ) {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
  *
170 170
  * @since 1.5.0
171 171
  *
172
- * @param int|WP_Post $post Optional. Post ID or post object. Default is global $post.
172
+ * @param integer $post Optional. Post ID or post object. Default is global $post.
173 173
  */
174 174
 function the_guid( $post = 0 ) {
175 175
 	$post = get_post( $post );
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
  *
200 200
  * @since 1.5.0
201 201
  *
202
- * @param int|WP_Post $post Optional. Post ID or post object. Default is global $post.
202
+ * @param integer $post Optional. Post ID or post object. Default is global $post.
203 203
  * @return string
204 204
  */
205 205
 function get_the_guid( $post = 0 ) {
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
  *
403 403
  * @since 2.3.0
404 404
  *
405
- * @param int|WP_Post $id Optional. Post ID or post object.
405
+ * @param integer $id Optional. Post ID or post object.
406 406
  * @return bool
407 407
  */
408 408
 function has_excerpt( $id = 0 ) {
@@ -1410,7 +1410,7 @@  discard block
 block discarded – undo
1410 1410
  *
1411 1411
  * @since 2.0.0
1412 1412
  *
1413
- * @param int|WP_Post $id Optional. Post ID or post object.
1413
+ * @param integer $id Optional. Post ID or post object.
1414 1414
  * @param bool        $fullsize     Optional, default is false. Whether to use full size.
1415 1415
  * @param bool        $deprecated   Deprecated. Not used.
1416 1416
  * @param bool        $permalink    Optional, default is false. Whether to include permalink.
@@ -1431,7 +1431,7 @@  discard block
 block discarded – undo
1431 1431
  * @since 2.5.0
1432 1432
  * @since 4.4.0 The `$id` parameter can now accept either a post ID or `WP_Post` object.
1433 1433
  *
1434
- * @param int|WP_Post  $id        Optional. Post ID or post object.
1434
+ * @param integer  $id        Optional. Post ID or post object.
1435 1435
  * @param string|array $size      Optional. Image size. Accepts any valid image size, or an array
1436 1436
  *                                of width and height values in pixels (in that order).
1437 1437
  *                                Default 'thumbnail'.
@@ -1535,7 +1535,7 @@  discard block
 block discarded – undo
1535 1535
  *
1536 1536
  * @since 1.0.0
1537 1537
  *
1538
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
1538
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
1539 1539
  * @return string HTML content for password form for password protected post.
1540 1540
  */
1541 1541
 function get_the_password_form( $post = 0 ) {
@@ -1714,7 +1714,7 @@  discard block
 block discarded – undo
1714 1714
  *
1715 1715
  * @since 2.6.0
1716 1716
  *
1717
- * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
1717
+ * @param integer $post_id Optional. Post ID or WP_Post object. Default is global $post.
1718 1718
  * @param string      $type    'all' (default), 'revision' or 'autosave'
1719 1719
  */
1720 1720
 function wp_list_post_revisions( $post_id = 0, $type = 'all' ) {
Please login to merge, or discard this patch.
wp-includes/post.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
  * @since 1.0.0
390 390
  *
391 391
  * @param string $post Post content.
392
- * @return array Post before ('main'), after ('extended'), and custom read more ('more_text').
392
+ * @return integer Post before ('main'), after ('extended'), and custom read more ('more_text').
393 393
  */
394 394
 function get_extended( $post ) {
395 395
 	//Match the new style more links.
@@ -1270,7 +1270,7 @@  discard block
 block discarded – undo
1270 1270
  *
1271 1271
  * @access private
1272 1272
  *
1273
- * @param object|WP_Post_Type $post_type_object Post type object.
1273
+ * @param WP_Post_Type $post_type_object Post type object.
1274 1274
  * @return object Object with all the labels as member variables.
1275 1275
  */
1276 1276
 function get_post_type_labels( $post_type_object ) {
@@ -1633,7 +1633,7 @@  discard block
 block discarded – undo
1633 1633
  *
1634 1634
  * @param int    $post_id    Post ID.
1635 1635
  * @param string $meta_key   Metadata name.
1636
- * @param mixed  $meta_value Optional. Metadata value. Must be serializable if
1636
+ * @param string  $meta_value Optional. Metadata value. Must be serializable if
1637 1637
  *                           non-scalar. Default empty.
1638 1638
  * @return bool True on success, false on failure.
1639 1639
  */
@@ -2584,7 +2584,7 @@  discard block
 block discarded – undo
2584 2584
  *
2585 2585
  * @global wpdb $wpdb WordPress database abstraction object.
2586 2586
  *
2587
- * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post.
2587
+ * @param integer $post Optional. Post ID or post object. Defaults to global $post.
2588 2588
  * @return mixed|void False on failure.
2589 2589
  */
2590 2590
 function wp_trash_post_comments( $post = null ) {
@@ -2640,8 +2640,8 @@  discard block
 block discarded – undo
2640 2640
  *
2641 2641
  * @global wpdb $wpdb WordPress database abstraction object.
2642 2642
  *
2643
- * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post.
2644
- * @return true|void
2643
+ * @param integer $post Optional. Post ID or post object. Defaults to global $post.
2644
+ * @return null|boolean
2645 2645
  */
2646 2646
 function wp_untrash_post_comments( $post = null ) {
2647 2647
 	global $wpdb;
@@ -4328,7 +4328,7 @@  discard block
 block discarded – undo
4328 4328
  * @since 1.5.0
4329 4329
  * @since 4.6.0 Converted the `$page` parameter to optional.
4330 4330
  *
4331
- * @param WP_Post|object|int $page Optional. Page ID or WP_Post object. Default is global $post.
4331
+ * @param integer $page Optional. Page ID or WP_Post object. Default is global $post.
4332 4332
  * @return string|false Page URI, false on error.
4333 4333
  */
4334 4334
 function get_page_uri( $page = 0 ) {
@@ -5125,7 +5125,7 @@  discard block
 block discarded – undo
5125 5125
  *
5126 5126
  * @since 2.1.0
5127 5127
  *
5128
- * @param string|int $mime MIME type or attachment ID.
5128
+ * @param integer $mime MIME type or attachment ID.
5129 5129
  * @return string|false Icon, false otherwise.
5130 5130
  */
5131 5131
 function wp_mime_type_icon( $mime = 0 ) {
@@ -6022,7 +6022,7 @@  discard block
 block discarded – undo
6022 6022
  * @access private
6023 6023
  *
6024 6024
  * @param string $post_name Slug.
6025
- * @param string $post_ID   Optional. Post ID that should be ignored. Default 0.
6025
+ * @param integer $post_ID   Optional. Post ID that should be ignored. Default 0.
6026 6026
  */
6027 6027
 function wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post_ID = 0 ) {
6028 6028
 	$trashed_posts_with_desired_slug = get_posts( array(
Please login to merge, or discard this patch.
wp-includes/query.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * @global WP_Query $wp_query Global WP_Query instance.
21 21
  *
22 22
  * @param string $var       The variable key to retrieve.
23
- * @param mixed  $default   Optional. Value to return if the query variable is not set. Default empty.
23
+ * @param integer  $default   Optional. Value to return if the query variable is not set. Default empty.
24 24
  * @return mixed Contents of the query variable.
25 25
  */
26 26
 function get_query_var( $var, $default = '' ) {
@@ -286,8 +286,8 @@  discard block
 block discarded – undo
286 286
  *
287 287
  * @global WP_Query $wp_query Global WP_Query instance.
288 288
  *
289
- * @param string|array     $taxonomy Optional. Taxonomy slug or slugs.
290
- * @param int|string|array $term     Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
289
+ * @param string     $taxonomy Optional. Taxonomy slug or slugs.
290
+ * @param string $term     Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
291 291
  * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives).
292 292
  */
293 293
 function is_tax( $taxonomy = '', $term = '' ) {
@@ -2192,7 +2192,7 @@  discard block
 block discarded – undo
2192 2192
 	 *
2193 2193
 	 * @since 3.7.0
2194 2194
 	 *
2195
-	 * @param array $terms Terms to check.
2195
+	 * @param string[] $terms Terms to check.
2196 2196
 	 * @return array Terms that are not stopwords.
2197 2197
 	 */
2198 2198
 	protected function parse_search_terms( $terms ) {
@@ -4187,7 +4187,7 @@  discard block
 block discarded – undo
4187 4187
 	 * @access public
4188 4188
 	 *
4189 4189
 	 * @param string $name Property to check if set.
4190
-	 * @return bool Whether the property is set.
4190
+	 * @return boolean|null Whether the property is set.
4191 4191
 	 */
4192 4192
 	public function __isset( $name ) {
4193 4193
 		if ( in_array( $name, $this->compat_fields ) ) {
@@ -4786,8 +4786,8 @@  discard block
 block discarded – undo
4786 4786
 	 * @global int             $more
4787 4787
 	 * @global int             $numpages
4788 4788
 	 *
4789
-	 * @param WP_Post|object|int $post WP_Post instance or Post ID/object.
4790
-	 * @return true True when finished.
4789
+	 * @param WP_Post $post WP_Post instance or Post ID/object.
4790
+	 * @return null|boolean True when finished.
4791 4791
 	 */
4792 4792
 	public function setup_postdata( $post ) {
4793 4793
 		global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages;
Please login to merge, or discard this patch.
wp-includes/Requests/IDNAEncoder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@
 block discarded – undo
357 357
 	 * @param int $delta
358 358
 	 * @param int $numpoints
359 359
 	 * @param bool $firsttime
360
-	 * @return int New bias
360
+	 * @return double New bias
361 361
 	 */
362 362
 	protected static function adapt($delta, $numpoints, $firsttime) {
363 363
 #	function adapt(delta,numpoints,firsttime):
Please login to merge, or discard this patch.
wp-includes/Requests/IRI.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 	 *
250 250
 	 * Returns false if $base is not absolute, otherwise an IRI.
251 251
 	 *
252
-	 * @param IRI|string $base (Absolute) Base IRI
252
+	 * @param string $base (Absolute) Base IRI
253 253
 	 * @param IRI|string $relative Relative IRI
254 254
 	 * @return IRI|false
255 255
 	 */
@@ -987,6 +987,7 @@  discard block
 block discarded – undo
987 987
 	 * Convert an IRI to a URI (or parts thereof)
988 988
 	 *
989 989
 	 * @param string|bool IRI to convert (or false from {@see get_iri})
990
+	 * @param false|string $string
990 991
 	 * @return string|false URI if IRI is valid, false otherwise.
991 992
 	 */
992 993
 	protected function to_uri($string) {
Please login to merge, or discard this patch.