From 2b7f09421865ba59bedfa2c59445f9fdeea83269 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Thu, 27 Jun 2024 11:11:20 +0100 Subject: [PATCH] Fix wrong textdomain --- composer.json | 2 +- .../lib/class-php-compatibility-checker.php | 76 +++++++++---------- plugin/wpengine-phpcompat.php | 2 +- src/js/include/render.js | 4 +- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/composer.json b/composer.json index 3c716a8..ed6ead0 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,6 @@ } }, "scripts": { - "makepot": "./vendor/bin/wp i18n make-pot plugin --slug=wpe-php-compat" + "makepot": "./vendor/bin/wp i18n make-pot plugin --slug=php-compatibility-checker" } } diff --git a/plugin/lib/class-php-compatibility-checker.php b/plugin/lib/class-php-compatibility-checker.php index fd334d9..9b6c40d 100644 --- a/plugin/lib/class-php-compatibility-checker.php +++ b/plugin/lib/class-php-compatibility-checker.php @@ -59,7 +59,7 @@ public function enqueue_scripts( $hook_suffix = '' ) { function() { ?>
-

PHP Compatibility Checker. Please run make build to build assets.', 'wpe-php-compat' ) ); ?>

+

PHP Compatibility Checker. Please run make build to build assets.', 'php-compatibility-checker' ) ); ?>

page = add_submenu_page( 'tools.php', esc_html__( 'PHP Compatibility', 'wpe-php-compat' ), esc_html__( 'PHP Compatibility', 'wpe-php-compat' ), WPEPHPCOMPAT_CAPABILITY, WPEPHPCOMPAT_ADMIN_PAGE_SLUG, array( self::instance(), 'scan_page' ) ); + $this->page = add_submenu_page( 'tools.php', esc_html__( 'PHP Compatibility', 'php-compatibility-checker' ), esc_html__( 'PHP Compatibility', 'php-compatibility-checker' ), WPEPHPCOMPAT_CAPABILITY, WPEPHPCOMPAT_ADMIN_PAGE_SLUG, array( self::instance(), 'scan_page' ) ); } /** @@ -303,21 +303,21 @@ public function scan_page() { ?>
-

+

-

-

+

+


-

+

- + @@ -325,11 +325,11 @@ public function scan_page() {
-
- +
+
- +
@@ -344,15 +344,15 @@ public function scan_page() {