Version Description
- Fixed the issue with Multisite
- Changed the class name to avoid conflicts
Download this release
Release Info
| Developer | smub |
| Plugin | |
| Version | 0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1 to 0.2
- jetpack-carousel.php +1 -6
- readme.txt +8 -2
jetpack-carousel.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Gallery Carousel Without JetPack
|
| 4 |
Plugin URI: http://www.wpbeginner.com/
|
| 5 |
Description: Transform your standard galleries into an immersive full-screen experience without requiring you to connect to WordPress.com
|
| 6 |
-
Version: 0.
|
| 7 |
Author: Syed Balkhi
|
| 8 |
Author URI: http://www.wpbeginner.com
|
| 9 |
License: GPLv2 or later
|
|
@@ -77,9 +77,6 @@ class No_Jetpack_Carousel {
|
|
| 77 |
}
|
| 78 |
|
| 79 |
function enqueue_assets( $output ) {
|
| 80 |
-
global $wp_query;
|
| 81 |
-
$postid = $wp_query->post->ID;
|
| 82 |
-
if (is_single() && get_post_meta($postid, 'wpb_gallery', true)) {
|
| 83 |
|
| 84 |
if ( ! empty( $output ) ) {
|
| 85 |
// Bail because someone is overriding the [gallery] shortcode.
|
|
@@ -153,8 +150,6 @@ class No_Jetpack_Carousel {
|
|
| 153 |
return $output;
|
| 154 |
|
| 155 |
}
|
| 156 |
-
wp_reset_query();
|
| 157 |
-
}
|
| 158 |
|
| 159 |
function add_data_to_images( $html, $attachment_id ) {
|
| 160 |
if ( $this->first_run ) // not in a gallery
|
| 3 |
Plugin Name: Gallery Carousel Without JetPack
|
| 4 |
Plugin URI: http://www.wpbeginner.com/
|
| 5 |
Description: Transform your standard galleries into an immersive full-screen experience without requiring you to connect to WordPress.com
|
| 6 |
+
Version: 0.2
|
| 7 |
Author: Syed Balkhi
|
| 8 |
Author URI: http://www.wpbeginner.com
|
| 9 |
License: GPLv2 or later
|
| 77 |
}
|
| 78 |
|
| 79 |
function enqueue_assets( $output ) {
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
if ( ! empty( $output ) ) {
|
| 82 |
// Bail because someone is overriding the [gallery] shortcode.
|
| 150 |
return $output;
|
| 151 |
|
| 152 |
}
|
|
|
|
|
|
|
| 153 |
|
| 154 |
function add_data_to_images( $html, $attachment_id ) {
|
| 155 |
if ( $this->first_run ) // not in a gallery
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link:http://www.wpbeginner.com/wpbeginner-needs-your-help/
|
|
| 4 |
Tags: gallery, lightbox, carousel, gallery carousel, jetpack
|
| 5 |
Requires at least: 3.4.1
|
| 6 |
Tested up to: 3.4.1
|
| 7 |
-
Stable tag: 0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -44,4 +44,10 @@ Go to Settings > Media for further options.
|
|
| 44 |
Well this code is literally a copy of JetPack module. I will keep a close eye on every JetPack update. If they update this module, then I will be sure to update this plugin as well.�
|
| 45 |
|
| 46 |
== Changelog ==
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
Tags: gallery, lightbox, carousel, gallery carousel, jetpack
|
| 5 |
Requires at least: 3.4.1
|
| 6 |
Tested up to: 3.4.1
|
| 7 |
+
Stable tag: 0.2
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 44 |
Well this code is literally a copy of JetPack module. I will keep a close eye on every JetPack update. If they update this module, then I will be sure to update this plugin as well.�
|
| 45 |
|
| 46 |
== Changelog ==
|
| 47 |
+
|
| 48 |
+
= 0.2 =
|
| 49 |
+
* Fixed the issue with Multisite
|
| 50 |
+
* Changed the class name to avoid conflicts
|
| 51 |
+
|
| 52 |
+
= 0.1 =
|
| 53 |
+
*Initial Release
|
