Completed
Push — master ( fdb3a7...cde0c6 )
by Stephen
20:18
created
src/wp-admin/includes/class-wp-filesystem-base.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 	 * @since 2.5.0
392 392
 	 *
393 393
 	 * @param string $mode string The *nix-style file permission.
394
-	 * @return int octal representation
394
+	 * @return string octal representation
395 395
 	 */
396 396
 	public function getnumchmodfromh( $mode ) {
397 397
 		$realmode = '';
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 	 * @abstract
467 467
 	 *
468 468
 	 * @param string $file Name of the file to read.
469
-	 * @return mixed|bool Returns the read data or false on failure.
469
+	 * @return boolean Returns the read data or false on failure.
470 470
 	 */
471 471
 	public function get_contents( $file ) {
472 472
 		return false;
Please login to merge, or discard this patch.
src/wp-admin/includes/image-edit.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@
 block discarded – undo
384 384
  * @ignore
385 385
  * @param resource  $img   Image resource.
386 386
  * @param float|int $angle Image rotation angle, in degrees.
387
- * @return resource|false GD image resource, false otherwise.
387
+ * @return resource GD image resource, false otherwise.
388 388
  */
389 389
 function _rotate_image_resource($img, $angle) {
390 390
 	_deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::rotate' ) );
Please login to merge, or discard this patch.
src/wp-includes/class-feed.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 * @access public
99 99
 	 *
100 100
 	 * @param SimplePie $data Data to save.
101
-	 * @return true Always true.
101
+	 * @return boolean Always true.
102 102
 	 */
103 103
 	public function save($data) {
104 104
 		if ( $data instanceof SimplePie ) {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	 * @since 2.8.0
153 153
 	 * @access public
154 154
 	 *
155
-	 * @return true Always true.
155
+	 * @return boolean Always true.
156 156
 	 */
157 157
 	public function unlink() {
158 158
 		delete_transient($this->name);
Please login to merge, or discard this patch.
src/wp-includes/class-wp-customize-manager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -337,8 +337,8 @@
 block discarded – undo
337 337
 	 *
338 338
 	 * @since 3.4.0
339 339
 	 *
340
-	 * @param mixed $ajax_message Ajax return
341
-	 * @param mixed $message UI message
340
+	 * @param integer $ajax_message Ajax return
341
+	 * @param string $message UI message
342 342
 	 */
343 343
 	protected function wp_die( $ajax_message, $message = null ) {
344 344
 		if ( $this->doing_ajax() || isset( $_POST['customized'] ) ) {
Please login to merge, or discard this patch.
src/wp-includes/deprecated.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
  * @param string $feed_image
611 611
  * @param string $exclude
612 612
  * @param bool $hierarchical
613
- * @return false|null
613
+ * @return false|string
614 614
  */
615 615
 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
616 616
 				   $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
  * @see wp_list_categories()
631 631
  *
632 632
  * @param string|array $args
633
- * @return false|null|string
633
+ * @return false|string
634 634
  */
635 635
 function wp_list_cats($args = '') {
636 636
 	_deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );
@@ -2101,7 +2101,6 @@  discard block
 block discarded – undo
2101 2101
  * @param string|int $name            Widget ID.
2102 2102
  * @param callable   $output_callback Run when widget is called.
2103 2103
  * @param string     $classname       Optional. Classname widget option. Default empty.
2104
- * @param mixed      $params ,...     Widget parameters.
2105 2104
  */
2106 2105
 function register_sidebar_widget($name, $output_callback, $classname = '') {
2107 2106
 	_deprecated_function( __FUNCTION__, '2.8.0', 'wp_register_sidebar_widget()' );
@@ -2419,7 +2418,7 @@  discard block
 block discarded – undo
2419 2418
  * @see count_user_posts()
2420 2419
  *
2421 2420
  * @param int $userid User to count posts for.
2422
- * @return int Number of posts the given user has written.
2421
+ * @return string Number of posts the given user has written.
2423 2422
  */
2424 2423
 function get_usernumposts( $userid ) {
2425 2424
 	_deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' );
@@ -3601,7 +3600,7 @@  discard block
 block discarded – undo
3601 3600
  * @deprecated 4.4.0 Use get_permalink()
3602 3601
  * @see get_permalink()
3603 3602
  *
3604
- * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
3603
+ * @param integer $post_id Optional. Post ID or WP_Post object. Default is global $post.
3605 3604
  * @return string|false
3606 3605
  */
3607 3606
 function post_permalink( $post_id = 0 ) {
Please login to merge, or discard this patch.
src/wp-includes/formatting.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
  * @staticvar string $_charset
880 880
  *
881 881
  * @param string     $string         The text which is to be encoded.
882
- * @param int|string $quote_style    Optional. Converts double quotes if set to ENT_COMPAT,
882
+ * @param integer $quote_style    Optional. Converts double quotes if set to ENT_COMPAT,
883 883
  *                                   both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES.
884 884
  *                                   Also compatible with old values; converting single quotes if set to 'single',
885 885
  *                                   double if set to 'double' or both if otherwise set.
@@ -952,7 +952,7 @@  discard block
 block discarded – undo
952 952
  * @since 2.8.0
953 953
  *
954 954
  * @param string     $string The text which is to be decoded.
955
- * @param string|int $quote_style Optional. Converts double quotes if set to ENT_COMPAT,
955
+ * @param integer $quote_style Optional. Converts double quotes if set to ENT_COMPAT,
956 956
  *                                both single and double if set to ENT_QUOTES or
957 957
  *                                none if set to ENT_NOQUOTES.
958 958
  *                                Also compatible with old _wp_specialchars() values;
@@ -3692,7 +3692,7 @@  discard block
 block discarded – undo
3692 3692
  * @since 2.8.1
3693 3693
  * @access private
3694 3694
  *
3695
- * @param string|array $search  The value being searched for, otherwise known as the needle.
3695
+ * @param string[] $search  The value being searched for, otherwise known as the needle.
3696 3696
  *                              An array may be used to designate multiple needles.
3697 3697
  * @param string       $subject The string being searched and replaced on, otherwise known as the haystack.
3698 3698
  * @return string The string with the replaced svalues.
@@ -4358,7 +4358,6 @@  discard block
 block discarded – undo
4358 4358
  * @link https://secure.php.net/sprintf
4359 4359
  *
4360 4360
  * @param string $pattern   The string which formatted args are inserted.
4361
- * @param mixed  $args ,... Arguments to be formatted into the $pattern string.
4362 4361
  * @return string The formatted string.
4363 4362
  */
4364 4363
 function wp_sprintf( $pattern ) {
Please login to merge, or discard this patch.
src/wp-includes/functions.php 1 patch
Doc Comments   +8 added lines, -11 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
  *
56 56
  * @param string   $type Type of time to retrieve. Accepts 'mysql', 'timestamp', or PHP date
57 57
  *                       format string (e.g. 'Y-m-d').
58
- * @param int|bool $gmt  Optional. Whether to use GMT timezone. Default false.
58
+ * @param integer $gmt  Optional. Whether to use GMT timezone. Default false.
59 59
  * @return int|string Integer if $type is 'timestamp', string otherwise.
60 60
  */
61 61
 function current_time( $type, $gmt = 0 ) {
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
  * @since 2.0.5
437 437
  *
438 438
  * @param string|array|object $data Data that might be serialized.
439
- * @return mixed A scalar data
439
+ * @return string A scalar data
440 440
  */
441 441
 function maybe_serialize( $data ) {
442 442
 	if ( is_array( $data ) || is_object( $data ) )
@@ -771,9 +771,6 @@  discard block
 block discarded – undo
771 771
  *
772 772
  * @since 1.5.0
773 773
  *
774
- * @param string|array $key   Either a query variable key, or an associative array of query variables.
775
- * @param string       $value Optional. Either a query variable value, or a URL to act upon.
776
- * @param string       $url   Optional. A URL to act upon.
777 774
  * @return string New URL query string (unescaped).
778 775
  */
779 776
 function add_query_arg() {
@@ -1428,7 +1425,7 @@  discard block
 block discarded – undo
1428 1425
  * @since 2.0.4
1429 1426
  *
1430 1427
  * @param string     $actionurl URL to add nonce action.
1431
- * @param int|string $action    Optional. Nonce action name. Default -1.
1428
+ * @param integer $action    Optional. Nonce action name. Default -1.
1432 1429
  * @param string     $name      Optional. Nonce name. Default '_wpnonce'.
1433 1430
  * @return string Escaped URL with nonce action added.
1434 1431
  */
@@ -1457,7 +1454,7 @@  discard block
 block discarded – undo
1457 1454
  *
1458 1455
  * @since 2.0.4
1459 1456
  *
1460
- * @param int|string $action  Optional. Action name. Default -1.
1457
+ * @param integer $action  Optional. Action name. Default -1.
1461 1458
  * @param string     $name    Optional. Nonce name. Default '_wpnonce'.
1462 1459
  * @param bool       $referer Optional. Whether to set the referer field for validation. Default true.
1463 1460
  * @param bool       $echo    Optional. Whether to display or return hidden form field. Default true.
@@ -1549,7 +1546,7 @@  discard block
 block discarded – undo
1549 1546
  *
1550 1547
  * @since 4.5.0
1551 1548
  *
1552
- * @return string|false Referer URL on success, false on failure.
1549
+ * @return string Referer URL on success, false on failure.
1553 1550
  */
1554 1551
 function wp_get_raw_referer() {
1555 1552
 	if ( ! empty( $_REQUEST['_wp_http_referer'] ) ) {
@@ -1861,7 +1858,7 @@  discard block
 block discarded – undo
1861 1858
  * @param bool   $create_dir Optional. Whether to check and create the uploads directory.
1862 1859
  *                           Default true for backward compatibility.
1863 1860
  * @param bool   $refresh_cache Optional. Whether to refresh the cache. Default false.
1864
- * @return array See above for description.
1861
+ * @return callable|null See above for description.
1865 1862
  */
1866 1863
 function wp_upload_dir( $time = null, $create_dir = true, $refresh_cache = false ) {
1867 1864
 	static $cache = array(), $tested_paths = array();
@@ -4692,7 +4689,7 @@  discard block
 block discarded – undo
4692 4689
  *
4693 4690
  * @see __return_false()
4694 4691
  *
4695
- * @return true True.
4692
+ * @return boolean True.
4696 4693
  */
4697 4694
 function __return_true() {
4698 4695
 	return true;
@@ -4814,7 +4811,7 @@  discard block
 block discarded – undo
4814 4811
  * @param int      $start         The ID to start the loop check at.
4815 4812
  * @param int      $start_parent  The parent_ID of $start to use instead of calling $callback( $start ).
4816 4813
  *                                Use null to always use $callback
4817
- * @param array    $callback_args Optional. Additional arguments to send to $callback.
4814
+ * @param string[]    $callback_args Optional. Additional arguments to send to $callback.
4818 4815
  * @return array IDs of all members of loop.
4819 4816
  */
4820 4817
 function wp_find_hierarchy_loop( $callback, $start, $start_parent, $callback_args = array() ) {
Please login to merge, or discard this patch.
src/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;
@@ -4317,7 +4317,7 @@  discard block
 block discarded – undo
4317 4317
  * @since 1.5.0
4318 4318
  * @since 4.6.0 Converted the `$page` parameter to optional.
4319 4319
  *
4320
- * @param WP_Post|object|int $page Optional. Page ID or WP_Post object. Default is global $post.
4320
+ * @param integer $page Optional. Page ID or WP_Post object. Default is global $post.
4321 4321
  * @return string|false Page URI, false on error.
4322 4322
  */
4323 4323
 function get_page_uri( $page = 0 ) {
@@ -5114,7 +5114,7 @@  discard block
 block discarded – undo
5114 5114
  *
5115 5115
  * @since 2.1.0
5116 5116
  *
5117
- * @param string|int $mime MIME type or attachment ID.
5117
+ * @param integer $mime MIME type or attachment ID.
5118 5118
  * @return string|false Icon, false otherwise.
5119 5119
  */
5120 5120
 function wp_mime_type_icon( $mime = 0 ) {
@@ -6011,7 +6011,7 @@  discard block
 block discarded – undo
6011 6011
  * @access private
6012 6012
  *
6013 6013
  * @param string $post_name Slug.
6014
- * @param string $post_ID   Optional. Post ID that should be ignored. Default 0.
6014
+ * @param integer $post_ID   Optional. Post ID that should be ignored. Default 0.
6015 6015
  */
6016 6016
 function wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post_ID = 0 ) {
6017 6017
 	$trashed_posts_with_desired_slug = get_posts( array(
Please login to merge, or discard this patch.
src/wp-includes/revision.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -432,7 +432,7 @@
 block discarded – undo
432 432
  *
433 433
  * @see get_children()
434 434
  *
435
- * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
435
+ * @param integer $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
436 436
  * @param array|null  $args    Optional. Arguments for retrieving post revisions. Default null.
437 437
  * @return array An array of revisions, or an empty array if none.
438 438
  */
Please login to merge, or discard this patch.