PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.33.0
GiveWP – Donation Plugin and Fundraising Platform v2.33.0
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
← All changes | src/Framework/FieldsAPI/File.php +1 -7 4.15.22.33.0 View file →
@@ -8,9 +8,8 @@
8 8
9 9 /**
10 10 * A file upload field.
11 11 *
12 - * @since 4.3.0 Added maxUploadSize property.
13 12 * @since 2.32.0 Updated to use the new Validation File Rule; added description
14 13 * @since 2.12.0
15 14 * @since 2.23.1 Moved default rule values inline since inherited constructor is final.
16 15 */
@@ -19,15 +18,13 @@
19 18 use Concerns\AllowMultiple;
20 19 use Concerns\HasEmailTag;
21 20 use Concerns\HasHelpText;
22 21 use Concerns\HasLabel;
22 + use Concerns\AllowMultiple;
23 23 use Concerns\HasDescription;
24 24
25 25 const TYPE = 'file';
26 26
27 - protected $allowedMimeTypes = [];
28 - protected $maxUploadSize = null;
29 -
30 27 /**
31 28 * Set the maximum file size.
32 29 *
33 30 * @deprecated use maxUploadSize() instead
@@ -65,9 +62,8 @@
65 62
66 63 /**
67 64 * Set the maximum file upload size.
68 65 *
69 - * @since 4.3.0 Set the field's maxUploadSize property.
70 66 * @since 2.32.0
71 67 */
72 68 public function maxUploadSize(int $maxUploadSize): File
73 69 {
@@ -77,9 +73,8 @@
77 73 $rule->maxSize($maxUploadSize);
78 74 }
79 75
80 76 $this->rules((new FileRule())->maxSize($maxUploadSize));
81 - $this->maxUploadSize = $maxUploadSize;
82 77
83 78 return $this;
84 79 }
85 80
@@ -117,9 +112,8 @@
117 112 } else {
118 113 $this->rules((new FileRule())->allowedMimeTypes($allowedMimeTypes));
119 114 }
120 115
121 - $this->allowedMimeTypes = $allowedMimeTypes;
122 116
123 117 return $this;
124 118 }
125 119