Completed
Pull Request — master (#2)
by Stephen
13:19
created
src/wp-includes/class-wp-customize-widgets.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
 	 * @param string $name    Post value.
195 195
 	 * @param mixed  $default Default post value.
196
-	 * @return mixed Unslashed post value or default value.
196
+	 * @return string Unslashed post value or default value.
197 197
 	 */
198 198
 	protected function get_post_value( $name, $default = null ) {
199 199
 		if ( ! isset( $_POST[ $name ] ) ) {
Please login to merge, or discard this patch.
src/wp-includes/class-wp-post.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
 	 * @global wpdb $wpdb WordPress database abstraction object.
206 206
 	 *
207 207
 	 * @param int $post_id Post ID.
208
-	 * @return WP_Post|false Post object, false otherwise.
208
+	 * @return string Post object, false otherwise.
209 209
 	 */
210 210
 	public static function get_instance( $post_id ) {
211 211
 		global $wpdb;
Please login to merge, or discard this patch.
src/wp-includes/class-wp-user.php 1 patch
Doc Comments   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 *
112 112
 	 * @global wpdb $wpdb WordPress database abstraction object.
113 113
 	 *
114
-	 * @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB.
114
+	 * @param integer $id User's ID, a WP_User object, or a user object from the DB.
115 115
 	 * @param string $name Optional. User's username
116 116
 	 * @param int $blog_id Optional Site ID, defaults to current site.
117 117
 	 */
@@ -702,11 +702,6 @@  discard block
 block discarded – undo
702 702
 	 * @see map_meta_cap()
703 703
 	 *
704 704
 	 * @param string $cap           Capability name.
705
-	 * @param int    $object_id,... Optional. ID of the specific object to check against if `$cap` is a "meta" cap.
706
-	 *                              "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used
707
-	 *                              by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts',
708
-	 *                              'edit_others_posts', etc. The parameter is accessed via func_get_args() and passed
709
-	 *                              to map_meta_cap().
710 705
 	 * @return bool Whether the current user has the given capability. If `$cap` is a meta cap and `$object_id` is
711 706
 	 *              passed, whether the current user has the given meta capability for the given object.
712 707
 	 */
Please login to merge, or discard this patch.
src/wp-includes/compat.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,10 @@  discard block
 block discarded – undo
8 8
 
9 9
 // If gettext isn't available
10 10
 if ( !function_exists('_') ) {
11
+
12
+	/**
13
+	 * @param string $string
14
+	 */
11 15
 	function _($string) {
12 16
 		return $string;
13 17
 	}
@@ -366,7 +370,7 @@  discard block
 block discarded – undo
366 370
 	 *
367 371
 	 * @internal This is a compatibility function for PHP <5.5
368 372
 	 *
369
-	 * @return bool|string Returns the error message on success, "No Error" if no error has occurred,
373
+	 * @return false|string Returns the error message on success, "No Error" if no error has occurred,
370 374
 	 *                     or false on failure.
371 375
 	 */
372 376
 	function json_last_error_msg() {
Please login to merge, or discard this patch.
src/wp-includes/customize/class-wp-customize-selective-refresh.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 * @since 4.5.0
79 79
 	 * @access public
80 80
 	 *
81
-	 * @return array Partials.
81
+	 * @return WP_Customize_Partial[] Partials.
82 82
 	 */
83 83
 	public function partials() {
84 84
 		return $this->partials;
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 * @param string $errstr  Error string.
284 284
 	 * @param string $errfile Error file.
285 285
 	 * @param string $errline Error line.
286
-	 * @return true Always true.
286
+	 * @return boolean Always true.
287 287
 	 */
288 288
 	public function handle_error( $errno, $errstr, $errfile = null, $errline = null ) {
289 289
 		$this->triggered_errors[] = array(
Please login to merge, or discard this patch.
src/wp-includes/pomo/po.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,6 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * Text to include as a comment before the start of the PO contents
88 88
 	 *
89 89
 	 * Doesn't need to include # in the beginning of lines, these are added automatically
90
+	 * @param string $text
90 91
 	 */
91 92
 	function set_comment_before_headers( $text ) {
92 93
 		$this->comments_before_headers = $text;
@@ -196,6 +197,7 @@  discard block
 block discarded – undo
196 197
 	 *
197 198
 	 * @static
198 199
 	 * @param Translation_Entry &$entry the entry to convert to po string
200
+	 * @param Translation_Entry $entry
199 201
 	 * @return false|string PO-style formatted string for the entry or
200 202
 	 * 	false if the entry is empty
201 203
 	 */
@@ -223,6 +225,9 @@  discard block
 block discarded – undo
223 225
 		return implode("\n", $po);
224 226
 	}
225 227
 
228
+	/**
229
+	 * @return string
230
+	 */
226 231
 	public static function match_begin_and_end_newlines( $translation, $original ) {
227 232
 		if ( '' === $translation ) {
228 233
 			return $translation;
@@ -395,7 +400,7 @@  discard block
 block discarded – undo
395 400
 	 *
396 401
 	 * @param     resource $f
397 402
 	 * @param     string   $action
398
-	 * @return boolean
403
+	 * @return boolean|string
399 404
 	 */
400 405
 	function read_line($f, $action = 'read') {
401 406
 		static $last_line = '';
@@ -435,7 +440,7 @@  discard block
 block discarded – undo
435 440
 
436 441
 	/**
437 442
 	 * @param string $s
438
-	 * @return sring
443
+	 * @return string
439 444
 	 */
440 445
 	public static function trim_quotes($s) {
441 446
 		if ( substr($s, 0, 1) == '"') $s = substr($s, 1);
Please login to merge, or discard this patch.
src/wp-includes/post-thumbnail-template.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
  *
54 54
  * @see get_the_post_thumbnail()
55 55
  *
56
- * @param string|array $size Optional. Image size to use. Accepts any valid image size, or
56
+ * @param string $size Optional. Image size to use. Accepts any valid image size, or
57 57
  *                           an array of width and height values in pixels (in that order).
58 58
  *                           Default 'post-thumbnail'.
59 59
  * @param string|array $attr Optional. Query string or array of attributes. Default empty.
Please login to merge, or discard this patch.
src/wp-includes/random_compat/random.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -199,6 +199,7 @@
 block discarded – undo
199 199
             /**
200 200
              * We don't have any more options, so let's throw an exception right now
201 201
              * and hope the developer won't let it fail silently.
202
+             * @param integer $length
202 203
              */
203 204
             function random_bytes($length)
204 205
             {
Please login to merge, or discard this patch.
src/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
@@ -907,7 +907,7 @@
 block discarded – undo
907 907
 	 * @since 4.4.0
908 908
 	 * @access protected
909 909
 	 *
910
-	 * @return bool|string Boolean false or string error message.
910
+	 * @return false|string Boolean false or string error message.
911 911
 	 */
912 912
 	protected function get_json_last_error() {
913 913
 		// See https://core.trac.wordpress.org/ticket/27799.
Please login to merge, or discard this patch.