remove non ASCII chars
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
| @@ -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) | ||||
| |-------------------------------------------------------------------------- | ||||
| */ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user