Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / plugins
diff options
context:
space:
mode:
Commitecc33180289188522da2508eaf0970137e8c4b77 (patch)
Author
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2020-07-14 15:57:43 +0300
Committer
 GitHub <noreply@github.com>
2020-07-14 15:57:43 +0300
Files83eb153c8ebf0f97b4e046da1ba39a1b6e8884a8 /wp-content/plugins
tues-interns-2020-ecc33180289188522da2508eaf0970137e8c4b77.tar
tues-interns-2020-ecc33180289188522da2508eaf0970137e8c4b77.tar.gz
tues-interns-2020-ecc33180289188522da2508eaf0970137e8c4b77.zip
Parentf7dad169e3f5de8ff2141216dc15de99f7b8b45f (diff)
Fixed issue with certain cases where uploading images was kind of broken. (#107)
1 files changed, 1 insertions, 6 deletions
-rwxr-xr-xwp-content/plugins/dx-vehicles/vehicles-class.php7
diff --git a/wp-content/plugins/dx-vehicles/vehicles-class.php b/wp-content/plugins/dx-vehicles/vehicles-class.php
index 5d36f96..3a0b127 100755
--- a/wp-content/plugins/dx-vehicles/vehicles-class.php
+++ b/wp-content/plugins/dx-vehicles/vehicles-class.php
@@ -90,13 +90,8 @@ class Vehicles {
// Cycle through the $events_meta array.
// Note, in this example we just have one item, but this is helpful if you have multiple.
foreach ( $events_meta as $key => $value ) {
- // Don't store custom data twice
- if ( 'revision' === $post->post_type ) {
- return;
- }
-
if ( $value == null ) {
- return;
+ continue;
}
switch ( $key ) {