mirror of
https://github.com/4suredev/Avada-Dynamic-Video-Lightbox.git
synced 2025-11-24 08:32:55 +08:00
Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73e9944354 | ||
|
|
9fb0c254dc | ||
|
|
a4cd94d9ba | ||
|
|
c36b440361 |
2 changed files with 7 additions and 3 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Plugin Name: Avada Dynamic Video Lightbox
|
* Plugin Name: 4sure - Avada Dynamic Video Lightbox
|
||||||
* Plugin URI: https://4sure.com.au
|
* Plugin URI: https://4sure.com.au
|
||||||
* Description: Insert a youtube or vimeo link that plays in a lightbox. Use [lightbox_video url=""]. Add a custom thumbnail using the 'img' parameter.
|
* Description: Insert a youtube or vimeo link that plays in a lightbox. Use [lightbox_video url=""]. Add a custom thumbnail using the 'img' parameter.
|
||||||
* Version: 1.0.7
|
* Version: 1.0.11
|
||||||
* Author: 4sure
|
* Author: 4sure
|
||||||
* Author URI: https://4sure.com.au
|
* Author URI: https://4sure.com.au
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,11 @@ class Avada_dynamic_lightbox_updater {
|
||||||
if( property_exists( $transient, 'checked') ) { // Check if transient has a checked property
|
if( property_exists( $transient, 'checked') ) { // Check if transient has a checked property
|
||||||
if( $checked = $transient->checked ) { // Did WordPress check for updates?
|
if( $checked = $transient->checked ) { // Did WordPress check for updates?
|
||||||
$this->get_repository_info(); // Get the repo info
|
$this->get_repository_info(); // Get the repo info
|
||||||
$out_of_date = version_compare( $this->github_response['tag_name'], $checked[$this->basename], 'gt' ); // Check if we're out of date
|
if( is_array($this->github_response) && !empty($this->github_response['tag_name']) && !empty($checked[$this->basename]) ) { // Check response
|
||||||
|
$out_of_date = version_compare( $this->github_response['tag_name'], $checked[$this->basename], 'gt' ); // Check if we're out of date
|
||||||
|
} else {
|
||||||
|
$out_of_date = false;
|
||||||
|
}
|
||||||
if( $out_of_date ) {
|
if( $out_of_date ) {
|
||||||
$new_files = $this->github_response['zipball_url']; // Get the ZIP
|
$new_files = $this->github_response['zipball_url']; // Get the ZIP
|
||||||
$slug = current( explode('/', $this->basename ) ); // Create valid slug
|
$slug = current( explode('/', $this->basename ) ); // Create valid slug
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue