Skip to content

Commit

Permalink
Merge pull request #25 from razorpay/issue_fix
Browse files Browse the repository at this point in the history
[SI-6198] Issue fix
  • Loading branch information
sonyy-m authored Jun 1, 2022
2 parents 0a2988f + 7456972 commit dae1c32
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions includes/rzp-payment-buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function get_sortable_columns()

function column_title($item)
{
$paged = isset(($_REQUEST['paged'])) ? $_REQUEST['paged']:1;
$paged = isset($_REQUEST['paged']) ? $_REQUEST['paged']:1;
$actions = array(
'view' => sprintf('<a href="?page=%s&btn=%s&type=%s&paged=%s">View</a>','rzp_button_view', $item['id'],'payment',$paged),
);
Expand All @@ -156,7 +156,7 @@ function prepare_items()
}

//Retrieve $customvar for use in query to get items.
$customvar = (isset(($_REQUEST['status'])) ? sanitize_text_field($_REQUEST['status']) : '');
$customvar = (isset($_REQUEST['status']) ? sanitize_text_field($_REQUEST['status']) : '');

$payment_page = $this->get_items($customvar, $per_page);
$count = count($payment_page);
Expand Down
4 changes: 2 additions & 2 deletions includes/rzp-subscription-buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function get_sortable_columns()

function column_title($item)
{
$paged = isset(($_REQUEST['paged'])) ? $_REQUEST['paged']:1;
$paged = isset($_REQUEST['paged']) ? $_REQUEST['paged']:1;
$actions = array(
'view' => sprintf('<a href="?page=%s&btn=%s&type=%s&paged=%s">View</a>','rzp_button_view', $item['id'],'subscription',$paged),
);
Expand All @@ -157,7 +157,7 @@ function prepare_items()
}

//Retrieve $customvar for use in query to get items.
$customvar = (isset(($_REQUEST['status'])) ? sanitize_text_field($_REQUEST['status']) : '');
$customvar = (isset($_REQUEST['status']) ? sanitize_text_field($_REQUEST['status']) : '');

$payment_page = $this->get_items($customvar, $per_page);
$count = count($payment_page);
Expand Down
2 changes: 1 addition & 1 deletion razorpay-payment-buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Razorpay Payment Button
* Plugin URI: https://github.com/razorpay/payment-button-wordpress-plugin
* Description: Add a Razorpay Payment Button (Donate Now, Buy Now, Support Now and more) to your website and start accepting payments via Credit/Debit cards, Netbanking, UPI, Wallets, Pay later etc. instantly.
* Version: 2.4.3
* Version: 2.4.4
* Author: Razorpay
* Author URI: https://razorpay.com
*/
Expand Down
5 changes: 4 additions & 1 deletion razorpay-sdk/Razorpay.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php

// Include Requests only if not already defined
const REQUESTS_SILENCE_PSR0_DEPRECATIONS = true;
if (!defined('REQUESTS_SILENCE_PSR0_DEPRECATIONS'))
{
define('REQUESTS_SILENCE_PSR0_DEPRECATIONS', true);
}

if (class_exists('WpOrg\Requests\Autoload') === false)
{
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: razorpay
Tags: Payment gateway, Donate button, UPI/credit/debit card, Payment plugin, India, e-commerce, education.
Tested up to: 5.9.3
Stable tag: 2.4.3
Stable tag: 2.4.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -98,6 +98,11 @@ Connect your WordPress website with your Razorpay account and you're all ready t

== Changelog ==

= 2.4.4 =
* Fix fatal error: Cannot use isset() on the result of an expression
* Fixed 'constant already defined' error in sdk
* Tested upto WordPress 5.9.3

= 2.4.3 =
* Updated Razorpay PHP SDK
* Tested upto WordPress 5.9.3
Expand Down

0 comments on commit dae1c32

Please sign in to comment.