Visual Composer Website Builder - Version 44.3.1-beta.1

Version Description

Download this release

Release Info

Developer visualcomposer
Plugin Icon wp plugin Visual Composer Website Builder
Version 44.3.1-beta.1
Comparing to
See all releases

Code changes from version 44.3.0 to 44.3.1-beta.1

plugin-wordpress.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Visual Composer
5
  * Plugin URI: https://visualcomposer.com/premium/?utm_source=vcwb&utm_medium=wpplugins&utm_campaign=vcbrand&utm_content=text
6
  * Description: Create your WordPress website with the fast and easy-to-use drag-and-drop builder for experts and beginners.
7
- * Version: 44.3.0
8
  * Author: visualcomposer.com
9
  * Author URI: https://visualcomposer.com/?utm_source=vcwb&utm_medium=wpplugins&utm_campaign=vcbrand&utm_content=text
10
  * Copyright: (c) 2017 TechMill Ltd.
@@ -46,7 +46,7 @@ if (defined('VCV_VERSION')) {
46
  /**
47
  * Plugin version constant
48
  */
49
- define('VCV_VERSION', '44.3.0');
50
  /**
51
  * Plugin url: 'http://web/wp-content/plugins/plugin_dir/'
52
  */
4
  * Plugin Name: Visual Composer
5
  * Plugin URI: https://visualcomposer.com/premium/?utm_source=vcwb&utm_medium=wpplugins&utm_campaign=vcbrand&utm_content=text
6
  * Description: Create your WordPress website with the fast and easy-to-use drag-and-drop builder for experts and beginners.
7
+ * Version: 44.3.1-beta.1
8
  * Author: visualcomposer.com
9
  * Author URI: https://visualcomposer.com/?utm_source=vcwb&utm_medium=wpplugins&utm_campaign=vcbrand&utm_content=text
10
  * Copyright: (c) 2017 TechMill Ltd.
46
  /**
47
  * Plugin version constant
48
  */
49
+ define('VCV_VERSION', '44.3.1-beta.1');
50
  /**
51
  * Plugin url: 'http://web/wp-content/plugins/plugin_dir/'
52
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, website builder, editor, drag and drop, visual composer, pop
4
  Requires PHP: 5.6
5
  Requires at least: 4.6
6
  Tested up to: 6.0
7
- Stable tag: 44.3.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
4
  Requires PHP: 5.6
5
  Requires at least: 4.6
6
  Tested up to: 6.0
7
+ Stable tag: 44.2.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit4811977528a4b196a4f3df275c562a2a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitb2b69b4c3cf562eb96a707fa419813f2::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -14,24 +14,24 @@ class InstalledVersions
14
  private static $installed = array (
15
  'root' =>
16
  array (
17
- 'pretty_version' => '44.3.x-dev',
18
- 'version' => '44.3.9999999.9999999-dev',
19
  'aliases' =>
20
  array (
21
  ),
22
- 'reference' => '804394b42338842f44ee21a69071421d6186ac97',
23
  'name' => '__root__',
24
  ),
25
  'versions' =>
26
  array (
27
  '__root__' =>
28
  array (
29
- 'pretty_version' => '44.3.x-dev',
30
- 'version' => '44.3.9999999.9999999-dev',
31
  'aliases' =>
32
  array (
33
  ),
34
- 'reference' => '804394b42338842f44ee21a69071421d6186ac97',
35
  ),
36
  ),
37
  );
14
  private static $installed = array (
15
  'root' =>
16
  array (
17
+ 'pretty_version' => '44.3.1.x-dev',
18
+ 'version' => '44.3.1.9999999-dev',
19
  'aliases' =>
20
  array (
21
  ),
22
+ 'reference' => '700640ea6137abc4266ae42bbb5667954ee49ae0',
23
  'name' => '__root__',
24
  ),
25
  'versions' =>
26
  array (
27
  '__root__' =>
28
  array (
29
+ 'pretty_version' => '44.3.1.x-dev',
30
+ 'version' => '44.3.1.9999999-dev',
31
  'aliases' =>
32
  array (
33
  ),
34
+ 'reference' => '700640ea6137abc4266ae42bbb5667954ee49ae0',
35
  ),
36
  ),
37
  );
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit4811977528a4b196a4f3df275c562a2a
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit4811977528a4b196a4f3df275c562a2a
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit4811977528a4b196a4f3df275c562a2a', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInit4811977528a4b196a4f3df275c562a2a', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit4811977528a4b196a4f3df275c562a2a::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitb2b69b4c3cf562eb96a707fa419813f2
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInitb2b69b4c3cf562eb96a707fa419813f2', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
+ spl_autoload_unregister(array('ComposerAutoloaderInitb2b69b4c3cf562eb96a707fa419813f2', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInitb2b69b4c3cf562eb96a707fa419813f2::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit4811977528a4b196a4f3df275c562a2a
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'V' =>
@@ -306,9 +306,9 @@ class ComposerStaticInit4811977528a4b196a4f3df275c562a2a
306
  public static function getInitializer(ClassLoader $loader)
307
  {
308
  return \Closure::bind(function () use ($loader) {
309
- $loader->prefixLengthsPsr4 = ComposerStaticInit4811977528a4b196a4f3df275c562a2a::$prefixLengthsPsr4;
310
- $loader->prefixDirsPsr4 = ComposerStaticInit4811977528a4b196a4f3df275c562a2a::$prefixDirsPsr4;
311
- $loader->classMap = ComposerStaticInit4811977528a4b196a4f3df275c562a2a::$classMap;
312
 
313
  }, null, ClassLoader::class);
314
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitb2b69b4c3cf562eb96a707fa419813f2
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'V' =>
306
  public static function getInitializer(ClassLoader $loader)
307
  {
308
  return \Closure::bind(function () use ($loader) {
309
+ $loader->prefixLengthsPsr4 = ComposerStaticInitb2b69b4c3cf562eb96a707fa419813f2::$prefixLengthsPsr4;
310
+ $loader->prefixDirsPsr4 = ComposerStaticInitb2b69b4c3cf562eb96a707fa419813f2::$prefixDirsPsr4;
311
+ $loader->classMap = ComposerStaticInitb2b69b4c3cf562eb96a707fa419813f2::$classMap;
312
 
313
  }, null, ClassLoader::class);
314
  }
vendor/composer/installed.php CHANGED
@@ -1,24 +1,24 @@
1
  <?php return array (
2
  'root' =>
3
  array (
4
- 'pretty_version' => '44.3.x-dev',
5
- 'version' => '44.3.9999999.9999999-dev',
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '804394b42338842f44ee21a69071421d6186ac97',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
13
  array (
14
  '__root__' =>
15
  array (
16
- 'pretty_version' => '44.3.x-dev',
17
- 'version' => '44.3.9999999.9999999-dev',
18
  'aliases' =>
19
  array (
20
  ),
21
- 'reference' => '804394b42338842f44ee21a69071421d6186ac97',
22
  ),
23
  ),
24
  );
1
  <?php return array (
2
  'root' =>
3
  array (
4
+ 'pretty_version' => '44.3.1.x-dev',
5
+ 'version' => '44.3.1.9999999-dev',
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '700640ea6137abc4266ae42bbb5667954ee49ae0',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
13
  array (
14
  '__root__' =>
15
  array (
16
+ 'pretty_version' => '44.3.1.x-dev',
17
+ 'version' => '44.3.1.9999999-dev',
18
  'aliases' =>
19
  array (
20
  ),
21
+ 'reference' => '700640ea6137abc4266ae42bbb5667954ee49ae0',
22
  ),
23
  ),
24
  );
visualcomposer/Helpers/Image.php CHANGED
@@ -440,7 +440,7 @@ class Image implements Helper
440
 
441
  // Check if file already exists. No need to resize twice.
442
  if (!file_exists($absolutePath)) {
443
- $resizedImage = $this->resizeImage($image, $absolutePath, $width, $height, true);
444
  if (is_wp_error($resizedImage)) {
445
  continue;
446
  }
@@ -450,7 +450,7 @@ class Image implements Helper
450
 
451
  // For consistency with "getImagesFromAttachmentSizes" method
452
  // return the relative path to the filename.
453
- $images[$widthAttr] = $dirname . $filename;
454
  }
455
 
456
  return $images;
@@ -459,17 +459,25 @@ class Image implements Helper
459
  /**
460
  * Resize and save image
461
  *
462
- * @param \WP_Image_Editor $image
463
- * @param string $path Absolute path where to save an image
 
464
  * @param int $width
465
  * @param int $height
466
  * @param bool $crop
467
  *
468
  * @return array|\WP_Error
469
  */
470
- public function resizeImage($image, $path, $width = null, $height = null, $crop = false)
471
  {
472
- $newImage = clone $image;
 
 
 
 
 
 
 
473
  $newImage->resize($width, $height, $crop);
474
 
475
  return $newImage->save($path);
440
 
441
  // Check if file already exists. No need to resize twice.
442
  if (!file_exists($absolutePath)) {
443
+ $resizedImage = $this->resizeImage($image, $imageData, $absolutePath, $width, $height, true);
444
  if (is_wp_error($resizedImage)) {
445
  continue;
446
  }
450
 
451
  // For consistency with "getImagesFromAttachmentSizes" method
452
  // return the relative path to the filename.
453
+ $images[ $widthAttr ] = ltrim($dirname . $filename, '/\\');
454
  }
455
 
456
  return $images;
459
  /**
460
  * Resize and save image
461
  *
462
+ * @param \WP_Image_Editor $image Image editor object.
463
+ * @param array $imageData Image data.
464
+ * @param string $path Absolute path where to save an image.
465
  * @param int $width
466
  * @param int $height
467
  * @param bool $crop
468
  *
469
  * @return array|\WP_Error
470
  */
471
+ public function resizeImage($image, $imageData, $path, $width = null, $height = null, $crop = false)
472
  {
473
+ // For GD need to create a new object, because GD has a reference to a resource.
474
+ // In case of ImageMagick it is possible to clone the object.
475
+ if ($image instanceof \WP_Image_Editor_GD) {
476
+ $newImage = wp_get_image_editor($imageData['path']);
477
+ } else {
478
+ $newImage = clone $image;
479
+ }
480
+
481
  $newImage->resize($width, $height, $crop);
482
 
483
  return $newImage->save($path);