Version Description
- Fix: Pagination issue in single video pages.
Download this release
Release Info
Developer | plugins360 |
Plugin | All-in-One Video Gallery |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- README.txt +9 -1
- all-in-one-video-gallery.php +2 -2
- includes/class-aiovg.php +1 -0
- public/class-aiovg-public.php +26 -0
README.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: video, player, gallery, logo, watermark, gdpr, mp4, webm, ogv, youtube, vi
|
|
6 |
Requires at least: 4.4.0
|
7 |
Tested up to: 4.9
|
8 |
Requires PHP: 5.3.0
|
9 |
-
Stable tag: 1.5.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -84,6 +84,10 @@ Most likely rewrite rules were not registered properly for some reason. Go to "W
|
|
84 |
|
85 |
== Changelog ==
|
86 |
|
|
|
|
|
|
|
|
|
87 |
= 1.5.4 =
|
88 |
|
89 |
* Fix: Unfortunately, there were some bugs in the 1.5.3 release and this is an immediate release which addresses those issues.
|
@@ -132,6 +136,10 @@ Most likely rewrite rules were not registered properly for some reason. Go to "W
|
|
132 |
|
133 |
== Upgrade Notice ==
|
134 |
|
|
|
|
|
|
|
|
|
135 |
= 1.5.4 =
|
136 |
|
137 |
* Fix: Unfortunately, there were some bugs in the 1.5.3 release and this is an immediate release which addresses those issues.
|
6 |
Requires at least: 4.4.0
|
7 |
Tested up to: 4.9
|
8 |
Requires PHP: 5.3.0
|
9 |
+
Stable tag: 1.5.5
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
84 |
|
85 |
== Changelog ==
|
86 |
|
87 |
+
= 1.5.5 =
|
88 |
+
|
89 |
+
* Fix: Pagination issue in single video pages.
|
90 |
+
|
91 |
= 1.5.4 =
|
92 |
|
93 |
* Fix: Unfortunately, there were some bugs in the 1.5.3 release and this is an immediate release which addresses those issues.
|
136 |
|
137 |
== Upgrade Notice ==
|
138 |
|
139 |
+
= 1.5.5 =
|
140 |
+
|
141 |
+
* Fix: Pagination issue in single video pages.
|
142 |
+
|
143 |
= 1.5.4 =
|
144 |
|
145 |
* Fix: Unfortunately, there were some bugs in the 1.5.3 release and this is an immediate release which addresses those issues.
|
all-in-one-video-gallery.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* Plugin Name: All-in-One Video Gallery
|
12 |
* Plugin URI: https://plugins360.com/all-in-one-video-gallery/
|
13 |
* Description: Responsive & Lightweight Video gallery plugin. No coding required. Add/Manage videos through a dedicated custom post interface, group them by categories, customize the front-end display using the shortcode builder as you need, provide the option for users to search videos, plus everything you will need to build a YouTube/Vimeo like video sharing website.
|
14 |
-
* Version: 1.5.
|
15 |
* Author: Team Plugins360
|
16 |
* License: GPL-2.0+
|
17 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
26 |
|
27 |
// The current version of the plugin
|
28 |
if ( ! defined( 'AIOVG_PLUGIN_VERSION' ) ) {
|
29 |
-
define( 'AIOVG_PLUGIN_VERSION', '1.5.
|
30 |
}
|
31 |
|
32 |
// The unique identifier of the plugin
|
11 |
* Plugin Name: All-in-One Video Gallery
|
12 |
* Plugin URI: https://plugins360.com/all-in-one-video-gallery/
|
13 |
* Description: Responsive & Lightweight Video gallery plugin. No coding required. Add/Manage videos through a dedicated custom post interface, group them by categories, customize the front-end display using the shortcode builder as you need, provide the option for users to search videos, plus everything you will need to build a YouTube/Vimeo like video sharing website.
|
14 |
+
* Version: 1.5.5
|
15 |
* Author: Team Plugins360
|
16 |
* License: GPL-2.0+
|
17 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
26 |
|
27 |
// The current version of the plugin
|
28 |
if ( ! defined( 'AIOVG_PLUGIN_VERSION' ) ) {
|
29 |
+
define( 'AIOVG_PLUGIN_VERSION', '1.5.5' );
|
30 |
}
|
31 |
|
32 |
// The unique identifier of the plugin
|
includes/class-aiovg.php
CHANGED
@@ -219,6 +219,7 @@ class AIOVG {
|
|
219 |
// Hooks common to all public pages
|
220 |
$plugin_public = new AIOVG_Public();
|
221 |
|
|
|
222 |
$this->loader->add_action( 'init', $plugin_public, 'add_rewrites' );
|
223 |
$this->loader->add_action( 'wp_loaded', $plugin_public, 'maybe_flush_rules' );
|
224 |
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
|
219 |
// Hooks common to all public pages
|
220 |
$plugin_public = new AIOVG_Public();
|
221 |
|
222 |
+
$this->loader->add_action( 'template_redirect', $plugin_public, 'template_redirect', 0 );
|
223 |
$this->loader->add_action( 'init', $plugin_public, 'add_rewrites' );
|
224 |
$this->loader->add_action( 'wp_loaded', $plugin_public, 'maybe_flush_rules' );
|
225 |
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
|
public/class-aiovg-public.php
CHANGED
@@ -22,6 +22,32 @@ if ( ! defined( 'WPINC' ) ) {
|
|
22 |
*/
|
23 |
class AIOVG_Public {
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
/**
|
26 |
* Add rewrite rules.
|
27 |
*
|
22 |
*/
|
23 |
class AIOVG_Public {
|
24 |
|
25 |
+
/**
|
26 |
+
* Remove 'redirect_canonical' hook to fix secondary loop pagination issue on single video
|
27 |
+
* pages.
|
28 |
+
*
|
29 |
+
* @since 1.5.5
|
30 |
+
*/
|
31 |
+
public function template_redirect() {
|
32 |
+
|
33 |
+
if ( is_singular( 'aiovg_videos' ) ) {
|
34 |
+
|
35 |
+
global $wp_query;
|
36 |
+
|
37 |
+
$page = (int) $wp_query->get( 'page' );
|
38 |
+
if ( $page > 1 ) {
|
39 |
+
// Convert 'page' to 'paged'
|
40 |
+
$query->set( 'page', 1 );
|
41 |
+
$query->set( 'paged', $page );
|
42 |
+
}
|
43 |
+
|
44 |
+
// Prevent redirect
|
45 |
+
remove_action( 'template_redirect', 'redirect_canonical' );
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
/**
|
52 |
* Add rewrite rules.
|
53 |
*
|