Completed
Pull Request — master (#41)
by
unknown
03:15
created
includes/class-wp-fields-api.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * @access public
133 133
 	 *
134 134
 	 * @param string|null         $object_type   Object type. Null for all containers for all object types.
135
-	 * @param string|boolean|null $object_name   Object name (for post types and taxonomies).
135
+	 * @param string|boolean $object_name   Object name (for post types and taxonomies).
136 136
 	 *                                           True for all containers for all object names.
137 137
 	 *
138 138
 	 * @return WP_Fields_API_Screen[]|WP_Fields_API_Section[]
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 	 * @access public
227 227
 	 *
228 228
 	 * @param string                      $object_type Object type.
229
-	 * @param WP_Fields_API_Screen|string $id          Field Screen object, or Screen ID.
229
+	 * @param string|null $id          Field Screen object, or Screen ID.
230 230
 	 * @param string                      $object_name Object name (for post types and taxonomies).
231 231
 	 * @param array                       $args        Optional. Screen arguments. Default empty array.
232 232
 	 */
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
 	 * @access public
499 499
 	 *
500 500
 	 * @param string                       $object_type Object type.
501
-	 * @param WP_Fields_API_Section|string $id          Field Section object, or Section ID.
501
+	 * @param string $id          Field Section object, or Section ID.
502 502
 	 * @param string                       $object_name Object name (for post types and taxonomies).
503 503
 	 * @param array                        $args        Section arguments.
504 504
 	 */
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
 	 * @access public
731 731
 	 *
732 732
 	 * @param string                     $object_type Object type.
733
-	 * @param WP_Fields_API_Field|string $id          Fields API Field object, or ID.
733
+	 * @param string $id          Fields API Field object, or ID.
734 734
 	 * @param string                     $object_name Object name (for post types and taxonomies).
735 735
 	 * @param array                      $args        Field arguments; passed to WP_Fields_API_Field
736 736
 	 *                                                constructor.
@@ -908,7 +908,6 @@  discard block
 block discarded – undo
908 908
 	 * @see    WP_Fields_API_Field
909 909
 	 *
910 910
 	 * @param string $type         Field type ID.
911
-	 * @param string $screen_class Name of a custom field type which is a subclass of WP_Fields_API_Field.
912 911
 	 */
913 912
 	public function register_field_type( $type, $field_class = null ) {
914 913
 
Please login to merge, or discard this patch.
tests/test-wp-fields-api.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,6 @@
 block discarded – undo
124 124
 	 * Test WP_Fields_API::add_screen()
125 125
 	 *
126 126
 	 * @param string $object_type
127
-	 * @param string $object_name
128 127
 	 */
129 128
 	public function test_add_screen_invalid( $object_type = 'post' ) {
130 129
 
Please login to merge, or discard this patch.
includes/class-wp-fields-api-field.php 1 patch
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -182,8 +182,6 @@  discard block
 block discarded – undo
182 182
 	 * Check user capabilities and theme supports, and then save
183 183
 	 * the value of the field.
184 184
 	 *
185
-	 * @param mixed $value   The value to save.
186
-	 * @param int   $item_id The Item ID.
187 185
 	 *
188 186
 	 * @return false|mixed False if cap check fails or value isn't set.
189 187
 	 */
@@ -243,7 +241,6 @@  discard block
 block discarded – undo
243 241
 	 * Save the value of the field, using the related API.
244 242
 	 *
245 243
 	 * @param mixed $value The value to update.
246
-	 * @param int $item_id Item ID.
247 244
 	 *
248 245
 	 * @return mixed The result of saving the value.
249 246
 	 */
@@ -383,7 +380,6 @@  discard block
 block discarded – undo
383 380
 	/**
384 381
 	 * Fetch the value of the field.
385 382
 	 *
386
-	 * @param int $item_id (optional) The Item ID.
387 383
 	 *
388 384
 	 * @return mixed The value.
389 385
 	 */
@@ -655,7 +651,7 @@  discard block
 block discarded – undo
655 651
 	 *
656 652
 	 * @param       $root
657 653
 	 * @param       $keys
658
-	 * @param mixed $default A default value which is used as a fallback. Default is null.
654
+	 * @param string $default A default value which is used as a fallback. Default is null.
659 655
 	 *
660 656
 	 * @return mixed The requested value or the default value.
661 657
 	 */
Please login to merge, or discard this patch.