From 6fa42e8f45d15ad8c97e20e3992e491ad027ef88 Mon Sep 17 00:00:00 2001 From: Joao Figueiredo Date: Mon, 2 Jun 2025 00:44:43 +0100 Subject: [PATCH] remove non ASCII chars --- wp-spaceapi-consumer-style.css | 4 ++-- wp-spaceapi-consumer.php | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-spaceapi-consumer-style.css b/wp-spaceapi-consumer-style.css index 5e6b5bf..a3b7b4c 100644 --- a/wp-spaceapi-consumer-style.css +++ b/wp-spaceapi-consumer-style.css @@ -1,11 +1,11 @@ -/* space-status.css – styles the indicator as a pill‑shaped button */ +/* space-status.css - styles the indicator as a pill-shaped button */ .space-status-indicator { display:inline-flex; align-items:center; gap:0.4em; padding:0.25em 0.75em; - border-radius:1em; /* fully‑rounded corners */ + border-radius:1em; /* fully-rounded corners */ font-size:0.95em; font-weight:600; line-height:1; diff --git a/wp-spaceapi-consumer.php b/wp-spaceapi-consumer.php index 73b4ce8..c3b38a3 100644 --- a/wp-spaceapi-consumer.php +++ b/wp-spaceapi-consumer.php @@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) { |-------------------------------------------------------------------------- | Constants are expected in wp-spaceapi-consumer-config.php located in the same | directory. If that file is missing, sane defaults are used so the plugin -| still works out‑of‑the‑box. +| still works out-of-the-box. */ $config_file = plugin_dir_path( __FILE__ ) . 'wp-spaceapi-consumer-config.php'; @@ -37,7 +37,7 @@ if ( file_exists( $config_file ) ) { /* |-------------------------------------------------------------------------- -| Core – fetch & cache +| Core - fetch & cache |-------------------------------------------------------------------------- */ @@ -45,8 +45,8 @@ if ( file_exists( $config_file ) ) { * Retrieves space open status (boolean) with transient caching. * * Supported JSON payloads (any case): - * – true / false (bare boolean) - * – {"state": {"open": true}} (SpaceAPI standard) + * - true / false (bare boolean) + * - {"state": {"open": true}} (SpaceAPI standard) * * @return bool True if open, false if closed (or on error). */ @@ -117,7 +117,7 @@ add_shortcode( 'door_status', 'ssi_shortcode' ); function ssi_admin_bar( WP_Admin_Bar $bar ) : void { if ( ! current_user_can( 'read' ) ) { - return; // Logged‑in users only. + return; // Logged-in users only. } $open = ssi_get_status(); @@ -135,7 +135,7 @@ add_action( 'admin_bar_menu', 'ssi_admin_bar', 1000 ); /* |-------------------------------------------------------------------------- -| Front‑end inline CSS (kept minimal) +| Front-end inline CSS (kept minimal) |-------------------------------------------------------------------------- */ @@ -157,7 +157,7 @@ add_action( 'admin_enqueue_scripts', 'ssi_enqueue_assets' ); // so the Admin Bar /* |-------------------------------------------------------------------------- -| WP‑CLI command (optional) +| WP-CLI command (optional) |-------------------------------------------------------------------------- */