Version Description
- 19.04.2012 =
- Bugfix : The bug related with the upload of the photos on the multisite network was fixed.
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Gallery by BestWebSoft |
Version | 3.03 |
Comparing to | |
See all releases |
Code changes from version 3.02 to 3.03
- gallery-plugin.php +5 -6
- readme.txt +7 -1
- template/gallery-single-template.php +1 -1
gallery-plugin.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Gallery Plugin
|
|
4 |
Plugin URI: http://bestwebsoft.com/plugin/
|
5 |
Description: This plugin allows you to implement gallery page into web site.
|
6 |
Author: BestWebSoft
|
7 |
-
Version: 3.
|
8 |
Author URI: http://bestwebsoft.com/
|
9 |
License: GPLv2 or later
|
10 |
*/
|
@@ -246,8 +246,9 @@ if ( ! function_exists ( 'gllr_save_postdata' ) ) {
|
|
246 |
$array_file_name = $_REQUEST['undefined'];
|
247 |
$uploadFile = array();
|
248 |
$newthumb = array();
|
|
|
249 |
|
250 |
-
$uploadDir = wp_upload_dir( );
|
251 |
|
252 |
while( list( $key, $val ) = each( $array_file_name ) ) {
|
253 |
$imagename = $val;
|
@@ -255,14 +256,13 @@ if ( ! function_exists ( 'gllr_save_postdata' ) ) {
|
|
255 |
}
|
256 |
reset( $array_file_name );
|
257 |
require_once( ABSPATH . 'wp-admin/includes/image.php' );
|
258 |
-
$i = 0;
|
259 |
while( list( $key, $val ) = each( $array_file_name ) ) {
|
260 |
$file_name = $val;
|
261 |
-
if ( copy ( ABSPATH ."wp-content/plugins/gallery-plugin/upload/files/".$file_name, $uploadFile[$
|
262 |
unlink( ABSPATH ."wp-content/plugins/gallery-plugin/upload/files/".$file_name );
|
263 |
$overrides = array('test_form' => false );
|
264 |
|
265 |
-
$file
|
266 |
$filename = basename( $file );
|
267 |
|
268 |
$wp_filetype = wp_check_filetype( $filename, null );
|
@@ -277,7 +277,6 @@ if ( ! function_exists ( 'gllr_save_postdata' ) ) {
|
|
277 |
wp_update_attachment_metadata( $attach_id, $attach_data );
|
278 |
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_parent = %d WHERE ID = %d", $post->ID, $attach_id ) );
|
279 |
}
|
280 |
-
$i++;
|
281 |
}
|
282 |
}
|
283 |
if( isset( $_REQUEST['delete_images'] ) ) {
|
4 |
Plugin URI: http://bestwebsoft.com/plugin/
|
5 |
Description: This plugin allows you to implement gallery page into web site.
|
6 |
Author: BestWebSoft
|
7 |
+
Version: 3.03
|
8 |
Author URI: http://bestwebsoft.com/
|
9 |
License: GPLv2 or later
|
10 |
*/
|
246 |
$array_file_name = $_REQUEST['undefined'];
|
247 |
$uploadFile = array();
|
248 |
$newthumb = array();
|
249 |
+
$time = current_time('mysql');
|
250 |
|
251 |
+
$uploadDir = wp_upload_dir( $time );
|
252 |
|
253 |
while( list( $key, $val ) = each( $array_file_name ) ) {
|
254 |
$imagename = $val;
|
256 |
}
|
257 |
reset( $array_file_name );
|
258 |
require_once( ABSPATH . 'wp-admin/includes/image.php' );
|
|
|
259 |
while( list( $key, $val ) = each( $array_file_name ) ) {
|
260 |
$file_name = $val;
|
261 |
+
if ( copy ( ABSPATH ."wp-content/plugins/gallery-plugin/upload/files/".$file_name, $uploadFile[$key] ) ) {
|
262 |
unlink( ABSPATH ."wp-content/plugins/gallery-plugin/upload/files/".$file_name );
|
263 |
$overrides = array('test_form' => false );
|
264 |
|
265 |
+
$file = $uploadFile[$key];
|
266 |
$filename = basename( $file );
|
267 |
|
268 |
$wp_filetype = wp_check_filetype( $filename, null );
|
277 |
wp_update_attachment_metadata( $attach_id, $attach_data );
|
278 |
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_parent = %d WHERE ID = %d", $post->ID, $attach_id ) );
|
279 |
}
|
|
|
280 |
}
|
281 |
}
|
282 |
if( isset( $_REQUEST['delete_images'] ) ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10
|
|
4 |
Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag: 3.
|
8 |
|
9 |
This plugin allows you to implement gallery page into your web site.
|
10 |
|
@@ -86,6 +86,9 @@ The multiple files upload is supported by all modern browsers except Internet Ex
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
89 |
= V3.02 - 12.04.2012 =
|
90 |
* Bugfix : The bug related with the display of the photo on the single page of the gallery was fixed.
|
91 |
|
@@ -146,6 +149,9 @@ The multiple files upload is supported by all modern browsers except Internet Ex
|
|
146 |
|
147 |
== Upgrade Notice ==
|
148 |
|
|
|
|
|
|
|
149 |
= V3.02 =
|
150 |
The bug related with the display of the photo on the single page of the gallery was fixed.
|
151 |
|
4 |
Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 3.03
|
8 |
|
9 |
This plugin allows you to implement gallery page into your web site.
|
10 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= V3.03 - 19.04.2012 =
|
90 |
+
* Bugfix : The bug related with the upload of the photos on the multisite network was fixed.
|
91 |
+
|
92 |
= V3.02 - 12.04.2012 =
|
93 |
* Bugfix : The bug related with the display of the photo on the single page of the gallery was fixed.
|
94 |
|
149 |
|
150 |
== Upgrade Notice ==
|
151 |
|
152 |
+
= V3.03 =
|
153 |
+
The bug related with the upload of the photos on the multisite network was fixed.
|
154 |
+
|
155 |
= V3.02 =
|
156 |
The bug related with the display of the photo on the single page of the gallery was fixed.
|
157 |
|
template/gallery-single-template.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
"what_to_show" => "posts",
|
21 |
"post_status" => "inherit",
|
22 |
"post_type" => "attachment",
|
23 |
-
"orderby" => "
|
24 |
"order" => "ASC",
|
25 |
"post_mime_type"=> "image/jpeg,image/gif,image/jpg,image/png",
|
26 |
"post_parent" => $post->ID
|
20 |
"what_to_show" => "posts",
|
21 |
"post_status" => "inherit",
|
22 |
"post_type" => "attachment",
|
23 |
+
"orderby" => "menu_order",
|
24 |
"order" => "ASC",
|
25 |
"post_mime_type"=> "image/jpeg,image/gif,image/jpg,image/png",
|
26 |
"post_parent" => $post->ID
|