16 Commits

Author SHA1 Message Date
coraislovely-code df7a6f78ba Align the text domain with the plugin slug
The domain has been 'comiceasel' since 2012 while the wordpress.org slug is
'comic-easel'. Language packs from translate.wordpress.org are keyed to the
slug, so they could never load; no working translation ever shipped against
the old domain. Renames the domain in every gettext call, in
load_plugin_textdomain(), in both Text Domain headers, and on the lang/
template files, which already carried comic-easel domain markers internally.

Option keys, admin page slugs, nonce actions and style handles that share the
comiceasel prefix are deliberately left alone; only the $domain argument moved.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-13 17:48:00 -04:00
coraislovely-code 0180c26a1a Escape output on the admin, import and meta box screens
Same pass over the wp-admin screens: _e() becomes esc_html_e() (esc_attr_e()
inside attribute values), echoed __() becomes esc_html__(), and the scanned
paths, filenames and term ids they interpolate get esc_html().

Also gives the taxonomy filter dropdown a real translatable string; it built
its label by concatenation, so it had no text domain and could not be
translated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-13 17:36:36 -04:00
coraislovely-code 8f52144eff Harden database queries and request input
Co-authored-by: gpt-5.6-sol <noreply@openai.com>
2026-08-03 10:57:47 -04:00
coraislovely-code 74ee11a91d Refuse to run when loaded outside WordPress
None of the plugin's PHP files checked that they were loaded through
WordPress, so requesting one directly executed it with none of core loaded.
The result is a fatal error on the first undefined function, which depending
on the server's display_errors setting discloses the filesystem path and
details of the PHP configuration.

Add the standard guard to every file. Files opening with PHP get it as their
first statement, after the plugin header comment in the main file, which
WordPress parses and which must stay put. The admin page templates that open
with markup get it as a leading one-line block, with no whitespace before it
that would break header output.

Also required by the WordPress.org plugin guidelines.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 14:31:00 -04:00
coraislovely-code a9baa5f8c8 Fix PHP 8.x deprecations and incompatibilities
- Replace deprecated ${var} string interpolation with {$var} (deprecated
  in PHP 8.2) in ceo-import.php and widgets/comic-calendar.php
- Remove default value from optional-before-required parameter $empty in
  ceo_chapters_add_column_value() (deprecated in PHP 8.0)
- Pass explicit $flags to html_entity_decode() in displaycomic.php, since
  the default changed in PHP 8.1
- Convert PHP4-style constructor in functions/casthover.php to
  __construct() (PHP4-style constructors removed in PHP 8.0)

All files now pass php -l on PHP 8.5 and a PHPCompatibility scan with
testVersion 8.0- with zero errors and zero warnings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 12:22:48 -04:00
Philip M. Hofer (Frumph) 0b69c88c53 Update ceo-import.php
(is_multisite) to (is_multisite())
2024-05-29 09:34:04 -07:00
Frumph 4f1a0572e5 removed lowercase y mask, test complete 2016-11-26 10:37:38 -08:00
Frumph 1a07329b54 adjustment to y mask 2016-11-26 10:30:54 -08:00
Frumph f53f54ace9 added mask for digit y year 2016-11-26 10:27:31 -08:00
Frumph 1e67f64d3d A huge plethora of language translation fixes courtesy of @JN_Squire for pushing me to fix them 2016-09-30 13:45:58 -07:00
Frumph 974cc4f28e Fixed some localization strings for language translation 2013-08-07 16:40:25 -07:00
Frumph d4a6d07169 Import fix for WPMS/WPMU, use network_site_url() instead of home_url() for is_multisite() installs, shortcode fix for ordering 2013-07-18 18:07:04 -07:00
Frumph e89ca6dd16 more error handling and fixed an error message issue 2013-06-29 13:56:12 -07:00
Frumph bccbf663b5 Introducing Comic Easel -> Import (bulk comic upload) 2013-04-29 13:27:50 -07:00
Frumph 75d2ae2576 Possible Fix for the_content and RSS feeds w/comic images 2012-07-02 06:02:29 -07:00
Frumph 2f37a88d7a Start of Import functions, adjustment to last post modified to include the comic post type; do not display related comics in the feed or archive/search; use 'hovertext' as well as 'comic-hovertext' for those using the hovertext from comicpress migrates; adjustment to admin meta autosave stuff; generated rewrite rules for calendar dates for /comic/2012 date archive 2012-07-01 23:59:34 -07:00