From c891e68b161fb6a221b5e8481df00fea1ae44cc3 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 30 Mar 2026 15:12:59 +0000 Subject: [PATCH] Fix Plugin Check warnings: remove load_plugin_textdomain, prefix global variables - Remove deprecated load_plugin_textdomain() call (auto-loaded since WP 4.6) - Prefix all global variables in themes.php with breznflow_ for WPCS compliance Co-Authored-By: Claude Opus 4.6 --- includes/Admin/views/themes.php | 30 +++++++++++++++--------------- includes/Core.php | 3 +-- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/includes/Admin/views/themes.php b/includes/Admin/views/themes.php index 9551601..c41a3fc 100644 --- a/includes/Admin/views/themes.php +++ b/includes/Admin/views/themes.php @@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) { use BreznFlow\Features\ThemeImporter; use BreznFlow\Features\ThemeRegistry; -$custom_themes = ThemeImporter::get_all(); +$breznflow_custom_themes = ThemeImporter::get_all(); ?>

@@ -32,8 +32,8 @@ $custom_themes = ThemeImporter::get_all(); __( 'Invalid file type. Please upload a .breznflow.json file.', 'breznflow' ), 'upload_failed' => __( 'File upload failed. Please try again.', 'breznflow' ), 'read_failed' => __( 'Could not read the uploaded file.', 'breznflow' ), @@ -42,10 +42,10 @@ $custom_themes = ThemeImporter::get_all(); ? urldecode( sanitize_text_field( wp_unslash( $_GET['message'] ) ) ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended : __( 'Theme validation failed.', 'breznflow' ), ); - $msg = $messages[ $error_code ] ?? __( 'An error occurred.', 'breznflow' ); + $breznflow_msg = $breznflow_messages[ $breznflow_error_code ] ?? __( 'An error occurred.', 'breznflow' ); ?>
-

+

@@ -81,10 +81,10 @@ $custom_themes = ThemeImporter::get_all(); - $bf_theme_name ) : ?> + $breznflow_theme_name ) : ?> - - + + @@ -98,7 +98,7 @@ $custom_themes = ThemeImporter::get_all();

- +

@@ -111,11 +111,11 @@ $custom_themes = ThemeImporter::get_all(); - + - - - + + +