PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
← All changes | src/Addons/CustomColumns/CustomColumnsManager.php +4 -0 6.1.0 → 8.0.2 View file →
@@ -113,14 +113,18 @@
113 113 public function sanitizeColumnData( array $customColumn ) {
114 114
115 115 $name = $customColumn['name'] ?? false;
116 116 $type = $customColumn['type'] ?? false;
117 + $dataType = $customColumn['data_type'] ?? 'text';
117 118
118 119 $type = Schema::isValidColumnType( $type ) ? $type : false;
120 + $dataType = Schema::isValidDataType( $dataType ) ? $dataType : 'text';
119 121
120 122 if ( ! $name || ! $type ) {
121 123 return false;
122 124 }
125 +
126 + $customColumn['data_type'] = $dataType;
123 127
124 128 return $customColumn;
125 129 }
126 130