Skip to content

Commit

Permalink
1.3 RC
Browse files Browse the repository at this point in the history
  • Loading branch information
amin0_000 committed Apr 22, 2015
1 parent 2a5d95e commit f49abd3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ function sample_license_management_page() {
);

// Send query to the license manager server
$response = wp_remote_get(add_query_arg($api_params, YOUR_LICENSE_SERVER_URL), array('timeout' => 20, 'sslverify' => false));
$query = esc_url(add_query_arg($api_params, YOUR_LICENSE_SERVER_URL), array('timeout' => 20, 'sslverify' => false));
$response = wp_remote_get($query);

// Check for error in the response
if (is_wp_error($response)){
Expand Down Expand Up @@ -89,7 +90,8 @@ function sample_license_management_page() {
);

// Send query to the license manager server
$response = wp_remote_get(add_query_arg($api_params, YOUR_LICENSE_SERVER_URL), array('timeout' => 20, 'sslverify' => false));
$query = esc_url(add_query_arg($api_params, YOUR_LICENSE_SERVER_URL), array('timeout' => 20, 'sslverify' => false));
$response = wp_remote_get($query);

// Check for error in the response
if (is_wp_error($response)){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function set_pagination_args( $args ) {

// redirect if page number is invalid and headers are not already sent
if ( ! headers_sent() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) && $args['total_pages'] > 0 && $this->get_pagenum() > $args['total_pages'] ) {
wp_redirect( add_query_arg( 'paged', $args['total_pages'] ) );
wp_redirect( esc_url(add_query_arg( 'paged', $args['total_pages'] )) );
exit;
}

Expand Down
5 changes: 4 additions & 1 deletion software-license-manager/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.tipsandtricks-hq.com/software-license-manager-plugin-fo
Tags: license key, serial key, manager, license, serial, key, selling, sell, license activation, manage license
Requires at least: 3.0
Tested up to: 4.2
Stable tag: 1.2
Stable tag: 1.3
License: GPLv2 or later

Create and manage license keys for your software applications easily
Expand Down Expand Up @@ -43,6 +43,9 @@ https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress

== Changelog ==

= 1.3 =
* Added some sanitization.

= 1.2 =
* Fixed a bug with the bulk delete license operation.

Expand Down
4 changes: 2 additions & 2 deletions software-license-manager/slm_bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Software License Manager
Version: v1.2
Version: v1.3
Plugin URI: https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress
Author: Tips and Tricks HQ
Author URI: https://www.tipsandtricks-hq.com/
Expand All @@ -14,7 +14,7 @@

//Short name/slug "SLM" or "slm"

define('WP_LICENSE_MANAGER_VERSION', "1.2");
define('WP_LICENSE_MANAGER_VERSION', "1.3");
define('WP_LICENSE_MANAGER_DB_VERSION', '1.2');
define('WP_LICENSE_MANAGER_FOLDER', dirname(plugin_basename(__FILE__)));
define('WP_LICENSE_MANAGER_URL', plugins_url('',__FILE__));
Expand Down

0 comments on commit f49abd3

Please sign in to comment.