PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 3.12.2
GiveWP – Donation Plugin and Fundraising Platform v3.12.2
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 +0 -4 4.15.03.12.2 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 */
@@ -24,9 +23,8 @@
24 23
25 24 const TYPE = 'file';
26 25
27 26 protected $allowedMimeTypes = [];
28 - protected $maxUploadSize = null;
29 27
30 28 /**
31 29 * Set the maximum file size.
32 30 *
@@ -65,9 +63,8 @@
65 63
66 64 /**
67 65 * Set the maximum file upload size.
68 66 *
69 - * @since 4.3.0 Set the field's maxUploadSize property.
70 67 * @since 2.32.0
71 68 */
72 69 public function maxUploadSize(int $maxUploadSize): File
73 70 {
@@ -77,9 +74,8 @@
77 74 $rule->maxSize($maxUploadSize);
78 75 }
79 76
80 77 $this->rules((new FileRule())->maxSize($maxUploadSize));
81 - $this->maxUploadSize = $maxUploadSize;
82 78
83 79 return $this;
84 80 }
85 81