Gallery – Photo Gallery and Images Gallery - Version 2.0.26

Version Description

  • Changed method in code, improve security
Download this release

Release Info

Developer robosoft
Plugin Icon 128x128 Gallery – Photo Gallery and Images Gallery
Version 2.0.26
Comparing to
See all releases

Code changes from version 2.0.25 to 2.0.26

includes/frontend/rbs_gallery_source.php CHANGED
@@ -95,17 +95,17 @@ class roboGalleryImages{
95
  for($i=0;$i<count($this->imgArray);$i++){
96
  $img = $this->imgArray[$i];
97
  $thumb = wp_get_attachment_image_src( $img['id'] , $this->thumbsource);
98
- $this->imgArray[$i]['image'] = wp_get_attachment_url( $img['id'] );
99
- $this->imgArray[$i]['thumb'] = (isset($thumb) && count($thumb) ) ? $thumb[0] : '';
100
- $this->imgArray[$i]['sizeW'] = (isset($thumb[1]) && count($thumb)) ? $thumb[1] : $this->width;
101
- $this->imgArray[$i]['sizeH'] = (isset($thumb[2]) && count($thumb)) ? $thumb[2] : $this->height;
102
- $this->imgArray[$i]['data'] = get_post($img['id'] );
103
- $this->imgArray[$i]['link'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_link', true );
104
- $this->imgArray[$i]['typelink'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_type_link', true );
105
- $this->imgArray[$i]['videolink']= get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_video_link', true );
106
- $this->imgArray[$i]['col'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_col', true );
107
- $this->imgArray[$i]['effect'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_effect', true );
108
-
109
  }
110
 
111
  switch ( $this->orderby ) {
95
  for($i=0;$i<count($this->imgArray);$i++){
96
  $img = $this->imgArray[$i];
97
  $thumb = wp_get_attachment_image_src( $img['id'] , $this->thumbsource);
98
+
99
+ $this->imgArray[$i]['image'] = wp_get_attachment_url( $img['id'] );
100
+ $this->imgArray[$i]['thumb'] = (isset($thumb) && count($thumb) ) ? $thumb[0] : '';
101
+ $this->imgArray[$i]['sizeW'] = (isset($thumb[1]) && count($thumb)) ? $thumb[1] : $this->width;
102
+ $this->imgArray[$i]['sizeH'] = (isset($thumb[2]) && count($thumb)) ? $thumb[2] : $this->height;
103
+ $this->imgArray[$i]['data'] = get_post($img['id'] );
104
+ $this->imgArray[$i]['link'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_link', true );
105
+ $this->imgArray[$i]['typelink'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_type_link', true );
106
+ $this->imgArray[$i]['videolink']= get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_video_link', true );
107
+ $this->imgArray[$i]['col'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_col', true );
108
+ $this->imgArray[$i]['effect'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_effect', true );
109
  }
110
 
111
  switch ( $this->orderby ) {
includes/rbs_gallery_ajax.php CHANGED
@@ -11,34 +11,25 @@
11
  * Copyright (c) 2014-2016, Robosoft. All rights reserved.
12
  * Available only in http://robosoft.co/robogallery
13
  */
14
-
15
-
16
  if ( ! defined( 'WPINC' ) ) die;
17
 
18
-
19
- if(!function_exists('wp_get_current_user')) {
20
- include(ABSPATH . "wp-includes/pluggable.php");
21
- }
22
- if(!function_exists('wp_get_current_user')) {
23
- include(ABSPATH . "wp-admin/includes/user.php.");
24
- }
25
-
26
- if(!function_exists('rbs_gallery_ajax_callback') && function_exists('wp_get_current_user') && current_user_can( 'edit_posts' ) ){ //is_admin()
27
- add_action( 'wp_ajax_rbs_gallery', 'rbs_gallery_ajax_callback' );
28
- function rbs_gallery_ajax_callback(){
29
-
30
- if( !isset($_POST['function']) || !$_POST['function'] ) return ;
31
- $functionName = $_POST['function'];
32
- if ( ereg("[^a-z_]", $functionName) ) return ;
33
- $functionName = 'rbs_ajax_'.$functionName;
34
- switch ($functionName) {
35
- case 'rbs_ajax_create_article_form': rbs_ajax_create_article_form(); break;
36
- case 'rbs_ajax_create_article': rbs_ajax_create_article(); break;
37
- case 'rbs_ajax_posts_list': rbs_ajax_posts_list(); break;
38
- case 'rbs_ajax_reset_views': rbs_ajax_reset_views(); break;
39
- default: return ; break;
40
  }
41
- wp_die();
42
  }
43
- }
44
-
11
  * Copyright (c) 2014-2016, Robosoft. All rights reserved.
12
  * Available only in http://robosoft.co/robogallery
13
  */
 
 
14
  if ( ! defined( 'WPINC' ) ) die;
15
 
16
+ if(!function_exists('rbs_gallery_ajax_init')){
17
+ function rbs_gallery_ajax_init(){
18
+ function rbs_gallery_ajax_callback(){
19
+ if( !isset($_POST['function']) || !$_POST['function'] ) return ;
20
+ $functionName = $_POST['function'];
21
+ if ( ereg("[^a-z_]", $functionName) ) return ;
22
+ $functionName = 'rbs_ajax_'.$functionName;
23
+ switch ($functionName) {
24
+ case 'rbs_ajax_create_article_form': rbs_ajax_create_article_form(); break;
25
+ case 'rbs_ajax_create_article': rbs_ajax_create_article(); break;
26
+ case 'rbs_ajax_posts_list': rbs_ajax_posts_list(); break;
27
+ case 'rbs_ajax_reset_views': rbs_ajax_reset_views(); break;
28
+ default: return ; break;
29
+ }
30
+ wp_die();
 
 
 
 
 
 
 
31
  }
32
+ add_action( 'wp_ajax_rbs_gallery', 'rbs_gallery_ajax_callback' );
33
  }
34
+ add_action( 'admin_init', 'rbs_gallery_ajax_init' );
35
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.robosoft.co/robogallery
4
  Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries, robo gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.5
7
- Stable tag: 2.0.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -584,6 +584,9 @@ If any problem occurs, please contact us.
584
 
585
  == Changelog ==
586
 
 
 
 
587
  = 2.0.25 =
588
  * Updated statistics section
589
  * Added new total galleries value
@@ -1115,6 +1118,9 @@ If any problem occurs, please contact us.
1115
 
1116
  == Upgrade Notice ==
1117
 
 
 
 
1118
  = 2.0.25 =
1119
  Updated statistics section, added new total galleries value
1120
 
4
  Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries, robo gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.5
7
+ Stable tag: 2.0.26
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
584
 
585
  == Changelog ==
586
 
587
+ = 2.0.26 =
588
+ * Changed method in code, improve security
589
+
590
  = 2.0.25 =
591
  * Updated statistics section
592
  * Added new total galleries value
1118
 
1119
  == Upgrade Notice ==
1120
 
1121
+ = 2.0.26 =
1122
+ Changed method in code, improve security
1123
+
1124
  = 2.0.25 =
1125
  Updated statistics section, added new total galleries value
1126
 
robogallery.php CHANGED
@@ -8,7 +8,7 @@
8
  * Plugin Name: Robo Gallery
9
  * Plugin URI: http://robosoft.co/robogallery
10
  * Description: A responsive, easy and elegant way to show gallery.
11
- * Version: 2.0.25
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
@@ -19,7 +19,7 @@
19
 
20
  if ( ! defined( 'WPINC' ) ) die;
21
  define("ROBO_GALLERY", 1);
22
- define("ROBO_GALLERY_VERSION", '2.0.25');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25
 
8
  * Plugin Name: Robo Gallery
9
  * Plugin URI: http://robosoft.co/robogallery
10
  * Description: A responsive, easy and elegant way to show gallery.
11
+ * Version: 2.0.26
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
19
 
20
  if ( ! defined( 'WPINC' ) ) die;
21
  define("ROBO_GALLERY", 1);
22
+ define("ROBO_GALLERY_VERSION", '2.0.26');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25