mirror of
https://github.com/4suredev/Avada-Custom-Visual-Builder-Button.git
synced 2025-11-24 23:06:20 +08:00
Compare commits
No commits in common. "main" and "1.0.7" have entirely different histories.
2 changed files with 7 additions and 6 deletions
|
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: 4sure - Avada Button Shortcode
|
||||
* Plugin URI: https://4sure.com.au
|
||||
* Description: Adds Avada button shortcodes to the classic editor
|
||||
* Version: 1.0.8
|
||||
* Version: 1.0.7
|
||||
* Author: 4sure
|
||||
* Requires PHP: 7.2
|
||||
* Requires at least: 5.8
|
||||
|
|
|
|||
|
|
@ -60,14 +60,15 @@ class Custom_visual_builder_button_updater {
|
|||
}
|
||||
public function modify_transient( $transient ) {
|
||||
if( property_exists( $transient, 'checked') ) { // Check if transient has a checked property
|
||||
if( $checked = $transient->checked ) { // Did WordPress check for updates?
|
||||
if( $transient->checked ) { // Did WordPress check for updates?
|
||||
$checked = $transient->checked;
|
||||
$this->get_repository_info(); // Get the repo info
|
||||
if( is_array($this->github_response) && !empty($this->github_response['tag_name']) && !empty($checked[$this->basename]) ) { // Check response
|
||||
if (!empty($checked[$this->basename])) {
|
||||
$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 != false ) {
|
||||
$new_files = $this->github_response['zipball_url']; // Get the ZIP
|
||||
$slug = current( explode('/', $this->basename ) ); // Create valid slug
|
||||
$plugin = array( // setup our plugin info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue