Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions woocommerce-gateway-payfast.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Version: 1.7.3
* Requires at least: 6.7
* Tested up to: 6.8
* WC requires at least: 10.0
* WC tested up to: 10.2
* WC requires at least: 10.1
* WC tested up to: 10.3
* Requires PHP: 7.4
* PHP tested up to: 8.3
*
Expand All @@ -35,7 +35,7 @@

require_once plugin_basename( 'includes/class-wc-gateway-payfast.php' );
require_once plugin_basename( 'includes/class-wc-gateway-payfast-privacy.php' );
load_plugin_textdomain( 'woocommerce-gateway-payfast', false, trailingslashit( dirname( plugin_basename( __FILE__ ) ) ) );

Check failure on line 38 in woocommerce-gateway-payfast.php

View workflow job for this annotation

GitHub Actions / test

PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.
add_filter( 'woocommerce_payment_gateways', 'woocommerce_payfast_add_gateway' );
}
add_action( 'plugins_loaded', 'woocommerce_payfast_init', 0 );
Expand Down
Loading