From 09b61cc950de787ae8ae9ac932d99cb87cfac42e Mon Sep 17 00:00:00 2001 From: David Keane Date: Sat, 30 May 2026 02:51:09 +0100 Subject: [PATCH] =?UTF-8?q?feat(0.7.0):=20WordPress.org=20submission=20pre?= =?UTF-8?q?p=20=E2=80=94=20full=20Plugin=20Check=20clean?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ran the official Plugin Check (PCP) against v0.6.3 — surfaced 169 issues. This release closes all of them so the plugin is submission- ready for the WordPress.org plugin directory. Branding - Plugin Name renamed: "Radio" → "RangerHQ Radio". Removes the trademarked "SomaFM" from the plugin name surface (PCP trademarked_term). Lines up with the RangerHQ plugin family. SomaFM credited in Description + About as the data source. Folder/slug stays `a-radio` — no install path changes; existing user_meta keys (radio_state / radio_history / radio_favourites) untouched. - Text Domain header renamed: `radio` → `a-radio` (matches slug). - Requires at least bumped: 5.0 → 5.3 (matches wp_date() usage). - File docstring header dropped "SomaFM" from prominent line. Code (mass-mechanical) - 134 i18n call sites rewritten from `'radio'` text domain to `'a-radio'` across 7 PHP files. Single sed pass on the unique pattern `, 'radio' )` — the 6 menu-slug `'radio'` references in add_*_page() were correctly left alone (those are URL slugs). Security - 8 × MissingUnslash + 8 × InputNotSanitized in the v0.5.0 history endpoints (radio_ajax_log_track, radio_ajax_toggle_favourite). All four $_POST['artist|title|station|station_id'] access points are now wrapped sanitize_text_field( wp_unslash( $_POST['…'] ) ) (or sanitize_key for station_id) at the access point. Translator comments - 6 × printf / sprintf calls with placeholders now carry /* translators: ... */ comments. Pop-out window refactor - Inline stylesheets, + <?php + /* translators: %s = currently playing station name */ + printf( esc_html__( 'Radio — %s', 'a-radio' ), esc_html( $station['name'] ) ); + ?> +
-

- +

+
@@ -305,7 +302,7 @@ function radio_render_popout_page() { - +

@@ -315,19 +312,19 @@ function radio_render_popout_page() {
- - + %
- +