Photo Gallery by Envira – Responsive Image Gallery for WordPress - Version 1.3.5.0

Version Description

  • Fix: Prevent Envira Custom Post Type from appearing in search results, which would result in a 404
Download this release

Release Info

Developer n7studios
Plugin Icon 128x128 Photo Gallery by Envira – Responsive Image Gallery for WordPress
Version 1.3.5.0
Comparing to
See all releases

Code changes from version 1.3.4.10 to 1.3.5.0

envira-gallery-lite.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
- * Version: 1.3.4.10
9
  * Text Domain: envira-gallery-lite
10
  *
11
  * Envira Gallery is free software: you can redistribute it and/or modify
@@ -53,7 +53,7 @@ class Envira_Gallery_Lite {
53
  *
54
  * @var string
55
  */
56
- public $version = '1.3.4.10';
57
 
58
  /**
59
  * Unique plugin slug identifier.
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
+ * Version: 1.3.5.0
9
  * Text Domain: envira-gallery-lite
10
  *
11
  * Envira Gallery is free software: you can redistribute it and/or modify
53
  *
54
  * @var string
55
  */
56
+ public $version = '1.3.5.0';
57
 
58
  /**
59
  * Unique plugin slug identifier.
includes/global/posttype.php CHANGED
@@ -64,12 +64,15 @@ class Envira_Gallery_Posttype_Lite {
64
  )
65
  );
66
 
 
 
 
67
  // Build out the post type arguments.
68
  $args = apply_filters( 'envira_gallery_post_type_args',
69
  array(
70
  'labels' => $labels,
71
  'public' => false,
72
- 'exclude_from_search' => false,
73
  'show_ui' => true,
74
  'show_in_admin_bar' => false,
75
  'rewrite' => false,
64
  )
65
  );
66
 
67
+ // Define exclude_from_search depending on whether we're in the admin or frontend
68
+ $exclude_from_search = ( is_admin() ? false : true );
69
+
70
  // Build out the post type arguments.
71
  $args = apply_filters( 'envira_gallery_post_type_args',
72
  array(
73
  'labels' => $labels,
74
  'public' => false,
75
+ 'exclude_from_search' => $exclude_from_search,
76
  'show_ui' => true,
77
  'show_in_admin_bar' => false,
78
  'rewrite' => false,
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: griffinjt
3
  Tags: wordpress gallery, gallery, wordpress gallery plugin, gallery plugin, responsive, responsive gallery, image gallery, image gallery plugin, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery gallery, javascript gallery, jquery rotator, javascript rotator, picture gallery, photo gallery, photo rotator, shortcode, template tag, custom post type, media uploader, ajax, wordpress galleries, responsive galleries, fullscreen, deeplinking, best wordpress gallery, best wordpress gallery plugin, best gallery plugin, best gallery, best responsive gallery, best responsive wordpress gallery, best wp gallery, portfolio, design portfolio
4
  Requires at least: 3.8
5
- Tested up to: 4.3.1
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
@@ -57,6 +57,9 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.3.4.10 =
61
  * Fix: Get rid of undefined property errors
62
 
2
  Contributors: griffinjt
3
  Tags: wordpress gallery, gallery, wordpress gallery plugin, gallery plugin, responsive, responsive gallery, image gallery, image gallery plugin, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery gallery, javascript gallery, jquery rotator, javascript rotator, picture gallery, photo gallery, photo rotator, shortcode, template tag, custom post type, media uploader, ajax, wordpress galleries, responsive galleries, fullscreen, deeplinking, best wordpress gallery, best wordpress gallery plugin, best gallery plugin, best gallery, best responsive gallery, best responsive wordpress gallery, best wp gallery, portfolio, design portfolio
4
  Requires at least: 3.8
5
+ Tested up to: 4.4
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.3.5.0 =
61
+ * Fix: Prevent Envira Custom Post Type from appearing in search results, which would result in a 404
62
+
63
  = 1.3.4.10 =
64
  * Fix: Get rid of undefined property errors
65