Skip to content

Commit

Permalink
fix missing get_admin_url method and wrong method call in template.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisnissle committed Dec 25, 2021
1 parent 46487b1 commit ebd511f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion screens/screen-notice-expire.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<p class="alignright">
<a class="" href="https://vendidero.de/vendidero-service" target="_blank"><?php _e( 'Learn more', 'vendidero-helper' );?></a> |
<a class="" href="<?php echo VD()->get_admin_url(); ?>"><?php _e( 'See license details', 'vendidero-helper' );?></a> |
<a class="" href="<?php echo VD()->get_helper_url(); ?>"><?php _e( 'See license details', 'vendidero-helper' );?></a> |
<a href="<?php echo esc_url( $dismiss_url );?>" class="vendidero-helper-dismiss"><?php _e( 'Hide this notice', 'vendidero-helper' ); ?></a>
</p>
<div class="clear"></div>
Expand Down
8 changes: 6 additions & 2 deletions vendidero-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Vendidero Helper
* Plugin URI: http://vendidero.de
* Description: Will help vendidero users to manage their licenses and receive automatic updates
* Version: 2.1.2
* Version: 2.1.3
* Author: Vendidero
* Author URI: http://vendidero.de
* License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Expand All @@ -25,7 +25,7 @@ final class Vendidero_Helper {
*/
protected static $_instance = null;

public $version = '2.1.2';
public $version = '2.1.3';

/**
* @var VD_API $api
Expand Down Expand Up @@ -115,6 +115,10 @@ public function get_helper_url() {
return is_multisite() ? network_admin_url( 'index.php?page=vendidero' ) : admin_url( 'index.php?page=vendidero' );
}

public function get_admin_url() {
return $this->get_helper_url();
}

public function plugin_action( $filename ) {
foreach( $this->get_products() as $product ) {
if ( $product->file === $filename ) {
Expand Down

0 comments on commit ebd511f

Please sign in to comment.