Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.94

Version Description

  • Fixed: Gallery media uploader files with withespaces in name.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.2.94
Comparing to
See all releases

Code changes from version 1.2.93 to 1.2.94

featured/featured_themes.php CHANGED
@@ -1,137 +1,89 @@
1
  <?php
2
- function spider_featured_themes() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ?>
4
- <div id="main_featured_themes_page">
5
- <table align="center" width="90%" style="margin-top: 0px;border-bottom: rgb(111, 111, 111) solid 1px;">
6
- <tr>
7
- <td colspan="2" style="height: 40px; padding: 30px 0px 0px 0px;">
8
- <h3 style="margin: 0px;font-family:Segoe UI;padding-bottom: 15px;color: rgb(111, 111, 111); font-size:18pt;">Featured Themes</h3>
9
- </td>
10
- <td align="right" style="font-size:16px;"></td>
11
- </tr>
12
- </table>
13
- <div class="featured_header">
14
- <div>
15
- <a href="https://web-dorado.com/wordpress-themes.html?source=photo-gallery" target="_blank">
16
- <h1>WORDPRESS THEMES</h1>
17
- <h1 class="get_plugins">ALL FOR $40 ONLY <span>- SAVE 80%</span></h1>
18
- </a>
19
- </div>
20
- <form method="post">
21
- <ul id="featured-plugins-list">
22
- <li class="portfolio">
23
  <div class="product"></div>
24
  <div class="title">
25
- <strong class="heading">Portfolio Gallery Theme</strong>
26
  </div>
27
  <div class="description">
28
- <p>Portfolio Gallery helps to display images using various color schemes and layouts combined with elegant fonts and content parts.</p>
29
  </div>
30
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/portfolio-gallery.html" class="download">Download theme &#9658;</a>
31
  </li>
32
- <li class="business_elite">
33
- <div class="product"></div>
34
- <div class="title">
35
- <strong class="heading">Business Elite Theme</strong>
36
- </div>
37
- <div class="description">
38
- <p>Business Elite is a robust parallax theme for business websites. The theme uses smooth transitions and many functional sections.</p>
39
- </div>
40
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/business-elite.html" class="download">Download theme &#9658;</a>
41
- </li>
42
- <li class="sauron">
43
- <div class="product"></div>
44
- <div class="title">
45
- <strong class="heading">Sauron Theme</strong>
46
- </div>
47
- <div class="description">
48
- <p>Sauron is a multipurpose parallax theme, which uses multiple interactive sections designed for the client-engagement.</p>
49
- </div>
50
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/sauron.html" class="download">Download plugin &#9658;</a>
51
- </li>
52
- <li class="mottomag">
53
- <div class="product"></div>
54
- <div class="title">
55
- <strong class="heading">MottoMag Theme</strong>
56
- </div>
57
- <div class="description">
58
- <p>MottoMag is a vibrant, responsive theme which is a perfect choice for the combination of textual content with videos and images.</p>
59
- </div>
60
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/mottomag.html" class="download">Download plugin &#9658;</a>
61
- </li>
62
- <li class="business_world">
63
- <div class="product"></div>
64
- <div class="title">
65
- <strong class="heading">Business World Theme</strong>
66
- </div>
67
- <div class="description">
68
- <p>Business World is an innovative WordPress theme great for Business websites.</p>
69
- </div>
70
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/business-world.html" class="download">Download plugin &#9658;</a>
71
- </li>
72
- <li class="best_magazine">
73
- <div class="product"></div>
74
- <div class="title">
75
- <strong class="heading">Best Magazine Theme</strong>
76
- </div>
77
- <div class="description">
78
- <p>Best Magazine is an ultimate selection when you are dealing with multi-category news websites.</p>
79
- </div>
80
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/best-magazine.html" class="download">Download plugin &#9658;</a>
81
- </li>
82
- <li class="wedding_style">
83
- <div class="product"></div>
84
- <div class="title">
85
- <strong class="heading">Wedding Style Theme</strong>
86
- </div>
87
- <div class="description">
88
- <p>Wedding style is a responsive theme designed for the organization and maintenance of wedding websites and blogs.</p>
89
- </div>
90
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/wedding-style.html" class="download">Download plugin &#9658;</a>
91
- </li>
92
- <li class="magazine">
93
- <div class="product"></div>
94
- <div class="title">
95
- <strong class="heading">Magazine Theme</strong>
96
- </div>
97
- <div class="description">
98
- <p>Magazine theme is a perfect solution when creating news and informational websites. It comes with a wide range of layout options.</p>
99
- </div>
100
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/news-magazine.html" class="download">Download plugin &#9658;</a>
101
- </li>
102
- <li class="weddings">
103
- <div class="product"></div>
104
- <div class="title">
105
- <strong class="heading">Weddings Theme</strong>
106
- </div>
107
- <div class="description">
108
- <p>Weddings is an elegant, responsive WordPress theme designed for wedding websites. The theme includes multiple pages, homepage slider and gallery support.</p>
109
- </div>
110
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/wedding.html" class="download">Download plugin &#9658;</a>
111
- </li>
112
- <li class="exclusive">
113
- <div class="product"></div>
114
- <div class="title">
115
- <strong class="heading">Exclusive Theme</strong>
116
- </div>
117
- <div class="description">
118
- <p>Exclusive is a unique theme designed to best fit business style websites. It comes with a large list of customizable features.</p>
119
- </div>
120
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/exclusive.html" class="download">Download plugin &#9658;</a>
121
- </li>
122
- <li class="expert">
123
- <div class="product"></div>
124
- <div class="title">
125
- <strong class="heading">Expert Theme</strong>
126
- </div>
127
- <div class="description">
128
- <p>WordPress Expert is a modern, user-friendly and stylish theme. It has a list of customizable layout, style, colors and fonts.</p>
129
- </div>
130
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/business-responsive.html" class="download">Download plugin &#9658;</a>
131
- </li>
132
- </ul>
133
- </form>
134
- </div>
135
- </div>
136
  <?php
137
  }
1
  <?php
2
+ function spider_featured_themes($current_plugin = '') {
3
+ $themes = array(
4
+ "portfolio_gallery" => array(
5
+ 'title' => 'Portfolio Gallery Theme',
6
+ 'content' => 'Portfolio Gallery helps to display images using various color schemes and layouts combined with elegant fonts and content parts.',
7
+ 'href' => 'https://web-dorado.com/wordpress-themes/portfolio-gallery.html'
8
+ ),
9
+ "business_elite" => array(
10
+ 'title' => 'Business Elite Theme',
11
+ 'content' => 'Business Elite is a robust parallax theme for business websites. The theme uses smooth transitions and many functional sections.',
12
+ 'href' => 'https://web-dorado.com/wordpress-themes/business-elite.html'
13
+ ),
14
+ "sauron" => array(
15
+ 'title' => 'Sauron Theme',
16
+ 'content' => 'Sauron is a multipurpose parallax theme, which uses multiple interactive sections designed for the client-engagement.',
17
+ 'href' => 'https://web-dorado.com/wordpress-themes/sauron.html'
18
+ ),
19
+ "mottomag" => array(
20
+ 'title' => 'MottoMag Theme',
21
+ 'content' => 'MottoMag is a vibrant, responsive theme which is a perfect choice for the combination of textual content with videos and images.',
22
+ 'href' => 'https://web-dorado.com/wordpress-themes/mottomag.html'
23
+ ),
24
+ "business_world" => array(
25
+ 'title' => 'Business World Theme',
26
+ 'content' => 'Business World is an innovative WordPress theme great for Business websites.',
27
+ 'href' => 'https://web-dorado.com/wordpress-themes/business-world.html'
28
+ ),
29
+ "best_magazine" => array(
30
+ 'title' => 'Best Magazine Theme',
31
+ 'content' => 'Best Magazine is an ultimate selection when you are dealing with multi-category news websites.',
32
+ 'href' => 'https://web-dorado.com/wordpress-themes/best-magazine.html'
33
+ ),
34
+ "wedding_style" => array(
35
+ 'title' => 'Wedding Style Theme',
36
+ 'content' => 'Wedding style is a responsive theme designed for the organization and maintenance of wedding websites and blogs.',
37
+ 'href' => 'https://web-dorado.com/wordpress-themes/wedding-style.html'
38
+ ),
39
+ "magazine" => array(
40
+ 'title' => 'Magazine Theme',
41
+ 'content' => 'Magazine theme is a perfect solution when creating news and informational websites. It comes with a wide range of layout options.',
42
+ 'href' => 'https://web-dorado.com/wordpress-themes/news-magazine.html'
43
+ ),
44
+ "weddings" => array(
45
+ 'title' => 'Weddings Theme',
46
+ 'content' => 'Weddings is an elegant, responsive WordPress theme designed for wedding websites. The theme includes multiple pages, homepage slider and gallery support.',
47
+ 'href' => 'https://web-dorado.com/wordpress-themes/wedding.html'
48
+ ),
49
+ "exclusive" => array(
50
+ 'title' => 'Exclusive Theme',
51
+ 'content' => 'Exclusive is a unique theme designed to best fit business style websites. It comes with a large list of customizable features.',
52
+ 'href' => 'https://web-dorado.com/wordpress-themes/exclusive.html'
53
+ ),
54
+ "expert" => array(
55
+ 'title' => 'Expert Theme',
56
+ 'content' => 'WordPress Expert is a modern, user-friendly and stylish theme. It has a list of customizable layout, style, colors and fonts.',
57
+ 'href' => 'https://web-dorado.com/wordpress-themes/business-responsive.html'
58
+ ),
59
+ );
60
  ?>
61
+ <div id="main_featured_themes_page">
62
+ <h3>Featured Themes</h3>
63
+ <div class="featured_header">
64
+ <a href="https://web-dorado.com/wordpress-themes.html?source=<?php echo $current_plugin; ?>" target="_blank">
65
+ <h1>WORDPRESS THEMES</h1>
66
+ <h1 class="get_plugins">ALL FOR $40 ONLY <span>- SAVE 80%</span></h1>
67
+ </a>
68
+ </div>
69
+ <ul id="featured-plugins-list">
70
+ <?php
71
+ foreach ($themes as $key => $themes) {
72
+ ?>
73
+ <li class="<?php echo $key; ?>">
 
 
 
 
 
 
74
  <div class="product"></div>
75
  <div class="title">
76
+ <strong class="heading"><?php echo $themes['title']; ?></strong>
77
  </div>
78
  <div class="description">
79
+ <p><?php echo $themes['content']; ?></p>
80
  </div>
81
+ <a target="_blank" href="<?php echo $themes['href']; ?>" class="download">Download theme &#9658;</a>
82
  </li>
83
+ <?php
84
+ }
85
+ ?>
86
+ </ul>
87
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  <?php
89
  }
