@@ -133,10 +133,8 @@ discard block |
||
133 | 133 | * Check user capabilities and theme supports, and then save |
134 | 134 | * the value of the field. |
135 | 135 | * |
136 | - * @param mixed $value The value to save. |
|
137 | - * @param int $item_id The Item ID. |
|
138 | 136 | * |
139 | - * @return false|mixed False if cap check fails or value isn't set. |
|
137 | + * @return null|boolean False if cap check fails or value isn't set. |
|
140 | 138 | */ |
141 | 139 | public function save() { |
142 | 140 | |
@@ -188,9 +186,8 @@ discard block |
||
188 | 186 | * Save the value of the field, using the related API. |
189 | 187 | * |
190 | 188 | * @param mixed $value The value to update. |
191 | - * @param int $item_id Item ID. |
|
192 | 189 | * |
193 | - * @return mixed The result of saving the value. |
|
190 | + * @return null|boolean The result of saving the value. |
|
194 | 191 | */ |
195 | 192 | protected function update( $value ) { |
196 | 193 | |
@@ -538,7 +535,7 @@ discard block |
||
538 | 535 | * |
539 | 536 | * @param $root |
540 | 537 | * @param $keys |
541 | - * @param mixed $default A default value which is used as a fallback. Default is null. |
|
538 | + * @param string $default A default value which is used as a fallback. Default is null. |
|
542 | 539 | * |
543 | 540 | * @return mixed The requested value or the default value. |
544 | 541 | */ |
@@ -132,7 +132,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -124,7 +124,6 @@ |
||
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 |