Completed
Push — master ( bf78fd...b40852 )
by Scott
21:09
created
wp-includes/rest-api/class-wp-rest-request.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
 	 * @since 4.4.0
479 479
 	 * @access public
480 480
 	 *
481
-	 * @param array $params Parameter map of key to value.
481
+	 * @param string[] $params Parameter map of key to value.
482 482
 	 */
483 483
 	public function set_url_params( $params ) {
484 484
 		$this->params['URL'] = $params;
@@ -780,7 +780,7 @@  discard block
 block discarded – undo
780 780
 	 * @since 4.4.0
781 781
 	 * @access public
782 782
 	 *
783
-	 * @return true|null True if there are no parameters to sanitize, null otherwise.
783
+	 * @return boolean|null True if there are no parameters to sanitize, null otherwise.
784 784
 	 */
785 785
 	public function sanitize_params() {
786 786
 
Please login to merge, or discard this patch.
wp-includes/rest-api/class-wp-rest-server.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -933,7 +933,7 @@
 block discarded – undo
933 933
 	 * @since 4.4.0
934 934
 	 * @access protected
935 935
 	 *
936
-	 * @return bool|string Boolean false or string error message.
936
+	 * @return false|string Boolean false or string error message.
937 937
 	 */
938 938
 	protected function get_json_last_error() {
939 939
 		// See https://core.trac.wordpress.org/ticket/27799.
Please login to merge, or discard this patch.
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.
wp-includes/taxonomy.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
  * @global WP    $wp            WP instance.
282 282
  *
283 283
  * @param string       $taxonomy    Taxonomy key, must not exceed 32 characters.
284
- * @param array|string $object_type Name of the object type for the taxonomy object.
284
+ * @param string $object_type Name of the object type for the taxonomy object.
285 285
  * @param array|string $args        {
286 286
  *     Optional. Array or query string of arguments for registering a taxonomy.
287 287
  *
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
  * @global wpdb $wpdb WordPress database abstraction object.
721 721
  *
722 722
  * @param int|array    $term_ids   Term id or array of term ids of terms that will be used.
723
- * @param string|array $taxonomies String of taxonomy name or Array of string values of taxonomy names.
723
+ * @param string $taxonomies String of taxonomy name or Array of string values of taxonomy names.
724 724
  * @param array|string $args       Change the order of the object_ids, either ASC or DESC.
725 725
  * @return WP_Error|array If the taxonomy does not exist, then WP_Error will be returned. On success.
726 726
  *	the array can be empty meaning that there are no $object_ids found or it will return the $object_ids found.
@@ -3095,7 +3095,7 @@  discard block
 block discarded – undo
3095 3095
  *
3096 3096
  * @param array  $terms    The term_taxonomy_id of terms to update.
3097 3097
  * @param string $taxonomy The context of the term.
3098
- * @return true Always true when complete.
3098
+ * @return boolean Always true when complete.
3099 3099
  */
3100 3100
 function wp_update_term_count_now( $terms, $taxonomy ) {
3101 3101
 	$terms = array_map('intval', $terms);
@@ -4182,7 +4182,7 @@  discard block
 block discarded – undo
4182 4182
  *
4183 4183
  * @since 2.5.0
4184 4184
  *
4185
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
4185
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
4186 4186
  * @param array $args {
4187 4187
  *     Optional. Arguments about how to format the list of taxonomies. Default empty array.
4188 4188
  *
@@ -4244,7 +4244,7 @@  discard block
 block discarded – undo
4244 4244
  *
4245 4245
  * @since 2.5.0
4246 4246
  *
4247
- * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
4247
+ * @param integer $post Optional. Post ID or WP_Post object. Default is global $post.
4248 4248
  * @return array
4249 4249
  */
4250 4250
 function get_post_taxonomies( $post = 0 ) {
Please login to merge, or discard this patch.
wp-includes/template.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * @since 1.5.0
18 18
  *
19 19
  * @param string $type      Filename without extension.
20
- * @param array  $templates An optional list of template candidates
20
+ * @param string[]  $templates An optional list of template candidates
21 21
  * @return string Full path to template file.
22 22
  */
23 23
 function get_query_template( $type, $templates = array() ) {
Please login to merge, or discard this patch.
wp-includes/theme.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -1531,7 +1531,6 @@
 block discarded – undo
1531 1531
  * @param string $feature  The feature being added. Likely core values include 'post-formats',
1532 1532
  *                         'post-thumbnails', 'html5', 'custom-logo', 'custom-header-uploads',
1533 1533
  *                         'custom-header', 'custom-background', 'title-tag', etc.
1534
- * @param mixed  $args,... Optional extra arguments to pass along with certain features.
1535 1534
  * @return void|bool False on failure, void otherwise.
1536 1535
  */
1537 1536
 function add_theme_support( $feature ) {
Please login to merge, or discard this patch.
wp-includes/user.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
  *
756 756
  * @param int    $user_id    User ID.
757 757
  * @param string $meta_key   Metadata name.
758
- * @param mixed  $meta_value Metadata value.
758
+ * @param string  $meta_value Metadata value.
759 759
  * @param bool   $unique     Optional, default is false. Whether the same key should not be added.
760 760
  * @return int|false Meta ID on success, false on failure.
761 761
  */
@@ -1232,7 +1232,7 @@  discard block
 block discarded – undo
1232 1232
  * @since 3.0.0
1233 1233
  *
1234 1234
  * @param object|WP_User $user User object to be cached
1235
- * @return bool|null Returns false on failure.
1235
+ * @return false|null Returns false on failure.
1236 1236
  */
1237 1237
 function update_user_caches( $user ) {
1238 1238
 	if ( $user instanceof WP_User ) {
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
  * @since 3.0.0
1256 1256
  * @since 4.4.0 'clean_user_cache' action was added.
1257 1257
  *
1258
- * @param WP_User|int $user User object or ID to be cleaned from the cache
1258
+ * @param WP_User $user User object or ID to be cleaned from the cache
1259 1259
  */
1260 1260
 function clean_user_cache( $user ) {
1261 1261
 	if ( is_numeric( $user ) )
Please login to merge, or discard this patch.
wp-includes/widgets.php 1 patch
Doc Comments   +2 added lines, -2 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 ) {
Please login to merge, or discard this patch.
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;
@@ -1268,8 +1268,6 @@  discard block
 block discarded – undo
1268 1268
 	 * @param array|mixed $args     The array of variables to substitute into the query's placeholders if being called like
1269 1269
 	 *                              {@link https://secure.php.net/vsprintf vsprintf()}, or the first variable to substitute into the query's placeholders if
1270 1270
 	 *                              being called like {@link https://secure.php.net/sprintf sprintf()}.
1271
-	 * @param mixed       $args,... further variables to substitute into the query's placeholders if being called like
1272
-	 *                              {@link https://secure.php.net/sprintf sprintf()}.
1273 1271
 	 * @return string|void Sanitized query string, if there is a query to prepare.
1274 1272
 	 */
1275 1273
 	public function prepare( $query, $args ) {
@@ -1480,7 +1478,7 @@  discard block
 block discarded – undo
1480 1478
 	 * @since 3.9.0 $allow_bail parameter added.
1481 1479
 	 *
1482 1480
 	 * @param bool $allow_bail Optional. Allows the function to bail. Default true.
1483
-	 * @return bool True with a successful connection, false on failure.
1481
+	 * @return boolean|null True with a successful connection, false on failure.
1484 1482
 	 */
1485 1483
 	public function db_connect( $allow_bail = true ) {
1486 1484
 		$this->is_mysql = true;
@@ -3109,7 +3107,7 @@  discard block
 block discarded – undo
3109 3107
 	 *
3110 3108
 	 * @since 1.5.0
3111 3109
 	 *
3112
-	 * @return true
3110
+	 * @return boolean
3113 3111
 	 */
3114 3112
 	public function timer_start() {
3115 3113
 		$this->time_start = microtime( true );
@@ -3244,7 +3242,7 @@  discard block
 block discarded – undo
3244 3242
 	 * @param string $db_cap The feature to check for. Accepts 'collation',
3245 3243
 	 *                       'group_concat', 'subqueries', 'set_charset',
3246 3244
 	 *                       or 'utf8mb4'.
3247
-	 * @return int|false Whether the database feature is supported, false otherwise.
3245
+	 * @return boolean Whether the database feature is supported, false otherwise.
3248 3246
 	 */
3249 3247
 	public function has_cap( $db_cap ) {
3250 3248
 		$version = $this->db_version();
Please login to merge, or discard this patch.