Skip to content

Commit

Permalink
change require_once to require in block.
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishgurung committed Oct 1, 2024
1 parent 25b9789 commit 33c63e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/blocks/gateways/abstract-omise-block-apm.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function is_active() {
*/
public function get_payment_method_script_handles() {
if ( ! wp_script_is( 'wc-omise-one-click-apms-payments-blocks', 'enqueued' ) ) {
$script_asset = require_once __DIR__ . '/../assets/js/build/omise-one-click-apms.asset.php';
$script_asset = require __DIR__ . '/../assets/js/build/omise-one-click-apms.asset.php';
wp_enqueue_script(
"wc-omise-one-click-apms-payments-blocks",
plugin_dir_url( __DIR__ ) . 'assets/js/build/omise-one-click-apms.js',
Expand Down
2 changes: 1 addition & 1 deletion includes/blocks/gateways/omise-block-credit-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function get_payment_method_script_handles() {
if ($this->is_active()) {
$script_asset_path = __DIR__ . '/../assets/js/build/credit_card.asset.php';
$script_asset = file_exists( $script_asset_path )
? require_once( $script_asset_path )
? require $script_asset_path
: [
'dependencies' => [],
'version' => '1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion languages/omise-ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -587,5 +587,5 @@ msgid "Please select bank below"
msgstr "以下から銀行をお選びください"

#: omise-woocommerce.php:66
msgid "Update your plugin to the latest version to enable Secure Form and maximize the security of your customers’ information. You will need to re-customize the credit card checkout form after the upgrade. <a target='_blank' href='https://www.omise.co/woocommerce-plugin'>Learn how to enable Secure Form</a>."
msgid "Critical plugin update released: Now compatible with WooCommerce block, and enforces mandatory secure form checkout. Upgrade immediately and re-customize your credit card form to ensure compliance and enhanced customer data protection."
msgstr "プラグインを最新バージョンにアップデートし、顧客情報の安全な管理に必要なSecure Formを有効にしてください。アップデート後、クレジットカードの決済フォームを再度カスタマイズする必要があります。<a target='_blank' href='https://www.omise.co/woocommerce-plugin'>Secure Formを有効にする方法はこちらをご確認ください</a>。"

0 comments on commit 33c63e7

Please sign in to comment.