Completed
Pull Request — master (#2)
by Stephen
13:19
created
src/wp-admin/includes/class-wp-site-icon.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,11 +221,11 @@
 block discarded – undo
221 221
 	 * @since 4.3.0
222 222
 	 * @access public
223 223
 	 *
224
-	 * @param null|array|string $value    The value get_metadata() should return a single metadata value, or an
224
+	 * @param string $value    The value get_metadata() should return a single metadata value, or an
225 225
 	 *                                    array of values.
226 226
 	 * @param int               $post_id  Post ID.
227 227
 	 * @param string            $meta_key Meta key.
228
-	 * @param string|array      $single   Meta value, or an array of values.
228
+	 * @param boolean      $single   Meta value, or an array of values.
229 229
 	 * @return array|null|string The attachment metadata value, array of values, or null.
230 230
 	 */
231 231
 	public function get_post_metadata( $value, $post_id, $meta_key, $single ) {
Please login to merge, or discard this patch.
src/wp-admin/includes/class-wp-upgrader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 	 *
184 184
 	 * @global WP_Filesystem_Base $wp_filesystem Subclass
185 185
 	 *
186
-	 * @param array $directories                  Optional. A list of directories. If any of these do
186
+	 * @param string[] $directories                  Optional. A list of directories. If any of these do
187 187
 	 *                                            not exist, a WP_Error object will be returned.
188 188
 	 *                                            Default empty array.
189 189
 	 * @param bool  $allow_relaxed_file_ownership Whether to allow relaxed file ownership.
Please login to merge, or discard this patch.
src/wp-admin/includes/plugin.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
  * @since 2.8.0
189 189
  *
190 190
  * @param string $plugin Path to the main plugin file from plugins directory.
191
- * @return array List of files relative to the plugin root.
191
+ * @return string[] List of files relative to the plugin root.
192 192
  */
193 193
 function get_plugin_files($plugin) {
194 194
 	$plugin_file = WP_PLUGIN_DIR . '/' . $plugin;
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
  *
639 639
  * @param string|array $plugins Single plugin or list of plugins to deactivate.
640 640
  * @param bool $silent Prevent calling deactivation hooks. Default is false.
641
- * @param mixed $network_wide Whether to deactivate the plugin for all sites in the network.
641
+ * @param boolean $network_wide Whether to deactivate the plugin for all sites in the network.
642 642
  * 	A value of null (the default) will deactivate plugins for both the site and the network.
643 643
  */
644 644
 function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
  *
768 768
  * @global WP_Filesystem_Base $wp_filesystem
769 769
  *
770
- * @param array  $plugins    List of plugins to delete.
770
+ * @param string[]  $plugins    List of plugins to delete.
771 771
  * @param string $deprecated Deprecated.
772 772
  * @return bool|null|WP_Error True on success, false is $plugins is empty, WP_Error on failure.
773 773
  *                            Null if filesystem credentials are required to proceed.
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
  * @since 2.7.0
986 986
  *
987 987
  * @param string $plugin Path to the main plugin file from plugins directory.
988
- * @return true True if a plugin's uninstall.php file has been found and included.
988
+ * @return boolean|null True if a plugin's uninstall.php file has been found and included.
989 989
  */
990 990
 function uninstall_plugin($plugin) {
991 991
 	$file = plugin_basename($plugin);
@@ -1505,6 +1505,7 @@  discard block
 block discarded – undo
1505 1505
  * @global array $_wp_real_parent_file
1506 1506
  * @global array $_wp_menu_nopriv
1507 1507
  * @global array $_wp_submenu_nopriv
1508
+ * @return string
1508 1509
  */
1509 1510
 function get_admin_page_parent( $parent = '' ) {
1510 1511
 	global $parent_file, $menu, $submenu, $pagenow, $typenow,
Please login to merge, or discard this patch.
src/wp-admin/includes/taxonomy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
  *
194 194
  * @since 2.3.0
195 195
  *
196
- * @param int|string $tag_name
196
+ * @param string $tag_name
197 197
  * @return mixed
198 198
  */
199 199
 function tag_exists($tag_name) {
Please login to merge, or discard this patch.
src/wp-admin/includes/user.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  *
12 12
  * @since 2.0.0
13 13
  *
14
- * @return int|WP_Error WP_Error or User ID.
14
+ * @return integer WP_Error or User ID.
15 15
  */
16 16
 function add_user() {
17 17
 	return edit_user();
Please login to merge, or discard this patch.
src/wp-includes/cache.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
  *
42 42
  * @since 2.0.0
43 43
  *
44
- * @return true Always returns true.
44
+ * @return boolean Always returns true.
45 45
  */
46 46
 function wp_cache_close() {
47 47
 	return true;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
  * @see WP_Object_Cache::decr()
56 56
  * @global WP_Object_Cache $wp_object_cache Object cache global instance.
57 57
  *
58
- * @param int|string $key    The cache key to decrement.
58
+ * @param string $key    The cache key to decrement.
59 59
  * @param int        $offset Optional. The amount by which to decrement the item's value. Default 1.
60 60
  * @param string     $group  Optional. The group the key is in. Default empty.
61 61
  * @return false|int False on failure, the item's new value on success.
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
  * @see WP_Object_Cache::incr()
132 132
  * @global WP_Object_Cache $wp_object_cache Object cache global instance.
133 133
  *
134
- * @param int|string $key    The key for the cache contents that should be incremented.
134
+ * @param string $key    The key for the cache contents that should be incremented.
135 135
  * @param int        $offset Optional. The amount by which to increment the item's value. Default 1.
136 136
  * @param string     $group  Optional. The group the key is in. Default empty.
137 137
  * @return false|int False on failure, the item's new value on success.
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
  * @see WP_Object_Cache::replace()
162 162
  * @global WP_Object_Cache $wp_object_cache Object cache global instance.
163 163
  *
164
- * @param int|string $key    The key for the cache data that should be replaced.
165
- * @param mixed      $data   The new data to store in the cache.
164
+ * @param string $key    The key for the cache data that should be replaced.
165
+ * @param string      $data   The new data to store in the cache.
166 166
  * @param string     $group  Optional. The group for the cache data that should be replaced.
167 167
  *                           Default empty.
168 168
  * @param int        $expire Optional. When to expire the cache contents, in seconds.
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
 	 * @since 2.0.0
511 511
 	 * @access public
512 512
 	 *
513
-	 * @return true Always returns true.
513
+	 * @return boolean Always returns true.
514 514
 	 */
515 515
 	public function flush() {
516 516
 		$this->cache = array();
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
 	 * @param mixed      $data   The contents to store in the cache.
660 660
 	 * @param string     $group  Optional. Where to group the cache contents. Default 'default'.
661 661
 	 * @param int        $expire Not Used.
662
-	 * @return true Always returns true.
662
+	 * @return boolean Always returns true.
663 663
 	 */
664 664
 	public function set( $key, $data, $group = 'default', $expire = 0 ) {
665 665
 		if ( empty( $group ) )
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
 	 *
750 750
 	 * @since 2.0.8
751 751
 	 *
752
-	 * @return true Always returns true.
752
+	 * @return boolean Always returns true.
753 753
 	 */
754 754
 	public function __destruct() {
755 755
 		return true;
Please login to merge, or discard this patch.
src/wp-includes/category-template.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
  * @since 4.8.0 Added the `show_count` argument.
664 664
  *
665 665
  * @param array|string|null $args Optional. Override default arguments.
666
- * @return void|array Generated tag cloud, only if no failures and 'array' is set for the 'format' argument.
666
+ * @return string Generated tag cloud, only if no failures and 'array' is set for the 'format' argument.
667 667
  *                    Otherwise, this function outputs the tag cloud.
668 668
  */
669 669
 function wp_tag_cloud( $args = '' ) {
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
  * @since 2.9.0
717 717
  *
718 718
  * @param int $count Number of posts with that tag.
719
- * @return int Scaled count.
719
+ * @return double Scaled count.
720 720
  */
721 721
 function default_topic_count_scale( $count ) {
722 722
 	return round(log10($count + 1) * 100);
Please login to merge, or discard this patch.
src/wp-includes/class-wp-customize-nav-menus.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 * @since 4.3.0
43 43
 	 * @access public
44 44
 	 *
45
-	 * @param object $manager An instance of the WP_Customize_Manager class.
45
+	 * @param WP_Customize_Manager $manager An instance of the WP_Customize_Manager class.
46 46
 	 */
47 47
 	public function __construct( $manager ) {
48 48
 		$this->previewed_menus = array();
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 	 * @since 4.3.0
483 483
 	 * @access public
484 484
 	 *
485
-	 * @param false|array $setting_args The arguments to the WP_Customize_Setting constructor.
485
+	 * @param WP_Customize_Manager $setting_args The arguments to the WP_Customize_Setting constructor.
486 486
 	 * @param string      $setting_id   ID for dynamic setting, usually coming from `$_POST['customized']`.
487 487
 	 * @return array|false
488 488
 	 */
@@ -1291,7 +1291,7 @@  discard block
 block discarded – undo
1291 1291
 	 *
1292 1292
 	 * @param string $nav_menu_content The HTML content for the navigation menu.
1293 1293
 	 * @param object $args             An object containing wp_nav_menu() arguments.
1294
-	 * @return null
1294
+	 * @return string
1295 1295
 	 */
1296 1296
 	public function filter_wp_nav_menu( $nav_menu_content, $args ) {
1297 1297
 		if ( isset( $args->customize_preview_nav_menus_args['can_partial_refresh'] ) && $args->customize_preview_nav_menus_args['can_partial_refresh'] ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-dependency.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 	 * @since 2.6.0
92 92
 	 *
93 93
 	 * @param string $name The data key to add.
94
-	 * @param mixed  $data The data value to add.
94
+	 * @param integer  $data The data value to add.
95 95
 	 * @return bool False if not scalar, true otherwise.
96 96
 	 */
97 97
 	public function add_data( $name, $data ) {
Please login to merge, or discard this patch.