Completed
Pull Request — master (#2)
by Stephen
13:19
created
src/wp-includes/class-wp-xmlrpc-server.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -408,7 +408,6 @@  discard block
 block discarded – undo
408 408
 	 *
409 409
 	 * @since 4.9.0
410 410
 	 *
411
-	 * @param int $post_id Post ID.
412 411
 	 * @return array Array of custom fields, if they exist.
413 412
 	 */
414 413
 	public function get_term_custom_fields( $term_id ) {
@@ -437,7 +436,6 @@  discard block
 block discarded – undo
437 436
 	 *
438 437
 	 * @since 4.9.0
439 438
 	 *
440
-	 * @param int $post_id Post ID.
441 439
 	 * @param array $fields Custom fields.
442 440
 	 */
443 441
 	public function set_term_custom_fields( $term_id, $fields ) {
Please login to merge, or discard this patch.
src/wp-includes/general-template.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3262,7 +3262,7 @@  discard block
 block discarded – undo
3262 3262
  *     @type string $before_page_number A string to appear before the page number. Default empty.
3263 3263
  *     @type string $after_page_number  A string to append after the page number. Default empty.
3264 3264
  * }
3265
- * @return array|string|void String of page links or array of page links.
3265
+ * @return string String of page links or array of page links.
3266 3266
  */
3267 3267
 function paginate_links( $args = '' ) {
3268 3268
 	global $wp_query, $wp_rewrite;
@@ -3423,7 +3423,7 @@  discard block
 block discarded – undo
3423 3423
  * @param string $key    The unique key for this theme.
3424 3424
  * @param string $name   The name of the theme.
3425 3425
  * @param string $url    The URL of the CSS file containing the color scheme.
3426
- * @param array  $colors Optional. An array of CSS color definition strings which are used
3426
+ * @param string[]  $colors Optional. An array of CSS color definition strings which are used
3427 3427
  *                       to give the user a feel for the theme.
3428 3428
  * @param array  $icons {
3429 3429
  *     Optional. CSS color definitions used to color any SVG icons.
Please login to merge, or discard this patch.
src/wp-includes/media.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
  *
328 328
  * @param int        $width  Image width in pixels.
329 329
  * @param int        $height Image height in pixels.
330
- * @param bool|array $crop   Optional. Whether to crop images to specified width and height or resize.
330
+ * @param boolean $crop   Optional. Whether to crop images to specified width and height or resize.
331 331
  *                           An array can specify positioning of the crop area. Default false.
332 332
  */
333 333
 function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
  *                                    width and height values in pixels (in that order). Default 'medium'.
1011 1011
  * @param array        $image_meta    Optional. The image meta data as returned by 'wp_get_attachment_metadata()'.
1012 1012
  *                                    Default null.
1013
- * @return string|bool A 'srcset' value string or false.
1013
+ * @return false|string A 'srcset' value string or false.
1014 1014
  */
1015 1015
 function wp_get_attachment_image_srcset( $attachment_id, $size = 'medium', $image_meta = null ) {
1016 1016
 	if ( ! $image = wp_get_attachment_image_src( $attachment_id, $size ) ) {
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
  * @param string $image_src     The 'src' of the image.
1040 1040
  * @param array  $image_meta    The image meta data as returned by 'wp_get_attachment_metadata()'.
1041 1041
  * @param int    $attachment_id Optional. The image attachment ID to pass to the filter. Default 0.
1042
- * @return string|bool          The 'srcset' attribute value. False on error or when only one source exists.
1042
+ * @return false|string          The 'srcset' attribute value. False on error or when only one source exists.
1043 1043
  */
1044 1044
 function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attachment_id = 0 ) {
1045 1045
 	/**
@@ -3662,7 +3662,7 @@  discard block
 block discarded – undo
3662 3662
  * @since 3.6.0
3663 3663
  *
3664 3664
  * @param string      $type Mime type.
3665
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
3665
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
3666 3666
  * @return array Found attachments.
3667 3667
  */
3668 3668
 function get_attached_media( $type, $post = 0 ) {
@@ -3815,7 +3815,7 @@  discard block
 block discarded – undo
3815 3815
  *
3816 3816
  * @since 3.6.0
3817 3817
  *
3818
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
3818
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
3819 3819
  * @param bool        $html Optional. Whether to return HTML or data. Default is true.
3820 3820
  * @return string|array Gallery data and srcs parsed from the expanded shortcode.
3821 3821
  */
@@ -3842,7 +3842,7 @@  discard block
 block discarded – undo
3842 3842
  *
3843 3843
  * @see get_post_galleries()
3844 3844
  *
3845
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
3845
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global `$post`.
3846 3846
  * @return array A list of lists, each containing image srcs parsed.
3847 3847
  *               from an expanded shortcode
3848 3848
  */
@@ -3858,7 +3858,7 @@  discard block
 block discarded – undo
3858 3858
  *
3859 3859
  * @see get_post_gallery()
3860 3860
  *
3861
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
3861
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global `$post`.
3862 3862
  * @return array A list of a gallery's image srcs in order.
3863 3863
  */
3864 3864
 function get_post_gallery_images( $post = 0 ) {
@@ -3941,7 +3941,7 @@  discard block
 block discarded – undo
3941 3941
  *
3942 3942
  * @since 4.0.0
3943 3943
  *
3944
- * @return array The relevant CSS file URLs.
3944
+ * @return string[] The relevant CSS file URLs.
3945 3945
  */
3946 3946
 function wpview_media_sandbox_styles() {
3947 3947
  	$version = 'ver=' . get_bloginfo( 'version' );
Please login to merge, or discard this patch.
src/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.
src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,6 @@
 block discarded – undo
127 127
 	 *
128 128
 	 * @since 4.7.2
129 129
 	 *
130
-	 * @param int $id Supplied ID.
131 130
 	 * @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise.
132 131
 	 */
133 132
 	protected function get_parent( $parent ) {
Please login to merge, or discard this patch.
src/wp-includes/rss.php 1 patch
Doc Comments   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
  * @subpackage MagpieRSS
408 408
  *
409 409
  * @param string $url URL to retrieve feed
410
- * @return bool|MagpieRSS false on failure or MagpieRSS object on success.
410
+ * @return integer|null false on failure or MagpieRSS object on success.
411 411
  */
412 412
 function fetch_rss ($url) {
413 413
 	// initialize constants
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
  *
546 546
  * @param string $url URL to retrieve
547 547
  * @param array $headers Optional. Headers to send to the URL.
548
- * @return Snoopy style response
548
+ * @return stdClass style response
549 549
  */
550 550
 function _fetch_remote_file($url, $headers = "" ) {
551 551
 	$resp = wp_safe_remote_request( $url, array( 'headers' => $headers, 'timeout' => MAGPIE_FETCH_TIME_OUT ) );
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
  * @package External
588 588
  * @subpackage MagpieRSS
589 589
  *
590
- * @param array $resp
590
+ * @param stdClass $resp
591 591
  * @return MagpieRSS|bool
592 592
  */
593 593
 function _response_to_rss ($resp) {
@@ -744,6 +744,9 @@  discard block
 block discarded – undo
744 744
 	Input:		url from which the rss file was fetched
745 745
 	Output:		true on success
746 746
 \*=======================================================================*/
747
+	/**
748
+	 * @param string $url
749
+	 */
747 750
 	function set ($url, $rss) {
748 751
 		$cache_option = 'rss_' . $this->file_name( $url );
749 752
 
@@ -758,6 +761,9 @@  discard block
 block discarded – undo
758 761
 	Input:		url from which the rss file was fetched
759 762
 	Output:		cached object on HIT, false on MISS
760 763
 \*=======================================================================*/
764
+	/**
765
+	 * @param string $url
766
+	 */
761 767
 	function get ($url) {
762 768
 		$this->ERROR = "";
763 769
 		$cache_option = 'rss_' . $this->file_name( $url );
@@ -779,6 +785,9 @@  discard block
 block discarded – undo
779 785
 	Input:		url from which the rss file was fetched
780 786
 	Output:		cached object on HIT, false on MISS
781 787
 \*=======================================================================*/
788
+	/**
789
+	 * @param string $url
790
+	 */
782 791
 	function check_cache ( $url ) {
783 792
 		$this->ERROR = "";
784 793
 		$cache_option = 'rss_' . $this->file_name( $url );
@@ -934,7 +943,7 @@  discard block
 block discarded – undo
934 943
  *
935 944
  * @param string $url URL of feed to display. Will not auto sense feed URL.
936 945
  * @param int $num_items Optional. Number of items to display, default is all.
937
- * @return bool False on failure.
946
+ * @return null|false False on failure.
938 947
  */
939 948
 function get_rss ($url, $num_items = 5) { // Like get posts, but for RSS
940 949
 	$rss = fetch_rss($url);
Please login to merge, or discard this patch.
src/wp-includes/theme.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1834,7 +1834,7 @@  discard block
 block discarded – undo
1834 1834
  *
1835 1835
  * @global array $editor_styles
1836 1836
  *
1837
- * @param array|string $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
1837
+ * @param string[] $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
1838 1838
  * 	                               Defaults to 'editor-style.css'
1839 1839
  */
1840 1840
 function add_editor_style( $stylesheet = 'editor-style.css' ) {
@@ -2217,7 +2217,6 @@  discard block
 block discarded – undo
2217 2217
  * @param string $feature  The feature being added. Likely core values include 'post-formats',
2218 2218
  *                         'post-thumbnails', 'html5', 'custom-logo', 'custom-header-uploads',
2219 2219
  *                         'custom-header', 'custom-background', 'title-tag', 'starter-content', etc.
2220
- * @param mixed  $args,... Optional extra arguments to pass along with certain features.
2221 2220
  * @return void|bool False on failure, void otherwise.
2222 2221
  */
2223 2222
 function add_theme_support( $feature ) {
Please login to merge, or discard this patch.
src/wp-includes/widgets.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
  *
550 550
  * @global array $wp_registered_widget_controls
551 551
  *
552
- * @param int|string $id            Widget ID.
552
+ * @param boolean|string $id            Widget ID.
553 553
  * @param string     $name          Name attribute for the widget.
554 554
  * @param callable   $form_callback Form callback.
555 555
  * @param array      $options       Optional. Widget control options. See wp_register_widget_control().
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
  * @global array $wp_registered_sidebars
608 608
  * @global array $wp_registered_widgets
609 609
  *
610
- * @param int|string $index Optional, default is 1. Index, name or ID of dynamic sidebar.
610
+ * @param integer $index Optional, default is 1. Index, name or ID of dynamic sidebar.
611 611
  * @return bool True, if widget sidebar was found and called. False if not found or not called.
612 612
  */
613 613
 function dynamic_sidebar( $index = 1 ) {
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
  *
845 845
  * @since 2.8.0
846 846
  *
847
- * @param string|int $index Sidebar name, id or number to check.
847
+ * @param string $index Sidebar name, id or number to check.
848 848
  * @return bool true if the sidebar is in use, false otherwise.
849 849
  */
850 850
 function is_active_sidebar( $index ) {
Please login to merge, or discard this patch.
src/wp-includes/wp-db.php 1 patch
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
 	 *
664 664
 	 * @see wpdb::__construct()
665 665
 	 * @since 2.0.8
666
-	 * @return true
666
+	 * @return boolean
667 667
 	 */
668 668
 	public function __destruct() {
669 669
 		return true;
@@ -1284,8 +1284,6 @@  discard block
 block discarded – undo
1284 1284
 	 * @param array|mixed $args     The array of variables to substitute into the query's placeholders if being called like
1285 1285
 	 *                              {@link https://secure.php.net/vsprintf vsprintf()}, or the first variable to substitute into the query's placeholders if
1286 1286
 	 *                              being called like {@link https://secure.php.net/sprintf sprintf()}.
1287
-	 * @param mixed       $args,... further variables to substitute into the query's placeholders if being called like
1288
-	 *                              {@link https://secure.php.net/sprintf sprintf()}.
1289 1287
 	 * @return string|void Sanitized query string, if there is a query to prepare.
1290 1288
 	 */
1291 1289
 	public function prepare( $query, $args ) {
@@ -1499,7 +1497,7 @@  discard block
 block discarded – undo
1499 1497
 	 * @since 3.9.0 $allow_bail parameter added.
1500 1498
 	 *
1501 1499
 	 * @param bool $allow_bail Optional. Allows the function to bail. Default true.
1502
-	 * @return bool True with a successful connection, false on failure.
1500
+	 * @return boolean|null True with a successful connection, false on failure.
1503 1501
 	 */
1504 1502
 	public function db_connect( $allow_bail = true ) {
1505 1503
 		$this->is_mysql = true;
@@ -3132,7 +3130,7 @@  discard block
 block discarded – undo
3132 3130
 	 *
3133 3131
 	 * @since 1.5.0
3134 3132
 	 *
3135
-	 * @return true
3133
+	 * @return boolean
3136 3134
 	 */
3137 3135
 	public function timer_start() {
3138 3136
 		$this->time_start = microtime( true );
@@ -3269,7 +3267,7 @@  discard block
 block discarded – undo
3269 3267
 	 * @param string $db_cap The feature to check for. Accepts 'collation',
3270 3268
 	 *                       'group_concat', 'subqueries', 'set_charset',
3271 3269
 	 *                       'utf8mb4', or 'utf8mb4_520'.
3272
-	 * @return int|false Whether the database feature is supported, false otherwise.
3270
+	 * @return boolean Whether the database feature is supported, false otherwise.
3273 3271
 	 */
3274 3272
 	public function has_cap( $db_cap ) {
3275 3273
 		$version = $this->db_version();
Please login to merge, or discard this patch.