featured/themes_style.css CHANGED
@@ -39,7 +39,7 @@
39
  }
40
 
41
  #main_featured_themes_page #featured-plugins-list li.sauron .product {background:url("images/sauron.jpg") left center no-repeat;}
42
- #main_featured_themes_page #featured-plugins-list li.portfolio .product {background:url("images/portfolio.png") left center no-repeat;}
43
  #main_featured_themes_page #featured-plugins-list li.business_elite .product {background:url("images/business_elite.jpg") left center no-repeat;}
44
  #main_featured_themes_page #featured-plugins-list li.mottomag .product {background:url("images/mottomag.jpg") left center no-repeat; }
45
  #main_featured_themes_page #featured-plugins-list li.business_world .product {background:url("images/business_world.jpg") left center no-repeat;}
39
  }
40
 
41
  #main_featured_themes_page #featured-plugins-list li.sauron .product {background:url("images/sauron.jpg") left center no-repeat;}
42
+ #main_featured_themes_page #featured-plugins-list li.portfolio_gallery .product {background:url("images/portfolio.png") left center no-repeat;}
43
  #main_featured_themes_page #featured-plugins-list li.business_elite .product {background:url("images/business_elite.jpg") left center no-repeat;}
44
  #main_featured_themes_page #featured-plugins-list li.mottomag .product {background:url("images/mottomag.jpg") left center no-repeat; }
45
  #main_featured_themes_page #featured-plugins-list li.business_world .product {background:url("images/business_world.jpg") left center no-repeat;}
filemanager/UploadHandler.php CHANGED
@@ -507,6 +507,7 @@ class UploadHandler {
507
  // into different directories or replacing hidden system files.
508
  // Also remove control characters and spaces (\x00..\x20) around the filename:
509
  $name = trim(stripslashes($name), ".\x00..\x20");
 
510
  // Use a timestamp for empty filenames:
511
  if (!$name) {
512
  $name = str_replace('.', '-', microtime(true));
507
  // into different directories or replacing hidden system files.
508
  // Also remove control characters and spaces (\x00..\x20) around the filename:
509
  $name = trim(stripslashes($name), ".\x00..\x20");
510
+ $name = str_replace(' ', '_', $name);
511
  // Use a timestamp for empty filenames:
512
  if (!$name) {
513
  $name = str_replace('.', '-', microtime(true));
filemanager/model.php CHANGED
@@ -122,7 +122,7 @@ class FilemanagerModel {
122
  $file = array();
123
  $file['is_dir'] = TRUE;
124
  $file['name'] = $file_name;
125
- $file['filename'] = $file_name;
126
  $file['type'] = '';
127
  $file['thumb'] = $icons_dir_url . '/dir.png';
128
  $file['icon'] = $icons_dir_url . '/dir.png';
@@ -135,7 +135,8 @@ class FilemanagerModel {
135
  $file = array();
136
  $file['is_dir'] = FALSE;
137
  $file['name'] = $file_name;
138
- $file['filename'] = substr($file_name, 0, strrpos($file_name, '.'));
 
139
  $file_extension = explode('.', $file_name);
140
  $file['type'] = strtolower(end($file_extension));
141
  $icon = $icons_dir_url . '/' . $file['type'] . '.png';
122
  $file = array();
123
  $file['is_dir'] = TRUE;
124
  $file['name'] = $file_name;
125
+ $file['filename'] = str_replace("_", " ", $file_name);
126
  $file['type'] = '';
127
  $file['thumb'] = $icons_dir_url . '/dir.png';
128
  $file['icon'] = $icons_dir_url . '/dir.png';
135
  $file = array();
136
  $file['is_dir'] = FALSE;
137
  $file['name'] = $file_name;
138
+ $filename = substr($file_name, 0, strrpos($file_name, '.'));
139
+ $file['filename'] = str_replace("_", " ", $filename);
140
  $file_extension = explode('.', $file_name);
141
  $file['type'] = strtolower(end($file_extension));
142
  $icon = $icons_dir_url . '/' . $file['type'] . '.png';
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
- * Version: 1.2.93
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -130,7 +130,7 @@ function bwg_featured_themes() {
130
  require_once(WD_BWG_DIR . '/featured/featured_themes.php');
131
  wp_register_style('bwg_featured_themes', WD_BWG_URL . '/featured/themes_style.css', array(), wd_bwg_version());
132
  wp_print_styles('bwg_featured_themes');
133
- spider_featured_themes();
134
  }
135
 
136
  function bwg_addons() {
@@ -1911,7 +1911,7 @@ function bwg_activate() {
1911
  ));
1912
  }
1913
  $version = get_option("wd_bwg_version");
1914
- $new_version = '1.2.93';
1915
  if ($version && version_compare($version, $new_version, '<')) {
1916
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1917
  bwg_update($version);
@@ -1965,7 +1965,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1965
 
1966
  function bwg_update_hook() {
1967
  $version = get_option("wd_bwg_version");
1968
- $new_version = '1.2.93';
1969
  if ($version && version_compare($version, $new_version, '<')) {
1970
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1971
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
+ * Version: 1.2.94
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
130
  require_once(WD_BWG_DIR . '/featured/featured_themes.php');
131
  wp_register_style('bwg_featured_themes', WD_BWG_URL . '/featured/themes_style.css', array(), wd_bwg_version());
132
  wp_print_styles('bwg_featured_themes');
133
+ spider_featured_themes('photo-gallery');
134
  }
135
 
136
  function bwg_addons() {
1911
  ));
1912
  }
1913
  $version = get_option("wd_bwg_version");
1914
+ $new_version = '1.2.94';
1915
  if ($version && version_compare($version, $new_version, '<')) {
1916
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1917
  bwg_update($version);
1965
 
1966
  function bwg_update_hook() {
1967
  $version = get_option("wd_bwg_version");
1968
+ $new_version = '1.2.94';
1969
  if ($version && version_compare($version, $new_version, '<')) {
1970
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1971
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.2.93
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -225,6 +225,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
225
 
226
  == Changelog ==
227
 
 
 
 
228
  = 1.2.93 =
229
  * Added: Introduction tour.
230
 
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.2.94
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
225
 
226
  == Changelog ==
227
 
228
+ = 1.2.94 =
229
+ * Fixed: Gallery media uploader files with withespaces in name.
230
+
231
  = 1.2.93 =
232
  * Added: Introduction tour.
233