=== ICS Calendar Changelog === = 12.1.3.2 - 2026.09.03 = * Miscellaneous: * Fixed "Warning: Undefined variable `$ics_data`" error on views that use early rendering. * Bumped 'tested up to' to 7.1. = 12.1.3.1 - 2026.08.04 = * Week view: * Corrected a long-standing CSS bug that had no noticeable effect until the changes in 12.1.2 were introduced. = 12.1.3 - 2026.07.28 = * Basic view: * Fixed a bug that prevented toggle from working when user clicks on an event title. (Clicking the date or time worked, but the title itself did not.) * List and Basic views: * Fixed pagination error when "today" has multiple pages' worth of events. * Miscellaneous: * Added new date-specific CSS class to events. * Resolved conflicting `z-index` values for event hover. = 12.1.2 - 2026.07.14 = * Week view: * Fixed issue that prevented events from displaying when displaying the current week only or limiting the display to fewer than 8 days. * CSS: * Changed `z-index` on event hover to avoid conflict with Modern Events Calendar plugin. * Miscellaneous: * Modified `R34ICS::parse_attach_array()` method to support returning an array in addition to the default string output option. = 12.1.1.1 - 2026.07.01 = * AJAX: * Adjusted minimum refresh time from 5 minutes to 2 minutes, and added a 10-second delay, to account for any lag in clearing the cache. (Actual refresh rate is based on the **Transient (cache) expiration** setting.) * Print: * Added restrictions on allowed HTML attributes passed into print wrapper. = 12.1.1 - 2026.06.26 = * Admin: * Fixed issue of a large number of irrelevant, version-related admin notices appearing on initial installation. * Modified `r34ics_admin_full_access()` function, adding the `$multisite_check` parameter. This allows for conditionally checking for Multisite Super Admin access. Prior to this change, in a Multisite configuration, only network Super Admins could access ICS Calendar settings. All settings are site-specific, so site-specific Administrators should be allowed to access them. The conditional retains the ability to check for Super Admin access if needed. (Presently this is only needed for the License tab in the Pro version.) * Appearance settings: * Added "Give ICS Calendar credit" option. (This is turned OFF by default.) Adds a small "Powered by ICS Calendar" credit link below each calendar. Thank you for your support! * Shortcode parameters: * Added `eventdescdateformat` parameter to allow different formatting for dates in the event description hover box/lightbox than in the main calendar view. If omitted, will fall back to `format` value or default for the view. * Miscellaneous: * Added `r34ics_display_calendar_before_render_template` and `r34ics_display_calendar_hooks_render_template` on early render. * i18n: * Updated translation strings. = 12.1.0 - 2026.06.20 = * Script loading: * Re-introduced conditional enqueuing of static assets (JavaScript and CSS files), which had been removed in an earlier update due to inconsistent behavior. This new method has been tested against the 40 most popular themes in the repository and appears to work reliably in all cases. * Added `r34ics_enqueue_conditional_scripts` action to `R34ICS::enqueue_scripts()` method, to provide a way for view-specific scripts to still be enqueued when the remainder of the method is being bypassed because the general scripts have already been enqueued. * Modified script loading in `print.php` template to account for the above changes. = 12.0.10 - 2026.06.18 = * Event descriptions: Added `eventdesclinkfix` shortcode parameter. Changed `r34ics_maybe_make_clickable()` function so that, when `eventdesclinkfix` is used, it will return the text string as-is if it contains _any_ HTML. _The assumption here is that descriptions that contain HTML will already have any URLs wrapped in the requisite `a` tags._ = 12.0.9.2 - 2026.06.07 = * Changed `id` attribute on AJAX container (appended `-ajax`) so it isn't redundant with the `id` of the calendar itself after loading. Note: Due the fact that its single change would serve no useful purpose on its own, version 12.0.9.1 was not released in the public WordPress repository, but was included in the ICS Calendar Pro 6.1.10 update. = 12.0.9.1 - 2026.06.02 = * Removed auto-redirect to settings page on activation. = 12.0.9 - 2026.06.02 = * Security: * Added extra validation for `htmltag*` shortcode parameters. * Compatibility: * Removed backwards compatibility for WordPress 4.9 (including removal of `compatibility.php` file, which replicated newer core WordPress functions required by ICS Calendar). **Minimum required WordPress version is now 5.3.** = 12.0.8.6 - 2026.05.29 * Fixed bug that caused "Welcome to version 12.0" message to reappear with each update. * Fixed potential fatal error with debug mode on AJAX loading. * Modified logic to prevent auto-redirect to ICS Calendar admin page on update/activation, so it will only run on the first activation after installation. = 12.0.8.5 - 2026.05.27 = * Added support for custom ICS Calendar properties in the feed, using the `X-R34ICS-` prefix. * Changed default value for `SEQUENCE` from an empty string to 0 when parsing events from the feed. * Updated admin notice handling, including making UTC timezone notice non-dismissible. = 12.0.8.4 - 2026.05.19 = * Added a safeguard in `r34ics_get_vtimezone()` to prevent a fatal error if the site does not have a valid region/city name timezone set. * Modified `r34ics_filter_the_content()` (used by the `R34ICS::event_description_html()` method to prepare event description HTML output) to address a situation where the ICS feed includes an event description containing HTML that has been truncated in the middle of a tag. Previously, this would cause an HTML syntax error that would prevent the rest of the page from rendering properly, starting at the point of the error. Added a simple check for a matching number of greater-than and less-than symbols in the content. (This is not full HTML validation, but it addresses the most egregious scenario that breaks rendering.) If the function detects a mismatch, all HTML is stripped from the output. = 12.0.8.3 - 2026.05.15 = * Introduced `r34icsymd` parameter to function similarly to `r34icsym` but including the date along with the year and month. This is part of an ongoing process of updating how `r34icsym` functions for loading calendar pages with an arbitrary date displayed. Presently this is used exclusively by ICS Calendar Pro Full view. * Updated tags for Plugin Directory. = 12.0.8.2 - 2026.05.11 = * Plugin conflicts: * Added `r34ics_resolve_conflicts` action to allow for extensible conflict resolution. * Replaced experimental workarounds for conflict with [Permalink Manager](https://wordpress.org/plugins/permalink-manager/) and with code supplied by the developer of that plugin. * Shortcode parameters: * Continued development of enhanced capabilities for `r34icsym` shortcode parameter. This is mainly used by Full view in ICS Calendar Pro at present, but it will be used to refactor how this query string variable is used to dynamically request a specific date range in all views in a future update. * Miscellaneous: * Minor code refactoring. = 12.0.8.1 - 2026.05.08 = * Print Button: * Changed CSS `margin` and `max-width` to allow for 1 cm margin on paper. * Fixed "PHP Deprecated: preg_replace(): Passing null to parameter #3" notice relating to use of `wp_kses_post()` function. = 12.0.8 - 2026.05.05 = * Updated `ua` parameter to support a value of `append`. Set `ua="true"` to _replace_ ICS Calendar's custom User Agent string with a "real" web browser UA string. Set `ua="append"` to _append_ a real web browser UA string to the default ICS Calendar UA string. You can also enter custom text as the value for `ua` and that exact string will be sent as the UA string with requests. _Note: This parameter is intended for use only when source calendars reject requests with the default UA string._ * Additional changes to `template_redirect` handling to resolve a conflict with the [Permalink Manager](https://wordpress.org/plugins/permalink-manager/) plugin. (Expands upon changes introduced in 12.0.7.1.) = 12.0.7.1 - 2026.04.29 = * Added `r34ics_get_vtimezone()` function for generating iCalendar `VTIMEZONE` data including Daylight Saving Time start/end rules. Intended to be used by functions and methods that output new .ics files. * Changed priority for call to `template_redirect` hook (used for individual event .ics downloads and printing calendars) to resolve a conflict with the [Permalink Manager](https://wordpress.org/plugins/permalink-manager/) plugin. * Updated individual event download .ics format to include `VTIMEZONE` and remove `FREEBUSY`, to resolve issues importing events into Google Calendar. = 12.0.7 - 2026.04.27 = * Admin: * Added two new settings (under **Loading** on the ICS Calendar Settings page): **Increase time limit when rendering calendars** and **Increase request timeout when rendering calendars**. If your calendars are intermittently failing to load due to time limits, adjusting these settings may resolve the issue. Note that long loading times may indicate connectivity problems between your web server and the source calendar server, or may be the result of excessively large amounts of calendar data. In some cases, you may need to purge old events from your source calendar. * Feed loading: * Modified conditional for transient caching of feeds. Previously it would cache any non-empty response. Now it caches only if the response body begins with `BEGIN:VCALENDAR` (that is, it's a valid ICS feed). * i18n: * Updated translation strings. = 12.0.6 - 2026.04.01 = * Admin: * Minor CSS adjustments for WP 7.0 interface changes. * Month view: * Fixed bug in mobile view that would cause the date grid for past months to display incorrectly when `nomobile` was set. * Week view: * Fixed bug in mobile view that would cause the current week to reappear on scroll, after selecting a different week, in mobile Safari. This issue was specifically an error in the logic of a function that runs on resize, but was exacerbated by the fact that mobile Safari changes the window size on scroll, triggering a resize event. * Miscellaneous: * Bumped PHP requirement to 7.4. (8.0 or later is strongly recommended.) * Bumped 'tested up to' to 7.0. * Updated `readme.txt` content. * Vendors: * ics-parser: Merged [v. 3.5.1](https://github.com/u01jmg3/ics-parser/releases/tag/v3.5.1) changes into customized version of library. = 12.0.5.2 - 2026.03.23 = * AJAX: * Fixed bug that would cause the next upcoming event to be omitted in List and Basic views, when running PHP 7.4 or earlier. * Miscellaneous: * Began process of refactoring `r34ics_init()` JavaScript function to address issues when multiple calendars are displayed on the same page. Some logic in this function must run for _every_ calendar, and some of it should only run once per page. The logic that should only run once per page is being moved to a separate `r34ics_init_once()` function. = 12.0.5.1 - 2026.03.11 = * Basic view: * Fixed feed color coding regression bug introduced in 12.0.0. = 12.0.5 - 2026.03.09 = * Admin: * Added check to only display the initial Quick Start Guide alert if there are no saved calendar feed URLs. * Functions: * Modified `r34ics_maybe_make_clickable()` to fix regression in converting raw image URLs into `img` tags; added support for WebP image URLs. * i18n: * Added Icelandic. = 12.0.4.2 - 2026.02.27 = * Miscellaneous: * Modified recursion conditional in `R34ICS::_url_get_contents()` method to only check for specific text strings in the response when the response code is _not_ 200. This should resolve possible erroneous redirections that occur if the text strings being checked appear in the ICS feed response content itself. * i18n: * Reworked `r34ics_i18n_symlinks()` to delete old translation files before copying or symlinking new file, to ensure changes are picked up. * Updated translation strings. = 12.0.4.1 - 2026.02.07 = * Miscellaneous: * Reverted the `redirection` change introduced in 12.0.4, as it seems to be breaking the custom redirection logic ICS Calendar already included. In the rare cases where a feed _does_ need `redirection` to be set to something other than 0, this can be done with custom PHP using the `r34ics_url_get_contents_request_args` filter. * i18n: * Added workaround logic for edge case with Loco Translate conflict fix (introduced in 12.0.3), for servers where the PHP `symlink()` function is not available. The plugin now checks for `symlink()`, falls back to `copy()` if needed, and if both fail, it displays an admin notice addressing the conflict with Loco Translate. * Updated translation strings. = 12.0.4 - 2026.02.02 = * Print Button: * Added logic to print the currently selected month or week in the print view. Previously, printing would revert to the initial month or week selection. * Several CSS modifications, including adjusting text size for list-type views vs. table-type views, and flattening list/basic pagination (all "pages" shown in print output). * Restored general print CSS media queries; changes for the print button introduced in v. 11.6.0 work _only_ with the print button, not when printing the full page with the browser's default printing. * Miscellaneous: * Changed `redirection` value in `R34ICS::_url_get_contents()` method from 0 to 5. May resolve some feed loading issues when the source returns an HTTP 302 redirect. * Refactored CSS. = 12.0.3.1 - 2026.01.21 = * Modified AJAX conditional in `R34ICS::shortcode()`, changed in 12.0.3, to handle undefined `$args['ajax']`. (Probably unnecessary since it's explicitly defined above, but best practice since there's a filter that can modify the contents of `$args`.) * Tweaked logic in `r34ics_is_html()` to resolve false negatives. * Updated new inline image logic in `r34ics_maybe_make_clickable()` to only run if there is no detected HTML in the string. In some instances the code was converting images that were already in an `img` tag. (The assumption here will be that if the string contains any HTML, the image will _already_ be in an `img` tag if that's the intention. = 12.0.3 - 2026.01.19 = * AJAX: * Made logic for determining whether or not to load the calendar via AJAX more explicit, to resolve an issue that was occurring in certain highly optimized setups involving caching and preloading (e.g. WP Rocket). * Block Editor: * Modified `r34ics_is_block_editor()` to more effectively limit the conditional check for `REST_REQUEST` constant. * Event downloads: * Fixed a bug that was causing incorrect event information to be downloaded under certain conditions, apparently affecting mainly Microsoft calendars. According to the [iCalendar spec](https://icalendar.org/New-Properties-for-iCalendar-RFC-7986/5-3-uid-property.html) the event UID property is supposed to be persistent, but in some cases (possibly pertaining to modified instances of recurring events) Microsoft calendars assign the same event a new UID each time the feed is reloaded. (There was also a bug in the plugin's logic that was causing the wrong event's data to get inserted into the download when this UID mismatch occurred, rather than just failing altogether.) This update resolves the mismatched data bug, as well as adding fallback logic to match events by title, start date/time and end date/time when no UID match is found in the feed. * Performance: * Added `r34ics_display_calendar_force_reload` filter to allow bypassing the new rate limit related restrictions added in 12.0.0. **Please do not use this filter unless you understand the performance impact it may have.** By default, ICS Calendar intentionally throttles how frequently requests are made to the source calendar. This is done both to improve your site performance and to avoid hitting source calendar providers' rate limits, which can result in HTTP 429 errors and failure to load your calendar. (In some extreme cases, providers may rate limit entire networks.) If you have any questions about whether or not it is appropriate to use this filter with your site, please [contact support](https://icscalendar.com/support) before proceeding. * Plugin conflicts: * Worked around conflict with Loco Translate plugin by creating symlinks to ICS Calendar's general language translation files with locale-specific names in the `WP_LANG_DIR` path when Loco Translate is active. (Normally, the general language files self-contained within ICS Calendar load directly, but Loco Translate overrides this functionality.) * Miscellaneous: * Refactored instances of directly checking the `active_plugins` core option to use the `is_plugin_active()` function instead. = 12.0.2 - 2026.01.16 = * Event descriptions: * Modified `r34ics_maybe_make_clickable()` function to convert raw image file URLs in event descriptions directly into HTML `img` tags, instead of clickable links. May be a useful workaround for including images in event descriptions for sources like Google Calendar and Microsoft 365, which do not make files directly accessible. _Note: The URL **must** be a direct URL to a publicly accessible image file, with a standard image extension (supported extensions: `.apng`, `.avif`, `.gif`, `.jpg`, `.jpeg`, `.png`, `.svg`). Using a URL that links to Google Drive, OneDrive, iCloud, Dropbox, etc. will not work, because those are permission-restricted "wrapper" page URLs, not the direct URLs of the files themselves. * Miscellaneous: * Added fallback values for possibly undefined keys in `R34ICS::display_calendar_date_range()` method. (There is no evidence that this was actually an issue but it's best practice and may help with resolving a date range issue affecting certain users.) * Added SVG tag support to `r34ics_color_key_allowed()` function to allow SVG images to be included in the legend (color key). Mainly used by ICS Calendar Pro for the Subscribe button. * Changed legend to use `--r34ics--element--events--color` text color (the same as events). * Other minor CSS tweaks. * Added `phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment` to a translation string in admin page to pass Plugin Check test. = 12.0.1 - 2026.01.06 = * Admin: Updated Pro version promo block. * JavaScript: Removed references to deprecated CSS class for toggle elements. * i18n: Updated translation strings. = 12.0.0.1 - 2026.01.05 = * Added conditional to avoid a potential fatal error in the `r34ics_scrub_duplicate_uids()` function. (This function runs only when the `fixredundantuids` parameter is set.) * Added `$force_reload` parameter to `R34ICS::display_calendar()` method. * Removed CSS that causes event time and title not to appear in description hover box on mobile. = 12.0.0 - 2025.12.29 = * Admin: * Added **Allow access to these ports** setting to allow defining custom HTTP ports for feed requests. Useful if your source calendar server uses a custom port number and you are having trouble retrieving the feeds. * Added **Pause Calendars** button (under Utilities) to temporarily shut off all ICS Calendar output on front-end pages. * Added **Register Customizer** setting to enable the Customizer on Block Themes, for users who may want to add their own custom CSS without editing their theme files. (Note: The WordPress core team is phasing out support for the Customizer so this may eventually stop working.) * Added `r34ics_admin_full_access()` function for Multisite-aware restriction of access to Administrator-only features, and `r34ics_admin_access()` function for configurable level of access to all admin features. * Changed default access level from Author to Editor; added **Minimum access role** setting to make this configurable. * Fixed issue with settings page loading scrolled partially after saving changes. * Fixed possible false negatives on valid feed URL status with ICS Feed URL Tester utility. * Refactored admin page template files. * Removed *Also reset all ICS Calendar settings* checkbox on *Clear Cached Calendar Data* utility for non-Administrators. * Removed *System Report* tab for non-Administrators, since only Administrators can access the System Report. * Various design and layout refinements on Settings and Help screens. * AJAX: * Removed **Always use AJAX to render calendars** option; AJAX is now automatic _unless_ `ajax="false"` is explicitly added to the shortcode. * Color: * Deprecated `whitetext` shortcode parameter. Use **Dark Mode** setting on ICS Calendar Settings page instead, or `darkmode="true"` on individual shortcodes. * Fixed some inconsistencies with text colors. * Lightened background tints of color-coded feed events for better text contrast. * CSS: * Extensively restructured CSS for greater efficiency (especially making use of the `:is()` pseudo-element). * Moved most color specifications to CSS variables for easier customization. * Updated handling of `word-break` and `hyphens` to eliminate vendor prefixes and undesirable `break-all` setting. * Developer: * Added `r34ics_url_get_contents_request_args` filter. * Added support for overriding default calendar templates by creating an `ics-calendar` folder within your theme or child theme, and placing appropriately named replacement files (e.g. `calendar-month.php`) in that folder. Developers who wish to override templates are encouraged to copy the existing template to use as a starting point. * Event Downloads (`eventdl`): * Modified handling of recurring events in the event download link, so the download now contains only the single selected instance of the event, rather than the full recurrence set. * Month/Week Views: * `combinemultiday` now defaults to `true`. * Performance: * Added `r34ics_rate_limit_check()` function to identify situations where calendars may be hitting rate limits, and display an admin notice with recommended steps to remedy the situation. * Added conditional before `r34ics_url_uniqid_update()` calls in `R34ICS::_url_get_contents()` and `R34ICS::_url_get_contents_legacy()`, to run it only if we've verified the URL returns iCalendar formatted data. Also added `r34ics_url_uniqid_delete()` to delete individual feed URLs from the list. * Due to observed issues with some sites using `reload` in ways that exceed request rate limits, causing providers like Google Calendar to put temporary blocks on IP ranges, the `reload` option is now forced to a minimum value of 120 (2 minutes), _unless_ `debug` is also set to `2` or higher. **The `reload` option is intended for troubleshooting only.** If your calendar updates more frequently than once per hour, the best option is to change the **Transient (cache) expiration** setting to a lower value. Recommended value: 300 (5 minutes). * Plugin Conflicts: * Elementor: Added jQuery code to re-run ICS Calendar's initialization script when switching Elementor tabs. Resolves an issue where some calendars may not render properly in tabs. * Utilities: * Added "Also clear all saved ICS feed URLs" option to **ICS Calendar Data Cache** utility. This allows for purging the list of previously retrieved feed URLs in addition to cached transient data. (Previously the only way to purge the list of feed URLs was to use the "Reset all ICS Calendar settings" option.) * Updated status message output and fixed false negative bug with **ICS Feed URL Tester** utility. * Miscellaneous: * Added `r34ics_reset_non_empty_defaults()` function and associated filter for managing setting/resetting initial non-empty option values. * Added dynamic cookie handling when interacting with source servers that send cookies. May resolve an issue for Google Calendar users in Europe. * Changed most saved options to autoload = false. * Removed `r34ics_curl_cookie_path()` function and deprecated code that used it. * Refactored several functions and addressed various minor bugs. * Removed disused asset files. * Removed `r34ics_curl_cookie_path()` function and deprecated code that used it. * Renamed JS and CSS asset files to include `-pro` in the filenames. (To prevent confusion during development.) * Updated and reformatted System Report output. * Updated System Report formatting and added new settings fields. * Updated user agent string logic (v. 11.5.15.1) to include Google Calendar, and updated the base UA string. * Various other minor code refactoring throughout the plugin to address inefficiencies, improve organization, and resolve some PHP notices and warnings. * a11y: * Added tab support for help hover boxes on admin pages. * i18n: * Added new translations: Romanian, Serbian, Slovak, Turkish and Ukrainian. * Revised _all_ translation strings for all languages. Please note: By necessity we are using machine translations. (Most strings are translated by DeepL; a few that produced errors with DeepL are cross-referenced with Google Translate.) If you find any translation errors, please let us know at the link below. * Streamlined language files to one default file per language, rather than separate files for each locale. Note: This will make translations available to many more locations, rather than defaulting to U.S. English if a file for a specific language _and_ locale were not previously present. However, the new translations may be slightly less accurate for specific locales that previously had a dedicated file. * Vendors: * Incorporated recent ics-parser changes into our customized version. **If you identify any translation issues, please use our [Translation Suggestions](https://icscalendar.com/translation-suggestions/) form to contact us.** = 11.7.0.4 - 2025.12.08 = * Performance: * Due to observed issues with some sites using `reload` in ways that exceed request rate limits, causing providers like Google Calendar to put temporary blocks on IP ranges, the `reload` option is now forced to a minimum value of 120 (2 minutes), _unless_ `debug` is also set to `2` or higher. **The `reload` option is intended for troubleshooting only.** If your calendar updates more frequently than once per hour, the best option is to change the **Transient (cache) expiration** setting to a lower value. Recommended value: 300 (5 minutes). = 11.7.0.3 - 2025.11.30 = * Added dynamic cookie handling when interacting with source servers that send cookies. May resolve an issue for Google Calendar users in Europe. If you are experiencing this issue, please note that it may take up to 24 hours after you apply this update for your calendars to reappear. [Your feedback is requested.](https://icscalendar.com/support) Also please note that these changes _only_ apply if you have the legacy feed request method turned _off._ That feature is deprecated and will not be receiving further feature updates. If you are currently using the legacy feed request method, you are encouraged to try turning it off and see if your site is now able to load feeds with the standard method. * Added `r34ics_get_all_options()` function to retrieve all ICS Calendar options for the admin utility **Clear Cached Calendar Data** with the **Also reset all ICS Calendar settings** option checked. There is currently no way (even with filters) to force the WP core function `wp_load_alloptions()` to retrieve non-autoload options. (See [this note](https://developer.wordpress.org/reference/functions/wp_autoload_values_to_autoload/#comment-7430) for details. It's unclear whether this is a performance-focused intentional decision or a bug in the core `wp_autoload_values_to_autoload()` function.) * Removed `r34ics_curl_cookie_path()` function and deprecated code that used it. = 11.7.0.2 - 2025.11.28 = * Appended real user agent string when retrieving feeds from Google Calendar. = 11.7.0.1 - 2025.10.29 = * Delayed application of `r34ics_shortcode_defaults_new_10_6` filter until other plugins are loaded. = 11.7.0 - 2025.10.27 = * schema.org structured data: _BETA_ * Added `jsonld` shortcode parameter (and related `r34ics_event2jsonld()` function) for adding [JSON-LD structured data](https://schema.org/Event) to calendar output. This is still a beta/experimental feature. We have confirmed that our generated test code passes [validation](https://validator.schema.org), but we need to observe some real-world testing to determine whether or not the output needs additional refinements to match Google's expectations for structured event data. This feature is _off_ by default. To use it, add `jsondl="true"` to your shortcode. And please send your [feedback](https://icscalendar.com/support/) on how it works for you! **IMPORTANT: Because Google requires each event in the structured data to have a designated URL, _only_ events that have a URL are included in the structured data ICS Calendar generates.** (See [Google's documentation](https://developers.google.com/search/docs/appearance/structured-data/event) for more information.) * Miscellaneous: * Bumped 'tested up to' to 6.9. = 11.6.0 - 2025.10.10 = * Print: _BETA_ * Added `print` shortcode parameter, which will add a print button at the top of your calendar. Use `print="true"` to print the calendar with basic event info (time and event title), or `print="descriptions"` to include all event descriptions. (This works independently of how the event descriptions appear on-screen.) **Important: You MUST be using AJAX to render your calendar to use the `print` parameter.** You can accomplish this either by adding `ajax="true"` to your shortcode, or by turning on the **Always use AJAX to render calendars** setting. * Improved print CSS, now retains calendar colors. _Note: It is impossible for us to test all potential site configurations; if you experience problems with the new print colors, please [submit a support request](https://icscalendar.com/support)._ * Dark Mode: _BETA_ * Resolved conflicts that mostly broke dark mode after adding new element-based CSS variables in v. 11.5.15. * i18n: * Updated translation strings. * Added missing en_GB translation files. (Introduced in v. 11.5.17.4 but inadvertently omitted from repository.) _The print and dark mode features are currently considered BETA and are subject to change._ = 11.5.17.4 - 2025.10.06 = * a11y: * Added ARIA attributes and `label to HTML `select` tags in Month and Week views, and previous/next arrows in Month view. * i18n: * Added English (UK) translations. _Note: Machine translations sometimes fail to replace US spellings with UK spellings. If you are using UK English and notice any US spellings in ICS Calendar output after this update, please [let us know](https://icscalendar.com/translation-suggestions/)._ * Updated translation strings. = 11.5.17.3 - 2025.10.03 = * Fixed conflict between `combinemultiday` and `linktitles`. = 11.5.17.2 - 2025.09.23 = * Minor code tweak on admin utilities page. = 11.5.17.1 - 2025.09.18 = * Admin: Minor CSS tweaks. * Utilities: Added option for **Clear Cached Calendar Data** utility to also reset all ICS Calendar settings to their defaults. * i18n: Updated translation strings. = 11.5.17 - 2025.09.17 = * Added basic stub support for the [iCalendar `COLOR` property](https://icalendar.org/New-Properties-for-iCalendar-RFC-7986/5-9-color-property.html) (and the similar, vendor-specific `X-APPLE-CALENDAR-COLOR`). There is currently no functionality around this property, but events that contain `COLOR` will now include a `data-color` attribute on their HTML wrappers, which can be used with custom CSS or JavaScript to modify the appearance of the events. * Added `CATEGORIES` and `COLOR` to the event properties that are masked by the `maskinfo` parameter. * Changed color of spinner animation on AJAX loading to gray for optimal visibility on both light and dark backgrounds. * Removed empty jQuery function for `r34ics_init_end` event. = 11.5.16.1 - 2025.09.04 = * Admin settings: * Added deprecation notice to **Use legacy feed request method** option. * Removed **Permanent feed URL mask IDs** option and associated logic. Feed URL mask IDs are now always permanent. * Bug fix: Removed code related to the now-removed **Permanent feed URL mask IDs** option, that was causing the **Clear Cached Calendar Data** utility to exit early if that option was turned off (default). This issue may have been preventing some calendars from updating. * Miscellaneous: Admin CSS tweaks. * i18n: Updated translation strings. = 11.5.16 - 2025.09.01 = * Admin: * Refactored ICS Feed URL Tester with additional response details. * UI visual refinements on admin page. * i18n: Updated translation strings. = 11.5.15.1 - 2025.08.26 = * Additional refinements to recent user agent string changes. Modified the default user agent string to conform to the [spec](https://httpwg.org/specs/rfc9110.html#field.user-agent). Updated legacy request method user agent strings. Note: The recently implemented fixes for Microsoft 365 support are available with the newer request method only. If you are using Microsoft 365 calendars, please turn _off_ the **Use legacy feed request method** setting on the ICS Calendar admin page. * Fixed a fatal error that occurs when `organizer="true"` is set and the organizer name contains commas. (The `ics-parser` library explodes the name into an array.) * Removed a status message from the **ICS Feed URL Tester** utility that encourages turning on the legacy request method. The legacy method will be removed in a future update. * Added deprecation notice for legacy parser when in debug mode. * Changed `$debug` and `$debug_messages` from `public` to `protected` in `R34ICS` class. * Minor CSS refactoring (alphabetized color variables). = 11.5.15 - 2025.08.20 = * AJAX: * Added `r34ics_ajax_js_args` filter and `data-js-args` attribute to HTML output when using AJAX. This allows for arguments that need to be accessed by JavaScript. * CSS: Created a new set of CSS variables based on element context rather than colors, to allow for specific adjustments to the style of the relevant elements. An extended [CSS Guide](https://icscalendar.com/css-guide/) will be available soon on our website. * Modified Microsoft Office 365 user agent solution (added in 11.5.14.4) to _append_ the Windows/Edge user agent string to the standard ICS Calendar user agent string, rather than replacing it. This is verified to still resolve the issue, while retaining ICS Calendar's user agent details. = 11.5.14.4 - 2025.08.19 = * Resolved an issue with Microsoft Office 365 calendars not loading after recent Microsoft changes. Requests for Microsoft source feeds now use a real web browser user agent string (Windows/Edge) instead of ICS Calendar's default user agent. * Fixed a boolean/integer variable type issue in the `R34ICS::_url_get_contents()` method that may "Increment on type bool has no effect" warnings under PHP 8. * Corrected required minimum PHP version from 7.0 to 7.2. (The code that requires PHP 7.2 is in the `ics-parser` library, and has been present in ICS Calendar since 2018.) = 11.5.14.3 - 2025.08.14 = * Removed `load_plugin_textdomain()` call (restored in 11.3.4.4 after initially being removed in 11.3.4.3). A user reported on 2025.08.13 that the call was causing "triggered too early" warnings, although we have been unable to duplicate. Current best practice is to omit this function call altogether, but we had left it in due to observed issues in WP 6.7 with some portions of the plugin not being translated without it; however our current testing under WP 6.8.2 does not indicate any translation problems with the call omitted. If you are receiving error messages or if some translations appear to have gone missing after this update, please let us know in the [support forums](https://wordpress.org/support/plugin/ics-calendar/). = 11.5.14.2 - 2025.08.11 = * AJAX: Refactored AJAX request method to remove shortcode parameter details from front-end HTML. AJAX requests now only pass a key string, which must match the existing shortcode configuration on the back end. * Bug fix: Resolved an issue when multiple month view calendars with different date ranges are included on the same page, where the page might load with no month selected in one or more of the calendars if the `r34icsym` query string variable is outside that calendar's date range. (Previously all calendars were evaluated by jQuery simultaneously; now each is evaluated individually.) = 11.5.14.1 - 2025.08.06 = * Bug fix: Modified conditional in `r34ics_colors_match_theme_json()` function to avoid possible 'Undefined array key "color"' error logs. = 11.5.14 - 2025.08.01 = * Admin: * Added icons and Support link to tab bar; updated text of Pro promo. * Debugging: * Added `R34ICS::shortcode_required_params` property to allow for error messages when required parameters are missing. (Technically `url` and `view` are both required; however, `view` defaults to `"month"` if omitted.) * Added new settings to System Report and debugger panel. * Refactored logic in `R34ICS::display_calendar()` to initiate debug mode earlier. * Moved debugging output function call outside of excessively restrictive conditional on AJAX requests. * Removed deprecated debug function aliases. * i18n: * Updated translation strings. **Note:** Debugging-related changes in this version originated from a user observation that shortcode attributes are ignored if the shortcode is entered on multiple lines. _Shortcodes are intended to be entered on a single line; adding line breaks inside your shortcode may yield unpredictable results. This is due to how WordPress itself handles shortcodes prior to handing off the shortcode details to ICS Calendar._ = 11.5.13 - 2025.07.23 = * Added **Default shortcode** setting on the ICS Calendar Settings admin page. This is useful for sites that will contain a large number of calendar shortcodes with mostly identical parameters. Individual shortcodes' settings will override the default, but only need to include the parameters that are unique. * Added [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage) code comments where relevant. * i18n: Updated translation strings. = 11.5.12.7 - 2025.07.20 = * Admin: Added **Permanent feed URL mask IDs** setting, to address an issue with Cloudflare (and possibly other caching systems) where pages may continue to request old masked feed URL IDs after they have been cleared/expired. * CSS: Added `!important` to `text-align` and `vertical-align` in month grid views to force override of theme CSS. * Miscellaneous: Minor code refactoring. * i18n: Fixed text domain for two translation strings on admin page; updated translation strings. = 11.5.12.6 - 2025.07.12 = * CSS: Added `!important` to margin and padding on list elements in month grid views to force override of theme CSS. = 11.5.12.5 - 2025.07.03 = * Admin: * Changed order of tabs. * Added conditional to hide Settings tab if user doesn't have administrator-level access. * Updated link list on Getting Started page. * Updated presentation of ICS Calendar Pro promotion and admin sidebar postbox. * Minor CSS tweaks. * i18n: Updated translation strings. = 11.5.12.4 - 2025.06.20 = * Added `$trim` parameter to `R34ICS::_url_get_contents()` method (defaults to `true`). This was added because of an observed issue with ICS feeds generated by the Simply Schedule Appointments plugin, which contain several lines of blank space at the beginning. The ics-parser library ICS Calendar uses specifically checks for `BEGIN:VCALENDAR` as the first line in the file when validating input, causing these feeds to fail to load. Trimming the retrieved data prior to parsing resolves the issue. = 11.5.12.3 - 2025.06.20 = * Fixed issue with the `r34ics_purge_calendar_transients()` function (the function used by the **Clear Cached Calendar Data** utility) that was causing the **Transient (cache) expiration** setting to get reset. This problem was exacerbated by the change introduced in version 11.5.12 that automatically runs the utility every time the ICS Calendar settings are saved. (A SQL statement in the function needed backslashes added for literal underscores.) = 11.5.12.2 - 2025.06.12 = * On Multisite installations, added "network active" plugins to System Report. = 11.5.12.1 - 2025.06.04 = * Fixed bug in new `r34ics_colors_match_theme_json()` that prevented transient storage of the adjusted CSS color palette. * Added logic to `r34ics_colors_match_theme_json()` to handle situations where dark mode is on but the theme's color palette has too few colors defined. (Previously any remaining ICS Calendar colors were being kept at their defaults; they're now being inverted using an `hsl()` color formula.) = 11.5.12 - 2025.06.03 = * Block Themes / Site Editor Styles: * Added **Match calendar color palette to current Block Theme colors** setting. For sites that are using color palettes defined in a Block Theme or with the Site Editor, this option automatically replaces ICS Calendar's default neutral gray color palette with closest-match colors from your theme's color palette. _Note: This is a BETA feature and is still in development. Added and/or modified several color-related functions in `functions.php`. [Feedback](https://icscalendar.com/support) on this feature is welcomed._ * Modified CSS and some logic for `solidcolors` and `whitetext` to accommodate the **Dark mode** option under the new **Match calendar color palette to current Block Theme colors** setting. * **Clear Cached Calendar Data** utility now runs automatically when saving ICS Calendar settings or Site Editor configuration, so any changes to these settings will take effect immediately without needing to manually run the utility. * Bug Fixes: Fixed issue in Week view that might cause "Double timezone specification" PHP fatal errors after changes introduced in version 11.5.11.1. * i18n: Updated translation strings. = 11.5.11.1 - 2025.05.28 = * Changed output of `r34ics_first_day_of()` and `r34ics_last_day_of()` functions to be strings in `Y-m-d` format, rather than Unix timestamps. This resolves a timezone related issue where the returned date may actually be one day earlier than intended, causing Month view to display one extra past month, showing only the events on the last day of that month. (Note: Because the output of these functions has changed, corresponding changes were made to code that handles the output of the functions where they are called in `class-r34ics.php`.) = 11.5.11 - 2025.05.16 = * Event downloads (`eventdl`): * Added "Save to your calendar" text in addition to icon. You can revert to the previous icon-only display by changing the shortcode parameter from `eventdl="true"` to `eventdl="minimal"`. * Fixed output errors in downloaded `.ics` files when the event includes the `EXDATE` or `RDATE` property. * Admin page: Updated promotional content. * CSS: Removed base64 encoding on embedded SVG background images, to reduce data size and eliminate unnecessary obfuscation. * i18n: Updated translation strings. = 11.5.10.1 - 2025.05.09 = * Bug fix: Basic and List views now handle `paginationposition="both"` correctly. * Improved error handling in `r34ics_uniqid_url()` function and `R34ICS::shortcode_defaults_merge()` method. = 11.5.10 - 2025.05.02 = * Actions and Filters: * Added actions to Month and Week view templates: `r34ics_display_calendar_after_day_label` and `r34ics_display_calendar_after_events_list`. As the names indicate, these actions allow for custom output after the day label and day events lists for each day in the table in these views. Hooked functions have access to four input parameters: `$view`, `$args`, `$date` and `$day_events`. = 11.5.9.1 - 2025.04.28 = * Modified `r34ics_url_tester_result_debug` hook to be able to account for situations where the response is empty. * Vendors: * ics-parser: Changed timezone string mappings for "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius" and "FLE Standard Time" from "Europe/Kiev" to "Europe/Helsinki". This is because the ics-parser library uses the spelling "Kiev", whereas ICS Calendar code uses the spelling "Kyiv". This discrepancy was causing time calculation issues, specifically for Microsoft source calendars, which use the "FLE Standard Time" designation. "Europe/Helsinki" was chosen to avoid alternate spelling confusion, and also because "FLE" stands for "Finland Latvia Estonia", making Helsinki a more logical choice than Kyiv. (Both cities share the same timezone rules.) = 11.5.9 - 2025.04.24 = * Added `wp_get_remote()` status check to System Report; refactored System Report to use transients. = 11.5.8 - 2025.04.22 = * Removed `r34ics_ajax_bypass_nonce` option. Nonce has now been removed from ICS Calendar AJAX requests altogether, as the requests do not have the ability to write to the database, making the nonce unnecessary. The nonce has consistently caused issues with AJAX requests in conjunction with third-party caching plugins. * CSS tweaks on admin page. * i18n: * Removed disused translation strings. * Removed Norwegian Nynorsk translation files, due to consistent issues with Poedit machine translations. = 11.5.7.1 - 2025.04.11 = * Bug fix: Added exception handling to prevent a fatal error if `r34ics_date()` is passed a timezone string that is not a valid format recognized by the PHP `DateTimeZone` class. * Bug fix: Removed extraneous pagination close tag in list view that may cause the pagination HTML to break if the last item on a "page" is a multi-day event. * Changed scope of special date range handling in week view. = 11.5.7 - 2025.03.07 = * Modified activation process to jump directly to **Getting Started** tab of admin page. * Redesigned **Getting Started** tab and sidebar of admin page. * i18n: Updated translation files, added missing text strings. = 11.5.6.1 - 2025.03.06 = * Updated help text on Settings page. = 11.5.6 - 2025.02.26 = * Added `none` as a valid option for the `monthnav` parameter, allowing for hiding the month navigation altogether. (Useful when showing month view in a kiosk environment or other settings where the user doesn't need the ability to switch the view to a different month.) * Bumped 'tested up to' to 6.7.2. = 11.5.5 - 2025.02.24 = * Added support for using [HTML color names](https://www.w3schools.com/colors/colors_names.asp) in the shortcode, in addition to hex colors, via the new `r34ics_color_name2hex()` function. = 11.5.4.2 - 2025.02.18 = * Made calls to `php_uname()` in System Report conditional; some servers may remove support for this function for security reasons. Also replaced call to `phpversion()` with `PHP_VERSION` constant, with a conditional in case the constant is undefined. These changes should resolve issues where the ICS Calendar admin page does not load properly on servers with these security measures in place. * Updated copyright terms regarding ICS Calendar name and branding assets. = 11.5.4.1 - 2025.02.10 = * Refactored `r34ics_date()` to use `wp_date()` after applying its offset and other input standardizations, rather than duplicating the code of `wp_date()`. This also resolves an issue where in some rare cases, the passed-in timezone may not be handled correctly. * Added missing event timezone inputs to `r34ics_date()` calls in the `R34ICS::event_description_html()` method and `r34ics_multiday_date_label()` function. Without timezones, date ranges for multi-day events could be one day "off" in the event descriptions and labels after the aforementioned refactoring of `r34ics_date()`. * Fixed incorrect date display issues in `R34ICS::event_description_html()`. _Note: Version 11.5.4 was withdrawn due to this issue, which was discovered a few minutes after its release._ * Modified event sorting for multi-day events starting on the same date. Now, list-style views (list, basic) will show these events sorted by earliest ending date. Table-style views (month, week), will show the events sorted by the _latest_ ending date, which helps to reduce situations where events "break" between days in the layout when using `combinemultiday`. = 11.5.3.2 - 2025.02.07 = * Bug fix: Resolved possible fatal error caused if new `r34ics_i18n_locales()` function added in 11.5.3.1 runs on a logged-out front-end page. = 11.5.3.1 - 2025.02.06 = * Fixed bug with `reverse` and `pagination` on Basic and List views that would cause the wrong "page" to display on load. * i18n: Updated translation strings. Added logic to force the plugin's embedded translation files to take precedence over any downloaded community translation files in the `WP_LANG_DIR/plugins` directory. = 11.5.3 - 2025.02.03 = * Fixed issue with pagination in list view that would include the next single-day event(s) on a "page" when a multi-day event was the correctly counted "last" item on the page. * Modified handling of `pagination="1"` in Basic and List views, to literally mean 1 event, rather than being interpreted as a boolean "true" and defaulting to 5 events per page. Setting `pagination="true"` will still default to 5 per page. List view also now omits the month/year headers when displaying one event per page. * Modified handling of `count` and `pagination` parameters to force positive integer values. = 11.5.2.1 - 2025.02.03 = * Added `r34ics_comparison_string()` function to process strings for comparison purposes. Used by features added to `R34ICS::r34ics_display_calendar_exclude_event()` in 11.5.2 to filter events by category, accounting for possible formatting issues with accented letters. * Modified shortcode logic to force certain parameter values to all-lowercase. This allows the input values to be case-insensitive; previously, non-lowercase values would be treated as invalid. Applies primarily to parameters that have defined arrays of accepted values, e.g. [`columnlabels`](https://icscalendar.com/icsdocs#columnlabels) or [`extendmultiday`](https://icscalendar.com/icsdocs#extendmultiday). = 11.5.2 - 2025.01.31 = * Added `category` attribute to allow filtering events by category. Multiple categories may be included, using the pipe character `|` as a delimiter. Category names used must exactly match the category names in the feed (case-insensitive). _Currently this feature simply excludes events that are not in one of the designated categories. A future update will add support for color-coded categories, similar to the current support for multiple feeds in one calendar shortcode._ **Note:** This feature requires that your ICS feed data includes the [`CATEGORIES`](https://icalendar.org/iCalendar-RFC-5545/3-8-1-2-categories.html) property, which is not widely supported by most popular calendar software. = 11.5.1.3 - 2025.01.22 = * Modified logic for `maskinfo` that would remove the info hover box on multi-day events with specified start and end times. = 11.5.1.2 - 2025.01.20 = * Miscellaneous: * Added `r34ics_ajax_bypass_nonce` status to System Report. = 11.5.1.1 - 2025.01.08 = * Bug fixes: * Added logic to trim extraneous spaces from the beginning and end of all attribute values when parsing the shortcode, and in sanitization logic in `r34ics-ajax.php`. * Added `r34ics_color_key_allowed()` function and updated `r34ics_select_allowed()` to merge custom allowed fields with `wp_kses_allowed_html('post')`. This resolves issues with the color key (legend) that were introduced with changes in 11.5.0 and 11.5.1. * Changed `r34ics_minify_css()` handling of whitespace to resolve issues when output is fed through `wp_kses_post()`. * Fixed duplicate description output that may result with ALTREP handling introduced in 11.5.1. * Fixed handling of feed parsing failures that would cause a fatal error unless the `debug` parameter is set in the shortcode. = 11.5.1 - 2025.01.07 = * Functional enhancements: * Added protected `R34ICS::_event_field_handling()` method to facilitate complex logic (i.e. too much to fit in one line of code) when assigning values in the `$event_item` array in `R34ICS::display_calendar()` and related functions. This includes the new `r34ics_event_field_handling` filter for additional external processing of event data. (If working with the filter, be aware that it is currently only applied to the `eventdesc` value.) This functionality was specifically added to accommodate changes needed for the ALTREP property described below, but it is open-ended to support additional future enhancements. * iCalendar spec support: * Added limited support for Thunderbird's use of the [ALTREP](https://icalendar.org/iCalendar-RFC-5545/3-2-1-alternate-text-representation.html) parameter in event descriptions. Thunderbird does not appear to conform to the spec — the `ALTREP` value is not wrapped in quotation marks. However, since this is our first observation of ALTREP in use, our solution is tailored to the Thunderbird output we have observed. Additional feedback on this feature is welcomed. * PHP deprecation notices: * Modified the `event_description_html()`, `event_label_html()` and `event_sublabel_html()` methods of `R34ICS` to return empty strings rather than null or false values when empty. * Added `?: ''` empty string fallback value to all instances of `wp_kses_post()` added in version 11.5.0, to work around "Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated" warnings. This should technically be addressed within the WordPress core `wp_kses_no_null()` function. We have opened a Trac ticket. If the core function is modified to handle null values, the then-superfluous `?: ''` will be removed from these function calls in a future update. = 11.5.0 - 2025.01.03 = * i18n: * Added `translators:` comments for each translation string containing placeholders. * Changed text domain from `r34ics` to `ics-calendar` to conform with [WordPress Plugin Directory requirements](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#text-domains). _Translation files included within the plugin have been correspondingly updated, but if you are using third-party translations or a plugin such as [Say What](https://wordpress.org/plugins/say-what/), you may need to update them with the new text domain._ * Replaced `%s` translation string placeholders with `%1$s`. * Replaced uses of unescaped `_e()` and `__()` functions with the corresponding escaped functions `esc_html_e()`, `esc_html__()`, `esc_attr_e()` and `esc_attr__()`, as appropriate. * Updated all translation files to reflect the above changes. * Miscellaneous: * Added extra sanitization functionality to handling of form inputs on Settings page and `r34ics-ajax.php`. * Added text escaping functions to dynamic plugin output in templates. * Added `r34ics_select_allowed()` function. * Fixed CSS padding issue with week numbers in month and week views. * Replaced uses of certain standard PHP functions such as `json_encode()`, `mt_rand()`, `parse_url()` and `strip_tags()` with their WordPress-specific equivalents (e.g. `wp_json_encode()`, `wp_rand()`, `wp_parse_url()` and `wp_strip_tags()`). * Updated handling of server variables in System Report. * Vendors: * Updated embedded ics-parser library to version 3.4.1 (with namespace change to prevent plugin conflicts, and removal of variables from error messages due to [Plugin Check](https://wordpress.org/plugins/plugin-check) reporting them as coding errors). = 11.4.2 - 2024.12.16 = * Added IP address resolution to ICS Feed URL Tester, to help troubleshoot network-related issues. * Added box around ICS Feed URL Tester Results area. = 11.4.1.2 - 2024.12.14 = * Fixed fatal error introduced in 11.4.1.1 when the calendar is _not_ empty. = 11.4.1.1 - 2024.12.14 = * Added empty string error handling in `r34ics_uniqid_url()` and `r34ics_url_uniqid()` functions. * Fixed bug in `r34ics_is_empty_array()`. (Removed `is_scalar()` check in conditional.) Resolves issue of blank output on empty calendars, rather than the proper "No events found" message displaying. = 11.4.1 - 2024.12.06 = * Bug fix: Reverted change from 11.4.0 that made `month` the default fallback value for `$view` if it is not passed into `R34ICS::shortcode_defaults_merge()` method because this caused incorrect default values to override custom values in some cases. * CSS: Modified multi-day event date boxes in Basic view to have a stacked layout to preserve list alignment. = 11.4.0 - 2024.12.03 = * AJAX: * Added **Bypass nonce on AJAX requests** setting. _See note below._ * Refactored `r34ics-ajax.php` to remove redundant code and add validation of allowed shortcode attributes. * Added `r34ics_shortcode_defaults_merge` filter, to allow `R34ICS::shortcode_defaults_merge()` to be used as a general method for retrieving the full list of valid shortcode attributes and their default values. * Miscellaneous: * Added `sanitize_url()` to `r34ics_uniqid_url()` and `r34ics_url_uniqid()` functions. * Added new plugin settings to debugger output. * Additional minor code refactoring. * i18n: * Updated translation strings. _**Note on AJAX nonce:** ICS Calendar AJAX loading uses a [nonce](https://developer.wordpress.org/plugins/javascript/ajax/#nonce), per WordPress best practices for optimal database security. (The nonce is not strictly necessary in this case, as the plugin's AJAX calls have only limited ability to interact with the database, and all AJAX POST data is validated and sanitized.) **In general we recommend leaving the nonce validation in place.** However, we have found that some caching plugins -- particularly LiteSpeed Cache -- may cache the nonce code with your page content, causing calendars to fail to load after the nonce expires. Turn on this setting to bypass ICS Calendar's AJAX nonce validation._ = 11.3.7 - 2024.11.18 = * Added `class_exists()` check to `R34ICS` class. * Added `ua` shortcode attribute, to allow for a custom user agent string on requests. May be useful if your source server is rejecting ICS Calendar's requests. Set to `true` to use a preselected real user agent string, or enter a custom string of your choosing. (Custom strings must be at least 6 characters.) If omitted or set to `false`, ICS Calendar's default user agent string will be used for the request. _Note: This parameter has no effect if the **Use legacy feed request method** setting is turned on._ * Standardized handling of all admin notices using `r34ics_deferred_admin_notices()` function, and modified some notices to be dismissible. * Minor code refactoring. * Vendors: Restored `persist-admin-notices-dismissal`, previously removed in version 9.8.0 because it wasn't being used. * i18n: Updated translation strings. = 11.3.6.1 - 2024.11.11 = * Admin: Fixed HTML formatting issue in admin page sidebar. * i18n: Added Czech translations. = 11.3.5.1 - 2024.11.06 = * Added `r34ics_admin_utilities_more` action. = 11.3.5 - 2024.11.05 = * Basic and List views: Added `data-dow` and `data-wknum` attributes to each event in the list, allowing developers to customize the appearance of events based on the day of the week (`data-dow`) or week number (`data-wknum`). * Updated support text and links. * i18n: Updated translation strings. = 11.3.4.4 - 2024.10.15 = * Restored `load_plugin_textdomain()` call, as it does appear to be necessary in some situations. The call is now being made on the `init` action, which should prevent any WP 6.7 error messages. If you are receiving error messages or if some translations appear to have gone missing, please let us know in the [support forums](https://wordpress.org/support/plugin/ics-calendar/). * Minor refactoring of `ics-calendar.php` file. = 11.3.4.3 - 2024.10.09 = * Removed unnecessary `load_plugin_textdomain()` call, and set `$translate` input parameter to `false` on `get_plugin_data()` call, as these may cause PHP notices as of WordPress 6.7. See the [WordPress Trac](https://core.trac.wordpress.org/ticket/62154#comment:8) for more details. = 11.3.4.2 - 2024.10.01 = * System Report: * Added new ICS Calendar settings. * Added relevant WordPress core settings. * Alphabetized Active Plugins list. = 11.3.4.1 - 2024.09.28 = * Modified `r34ics_ajax()` function's sanitization logic to use `wp_kses_post()` rather than `htmlspecialchars(strip_tags())`, which was causing some valid HTML to be stripped from the calendar output when using AJAX. = 11.3.4 - 2024.09.24 = * Lightbox: * Modified CSS to restrict lightbox dimensions on large displays. Lightbox now displays at a maximum of 800x600 pixels, centered in the window. (Applies only when using `toggle="lightbox"`.) * Multi-day events: * Changed options for `extendmultiday` from true/false to `overnight`, `allday`, `both` or empty. The previous true/false values map to `allday` and empty. The new `overnight` value applies to "overnight" events with specified start and end times. The `allday` value (along with the previous true value) works by the previous logic, and applies only to multi-day, all-day events, to address situations where feeds do not conform to the iCalendar spec in handling the end date of multi-day, all-day events. The default is false/empty, with neither condition applying. = 11.3.3.2 - 2024.09.18 = * Modified logic around the `nolink` parameter, to strip an event's URL from the array during the initial parsing process, rather than relying on later conditionals in templating functions, which in some cases would still show the link even if `nolink` was set. * Added override for `X-MICROSOFT-CDO-BUSYSTATUS` over the iCalendar spec-compliant `STATUS` field in `R34ICS::r34ics_display_calendar_exclude_event()` method. = 11.3.3.1 - 2024.08.22 = * AJAX: * Improved error handling when AJAX request fails. Removed repeated attempts on failure, due to the nature of the error being tested for. * CSS enhancements to approximate initial height allocated for the calendar, based on view. (Intended to improve Cumulative Layout Shift [CLS] scores with PageSpeed Insights.) Note: There is no way to precisely determine the height of the calendar before it's loaded. = 11.3.3 - 2024.07.31 = * Changed height on AJAX container while loading from `32px` to `75vh` to reduce impact on Cumulative Layout Shift (CLS) scores with Google PageSpeed Insights. * Modified `sametab` parameter to support three values: `local`, `all`, and `none`. The default `local` option is the same default behavior as before (when the parameter is omitted altogether), `all` is equivalent to the previous `true` value, and `none` is a new option that will force *all* event links to open in a new tab. *Existing calendars do not need to be modified; the old values will continue to function as before.* * Removed logic to insert `.offsite-link` CSS class in links that open in new tabs, since it was not being used anywhere in the plugin. If you have custom CSS that depends on this class, use this equivalent selector: `.ics-calendar a[target="_blank"]` * Reverted change to conditional logic for events spanning two days, introduced in 11.3.2.1, because it is causing more problems than it is fixing. A new parameter will be introduced in the next update to make the 11.3.2.1 change optional for the smaller number of users who will benefit from it. = 11.3.2.1 - 2024.07.19 = * Changed names of settings actions to replace `admin_options` with `settings` for consistency with changes in 11.3.2. * Modified logic in some calendar rendering functions to prevent them from running unnecessarily and slowing down the Block Editor. * Removed a conditional that treated events spanning two days, with start and end times, as one-day events rather than multi-day events. This older logic was obviated by subsequent changes in the plugin's handling of multi-day events, but some users may be expecting the previous functionality. Please use the [WordPress Support Forums](https://wordpress.org/support/plugin/ics-calendar/) to report any issues. = 11.3.1 - 2024.07.03 = * jQuery: * Modified the `r34ics_init_start` and `r34ics_init_end` custom events to pass an `elem` parameter, containing the DOM object that called the `r34ics_init()` function. On calendars _not_ loaded via AJAX, the function runs on initial page load, and the value passed is null. When the calendar _is_ loaded via AJAX, the object is the `div.r34ics-ajax-container` element for that calendar. This allows custom functions using this event to have access to the properties of the DOM element, including the `id` attribute, so developers can write calendar-specific JavaScript. * Miscellaneous: * Standardized all checks for ICS Calendar Pro to use `class_exists()` and removed some ICS Calendar Pro-specific JavaScript by using the `r34ics_init_end` event. * i18n: Fixed incorrect text domain for translation strings in admin sidebar, and updated affected translation files. = 11.3.0.1 - 2024.06.27 = * Updated admin page to address possible issue of tabs not working. * Added new plugin settings to System Report. * Added `r34ics_raw_feed_strip_dtend_none()` function (using the `r34ics_display_calendar_preprocess_raw_feed` filter) to handle edge cases where feeds include the invalid `DTEND:None`. (This is an identified issue with easyVerein calendars.) = 11.3.0 - 2024.06.13 = * Admin: * Fixed minor issue with ICS Feed URL Tester changes in version 11.2.2 that prevented display of the tested URL after submitting. * Reorganized Settings tab with options grouped under subheadings. * Basic Authentication: * Added support for including HTTP Basic Authentication user/pass parameters directly in the feed URL in the shortcode, in addition to the previous constant-based method. _This approach is still discouraged,_ since it involves putting the credentials directly in the shortcode and could potentially expose those credentials publicly if the plugin is deactivated, since WordPress outputs the text of any undefined shortcodes directly on the page. But _considering that HTTP Basic Authentication is inherently insecure,_ this should not be a significant issue in most cases. If you are concerned about the confidentiality of your basic auth credentials, please continue to use the old approach. (Note: This change only applies to the new feed request method introduced in version 11, so it will not work if the **Use legacy feed request method** option is turned on. When using the legacy method, you _must_ use the `basicauth` parameter in conjunction with the `R34ICS_FEED_BASICAUTH` constant in your `wp-config.php` file.) * CSS: * Modified CSS for new `feedlabelindesc` so feed color dot only appears in event details hover box, and not in inline descriptions; added styling for feed labels in lightbox. * Developer: * Added [`r34ics_display_calendar_event_item`](https://icscalendar.com/developer/#r34ics_display_calendar_event_item) filter. This filter runs immediately before a parsed event gets added to the data array for the calendar, allowing you to modify any event details as needed. This is very similar to our second example use case for the existing [`r34ics_display_calendar_filter_ics_data`](https://icscalendar.com/developer/#r34ics_display_calendar_filter_ics_data) filter, minus the need for five nested `foreach` loops! * Event details hover/lightbox: * Moved recurrence description to top, below time. * Changed HTML wrapper for `img` from `div` to `figure`. * Miscellaneous: * Changed language code in iCalendar output for `eventdl` to reflect site locale instead of hardcoding `EN`. * Vendors: * Updated embedded ics-parser library to latest version (3.4.0+, up through commit [7286ce0](https://github.com/u01jmg3/ics-parser/commit/7286ce0ff37d5123094ffc8b8426d9dfcccca7f9).) * i18n: Updated translation strings. * Bumped 'tested up to' to 6.6. = 11.2.2 - 2024.06.07 = * Admin: * ICS Feed URL Tester enhancements. Added suggestions for handling some common situations that may cause a feed request to fail or return incorrect results. * CSS refinements. * Fixed a bug that caused ICS Feed URL Tester to always return an unknown error after changes introduced in version 11.1.0. * Updated action links on Plugins page. * Shortcode: * Added `feedlabelindesc` parameter and related functionality. * Miscellaneous: * Added `R34ICS::shortcode_feed_array_params` property and logic to split pipe-delimited, feed-related parameters into arrays for easier logic elsewhere, plus related functionality, including `r34ics_shortcode_feed_array_params` filter. (This is used by `feedlabelindesc` and may be used by other future enhancements.) * Modified `r34ics_has_desc()` function to support `feedlabelindesc`. = 11.2.1 - 2024.05.30 = * Shortcode: * Added `eventlocaltime` parameter. Will display all times in the local timezone of the individual event, if applicable. Note: When this parameter is used, the timezone abbreviation `T` will automatically be appended to the `timeformat` parameter while parsing the shortcode. * Added support for `T` (timezone abbreviation) in `timeformat` parameter. Note: Currently only supports placing `T` at the end of the string. (The timezone abbreviation will be inserted at the end of the time output, regardless of where `T` appears in the `timeformat` string.) * Admin: * Reordered Settings tab items. = 11.2.0 - 2024.05.29 = * Admin: * Fixed issue after introduction of tabbed layout on ICS Calendar admin page that would cause the wrong tab to load after clicking buttons on the Utilities tab. * Added "System Report" link in sidebar. * Shortcode: * Added `fulldateintable` parameter. By default, month and list views show only the day number in the table on desktop breakpoints, and use the date format defined by the `format` parameter for mobile breakpoints. When `fulldateintable="true"` is set, the `format` value will be used to display the date in the table on desktop as well. * Miscellaneous: * Added check for `R34ICS` class already being defined, to prevent a potential fatal error on plugin activation. * Added list of valid view names to allow fallback to month view if an invalid name is used. Use the new `r34ics_views` filter to add any custom view template names to the list. * Modified loading logic to run `r34ics_update()` if the version number has *changed*, not just if it has increased. * Updated protected properties of the `R34ICS` class. * Hotfix: * Modified CSS to prevent display of AJAX "loading" animation being stuck after the calendar loads. = 11.1.0 - 2024.05.22 = * Admin: * Redesigned admin screen with tabbed layout for improved usability, relabeled some elements, and updated links to User Guide documentation. Refactored associated code into discrete methods. Removed legacy JavaScript that was no longer in use. * AJAX: * Added new **Always use AJAX to render calendars** admin setting. This will automatically force all calendars on the site to render asynchronously using AJAX. * Restructured AJAX rendering and added a JavaScript interval to automatically refresh all AJAX-loaded calendars on the same frequency as the site's configured **Transient (cache) expiration** setting. (Minimum of 300 seconds.) Provides a way for pages containing calendars to be left open indefinitely (e.g. for kiosk displays) and receive updates. * Parameters: * Added new `hidecancelledevents` and `hidetentativeevents` shortcode parameters. These hide events with a `STATUS` value of `CANCELLED` or `TENTATIVE`, respectively. * Miscellaneous: * Added fallback to get event URL from the URI property if it exists. The iCalendar spec includes a [URI](https://icalendar.org/iCalendar-RFC-5545/3-3-13-uri.html) property, but not a URL property. However in our practical experience the URL property is commonly used by calendar vendors. * Replaced several instances of null coalescing operators (`?? null`) with short ternary operators (`?: ''`) setting empty strings rather than null values for event properties. This should not produce any noticeable changes in most cases, but may occasionally allow for values to be returned that have been missing in the output under the old logic. * Updated the set of fields that are masked by the `maskinfo` parameter to account for changes in the ics-parser library. * i18n: Updated translation strings. = 11.0.1.2 - 2024.05.15 = * Added `R34ICS::get_list_style_views()` and `r34ics_list_style_views` filter to allow external addition of list-style views for certain conditional logic. * Performance improvements: Narrowed rough parsed date ranges defined in `R34ICS::display_calendar_date_range()` to reduce memory usage and processing time for calendars with a large number of recurring events. * Admin page layout adjustments. * Debugging: Removed restriction that only reports dynamic peak of memory usage if debug level is set to 2 or higher. * Bumped 'tested up to' version to 6.5.3. = 11.0.1.1 - 2024.05.02 = * Developer: * Added `r34ics_display_calendar_after_args` action. = 11.0.1 - 2024.05.02 = * Basic/list views: * Pagination: changed default pagination count to 5 instead of using `posts_per_page` site option; cast pagination value as integer when set; fixed missing `#` in previous/next pagination URLs. Fixed two jQuery bugs. * Week view: * Modified change from version 11.0.0.3 to adapt when the window is resized between phone and non-phone breakpoints. (The previous fix depended on the size of the window on initial page load.) * Admin: * Added `r34ics_is_block_editor()` function, and logic to prevent unnecessary processing potentially occurring on Block Editor screens. * Developer: * Added two new actions: `r34ics_shortcode_before_display_calendar` and `r34ics_shortcode_after_display_calendar`. These actions fire off in `R34ICS::shortcode()` before and after the call to `R34ICS::display_calendar()`. * Miscellaneous: * Removed logic to run `gzdecode()` in `R34ICS::_url_get_contents()` because `wp_remote_get()` already does that. Eliminates appearance of numerous related PHP warnings in log files. = 11.0.0.3 - 2024.04.23 = * Week view: * Fixed JavaScript issue of containers not extending to the full width in mobile "list"-style layout when switching between weeks. * ICS feed request functionality: * Updated `R34ICS::_url_get_contents()` to address some additional edge case issues introduced with the switch to `wp_remote_get()` in version 11.0.0 that were not fully resolved by the 11.0.0.1 update. Specifically, added customized handling of 301 and 302 redirects to use the `Location` header returned in the response object, rather than relying on the built-in redirection in `wp_remote_get()`, which was causing some hosts (including Google Calendar) to reject the request. * Added **Use legacy feed request method** option on settings page, and corresponding `R34ICS::_url_get_contents_legacy()` method. For sites that are still not successfully retrieving feeds with the fixes added in 11.0.0.1, this option reverts to using the old method for requesting feeds using cURL and fopen functions. * Updated debugging tools for internal testing during development. (Note: Version 11.0.0.2 was intentionally removed due to a logistical issue.) = 11.0.0.1 - 2024.04.18 = * Fixes an issue with HTTP headers in the new method of retrieving ICS feeds. The issue was hotfixed approximately one hour after the initial release, but some sites may have picked up the update within that hour. This update also increases the timeout from 5 to 30 seconds, to address potential issues with retrieving very large ICS files. = 11.0.0 - 2024.04.18 = **PLEASE NOTE: This version includes a significant rewrite of the function that retrieves the contents of ICS feed URLs. It is now using the built-in `wp_remote_get()` WordPress function (instead of PHP cURL and fopen functions as before), so it _should_ be fully compatible with all existing installations. However, if you encounter any new issues, please visit the [WordPress Support Forums](https://wordpress.org/support/plugin/ics-calendar/) for assistance.** * Admin Settings: * Added **Allow access to these hostnames that resolve to reserved IP addresses** setting. This allows sites to access calendar servers on the same physical IP address as the web server, or within the same internal network. Previously this needed to be handled using custom PHP code as outlined in [this blog post](https://icscalendar.com/how-to-retrieve-feed-urls-over-a-local-network-private-reserved-ip-addresses-in-ics-calendar-10-12-2-and-later/). * Code Refactoring: * Replaced previous cURL and fopen logic with `wp_remote_get()` in `R34ICS::_url_get_contents()` method. Correspondingly, deprecated the `curlopts` and `method` parameters. _Note: The second and fourth parameters of the protected method `R34ICS::_url_get_contents()` were **removed** rather than deprecated. No external plugins should be using this method other than ICS Calendar Pro, which has been correspondingly updated._ * Removed admin notice checking for presence of cURL or fopen functions. * WordPress Playground: * Added `r34ics_is_playground()` function to detect if running in [WordPress Playground](https://playground.wordpress.net). * Miscellaneous: * Added missing fourth parameter to `r34ics_event_description_html` action. * Changed Room 34 Creative Services logo link on admin page sidebar. * Fixed PHP warning in `r34ics_system_report()` in rare situations where `get_option('active_plugins')` returns a plugin that is not included in `get_plugins()`. (May occur if the plugin has been manually removed from the file system.) * Modified `R34ICS::event_description_html()` to handle `$event['start_time']` and `$event['end_time']` as alternatives to `$event['start']` and `$event['end']`. * Updated header details in `ics-calendar.php`. * a11y: * Changed CSS for `.ics-calendar-arrow-nav > *.inactive` to completely hide inactive arrow navigation elements (e.g. "Previous" while on first month, "Today" while on current month, etc.) rather than screening back their opacity. Modified jQuery corresponding to these elements to dynamically add `aria-hidden="true"` when `inactive` class is added. * i18n: * Added and updated translation strings. * Bumped 'tested up to' version to 6.5.2. = 10.14.1.5 - 2024.04.05 = * AJAX: * Fixed logic that replaces `FILTER_SANITIZE_STRING` (introduced in version 10.13.1.1) to properly account for array values in shortcode parameters. * List and basic views: * Eliminated unnecessary JavaScript fade-in on load, except when `pagination` or `ajax` option is in use. = 10.14.1.4 - 2024.04.01 = * General: * Fixed issue with `extendmultiday` where it would extend one-day events as well as multi-day events. * List and basic views: * Added detection of the "current" page when pagination is turned on. The page will now automatically load with the page containing the current date displayed, instead of the first page, making list and basic views with pagination more useful when `pastdays` is set to include past events in the list. (Note: The pagination is set independently of the date, so it's possible the page may still load with a few past events displaying before the current date's events, but the current date's events *will* be on the page.) * Minor template code refactoring. * Month and week views: * Added call to `r34ics_show_hide_headers()` function when clicking "Show past events" on mobile, as a possible solution to a client-side issue with date headers not displaying when the window is left open over a break between months. (Due to the nature of the bug, it can only be tested at the transition between months.) = 10.14.1.3 - 2024.03.08 = * AJAX: * Added failure handling that will retry the AJAX request up to 5 times in situations where the AJAX response is only `1` instead of the proper calendar HTML output. After the fifth failure, AJAX will report `ICS Calendar AJAX request failed for element...` to the JavaScript console. (Previous versions would fail in this way after one attempt.) * Bug fix: * Modified conditional introduced in version 10.14.1.2, to resolve possible `Undefined array key "VALUE"` PHP warnings. * Misc: * Removed unnecessary `global $wp_locale;` line from all templates. * Added `changelog.txt` and moved older changelogs to that file; truncated changelog in `readme.txt` to comply with WordPress repository requirements. * Bumped 'tested up to' version to 6.5. = 10.14.1.2 - 2024.03.06 = * Added a workaround for a possible issue with the [ics-parser](https://github.com/u01jmg3/ics-parser) library on recurrence exclusions (`EXDATE`) where excluded event dates are still being included in the output array. * Updated embedded ics-parser library to v. 3.3.1 (carrying over existing modifications). = 10.14.1.1 - 2024.02.21 = * JavaScript: * Replaced `wp_localize_script()` with the now-preferred `wp_add_inline_script()` in `R34ICS::enqueue_scripts()` method. Fixes an issue where the "localized" script was not actually rendering in the page in some situations. * Modified logic that hides "Show past events" on mobile month/week views, when there are no past events in the current month, to account for the `.month_list_all` class (an ICS Calendar Pro-only feature). = 10.14.1 - 2024.01.25 = * Added **Remove "Add ICS Calendar" button in Classic Editor** admin option to leverage the existing `r34ics_display_add_calendar_button` action without the need for custom PHP code. * Added `r34ics_purge_calendar_transients` action to allow external cleanup functions to fire off on the **Clear Cached Calendar Data** utility. * JavaScript: added type casting to `r34ics_boolean_check()` function to prevent occasional AJAX loading errors. * i18n: New translation strings. = 10.14.0 - 2024.01.11 = * AJAX: * Encapsulated AJAX client-side logic in a new `r34ics_ajax_init()` function, and added `r34ics_ajax_start` and `r34ics_ajax_end` events. * Two changes to address the issue of AJAX requests occasionally outputting only "1" instead of the calendar: 1. Added a check on the `R34ICS::display_calendar()` method for transient data containing only "1" instead of the calendar, bypassing the transient cache if true. 2. Added handling to the AJAX output itself to suppress display of the "1" if it still occurs, and write an error message to the console. We are still investigating the root cause of this issue. * JavaScript: * Added JavaScript version of `r34ics_boolean_check()` function. * List view: * Added text underline to events that have a clickable description when the `toggle` option is turned on, to give users a visual cue. = 10.13.1.1 - 2023.12.16 = * AJAX: Replaced `FILTER_SANITIZE_STRING`, deprecated in PHP 8.1, with a new sanitization method, and added conditional to prevent processing the AJAX output if URL is missing. = 10.13.1 - 2023.12.08 = * Basic view: * Switched event layouts to use CSS flexbox instead of float, to address issues where long event titles may force all text to wrap below the date block. * Additional minor CSS adjustments. * Month view: * Added "Today" link to header navigation. Requires `monthnav` to be set to an option that includes the previous/next arrows (all except the default `select`). * Fixed bug that would prevent "Show past events" link from appearing in mobile breakpoint under certain conditions. * i18n: Added new translation strings. = 10.13.0.2 - 2023.12.04 = * Added missing logic to turn off caching if `debug="3"` is set; refactored logic for setting `reload` value. * Adjusted CSS for event hover effects to improve performance in some views in the Pro version. * Narrowed jQuery selector scope for pagination logic in List and Basic views, to fix a conflict with some views in the Pro version. = 10.13.0.1 - 2023.11.28 = * Fixed a display bug introduced in v.10.13.0 that would cause broken HTML code to appear directly on the page for some sites. (The default values for the new `htmltageventtitle` and `htmltageventdesc` parameters were not being set correctly for sites with the **Use new parameter defaults (v.10.6)** setting turned off.) * Renamed new `r34ics_filter_allowed_heading_tags()` function to `r34ics_allowed_heading_tags_check()`, since it's not technically a filter. * Hotfix: Added `.event-info` wrapper element in Basic view to prevent longer event descriptions from wrapping below the floating date block element. = 10.13.0 - 2023.11.27 = * New Features: * **Added new "Basic" view.** Use `view="basic"` in your shortcode. This is a variant of List view that does not group events by date/month. By default, the date of each event is displayed in a prominent date box. For a "true" basic view, also add `nostyle="true"` to your shortcode. This view supports most of the same parameters (and associated functionality) as List view, including `count`, `pagination`, `color`, `eventdesc` and `toggle`. * All views: Added `` wrapping of date elements (day of week, month, day number, year, etc.) with a new `data-date-format` attribute on each tag. Allows for custom styling of the components of a date. This feature is used for the date boxes in the new Basic view, but also allows for custom styling of List view. * New shortcode parameters: * `htmltageventdesc`: Sets the HTML tag used for the `.eventdesc` element on events. * `htmltageventtitle`: Sets the HTML tag used for the `.title` element on events. * `htmltagtime`: Sets the HTML tag used for the `.time` element. * `nostyle`: Turns off most of Basic view's default HTML styling for a "true" basic view that you can customize with your own CSS. (Currently has no effect on any other views.) * New filter: * `r34ics_display_add_calendar_button`: Use with the `__return_false` function to turn off the "Add ICS Calendar" button in Classic Editor. * Functionality changes: * The `paginationposition` parameter in List and Basic views now defaults to `above` rather than `below`. * Minor code refactoring in `templates/calendar-list.php` and `functions.php`. = 10.12.2 - 2023.11.13 = * Admin Utilities: * Removed raw data output from ICS Feed URL Tester utility. * Minor refactoring of `r34ics_system_report()` function. * Security: * Streamlined URL validation code added in v.10.12.0.4 to remove redundant custom logic, and instead rely on the WP core `[wp_http_validate_url()](https://developer.wordpress.org/reference/functions/wp_http_validate_url/)` function. This change also adds the ability for site developers to use the `[http_request_host_is_external](https://developer.wordpress.org/reference/hooks/http_request_host_is_external/)` filter to selectively grant access to specific internal network URLs, e.g. for retrieving ICS feeds from locally hosted mail/calendar servers. * Restricted debugging data collection to users with the Administrator role, and removed raw retrieved URL data from all debugging tools. * i18n: * Updated translation strings. * Vendors: * Updated ICS Parser library to 3.3.1 (with modified namespace, as usual, to avoid plugin conflicts). = 10.12.1 - 2023.11.06 = * Bug fix: Corrected CSS logic for `combinemultiday` that would incorrectly display event titles if site's **Week starts on** value was anything other than Sunday. * CSS: Tweaks to `compact` in Month and Week views. * Hooks: Added `r34ics_eventdesc_include_time_and_title` filter. This allows for additional external conditionals to determine whether or not the time and title for events should be included in the `.eventdesc` element. * Misc: Removed a few redundant lines of code. = 10.12.0.4 - 2023.10.30 = * Added an extra security check for extremely rare conditions where the security fix added in versions 10.12.0.2 and 10.12.0.3 may not have been adequate. This fix has been backported to all earlier affected versions of the plugin in the repository. = 10.12.0.3 - 2023.10.24 = * **Critical bug fix:** Addresses an additional condition of the same issue first addressed in 10.12.0.2. This is not a second bug, rather a more thorough and effective solution to the same bug. This fix has been backported to all earlier affected versions of the plugin in the repository. * Minor code refactoring. = 10.12.0.2 - 2023.10.23 = * **Critical bug fix:** Addresses a security issue identified in earlier versions of the plugin. Per best practices we are not identifying the specific details of the issue or the fix. This fix has been backported to all earlier affected versions of the plugin in the repository. * Removed unnecessary retrieval of `/etc/issue` file contents from `r34ics_system_report()` function. (This is unrelated to the critical bug fix noted above.) = 10.12.0.1 - 2023.10.16 = * Bug fix: Added `stopPropagation()` to jQuery logic for `toggle` feature. The modified selector added in version 10.12.0 was inadvertently causing the code to run twice (instantly re-closing the toggle) when clicking on the event title itself. = 10.12.0 - 2023.10.06 = * a11y: Added `tabindex="0"` to all events and corresponding CSS changes to make event hover descriptions tab-accessible. **Note:** We are still troubleshooting some issues with tabbing to links contained within the description block. However, we are releasing this feature as-is due to the immediate accessibility improvements it can offer. * Developer: Removed deprecated filter names. = 10.11.6 - 2023.10.03 = * Parser: Added automatic support for Microsoft Outlook `X-ALT-DESC` as primary event description, falling back to standard `DESCRIPTION` field if `X-ALT-DESC` is not present. * i18n: Swedish translation updates. = 10.11.5.2 - 2023.09.11 = * Admin: Added `post_max_size` and `upload_max_filesize` to PHP Settings section of System Report. * CSS: Fixed issue of week numbers wrapping in certain themes. * i18n: Updated translation files and resolved some inconsistencies. * List view: Added missing support for `timeformat` setting on multi-day event headings. = 10.11.5.1 - 2023.07.27 = * Patched embedded [ics-parser](https://github.com/u01jmg3/ics-parser) library with new version that incorporates changes mentioned in notes for v. 10.11.3 below, along with some additional fixes that may have caused correctly calculated final recurrences from appearing. = 10.11.5 - 2023.07.12 = * List view: * Fixed event description excerpt appearing in lightbox (in addition to full description). * Fixed missing times on multi-day events with start and/or end times. * Fixed redundant dates/title on multi-day events. * Mobile breakpoint: * Bug fix: Event titles and times appearing twice on mobile breakpoint when `nomobile` is used. * New feature: Changed options for `compact` parameter to support `mobile` and `desktop` as well as the previous boolean options. (Allows for CSS modifications that only apply to mobile or desktop breakpoints.) **Use `compact="mobile"` along with `nomobile="true"` with month view to get a smaller table-based month layout on mobile devices.** This feature is still considered "experimental" and is subject to change; your feedback is welcomed! * Bumped "Tested up to" to 6.2. = 10.11.4 - 2023.07.05 = * Added logic to collapse full day name headers to "short" abbreviated versions on mobile for table-based views. = 10.11.3 - 2023.06.21 = * Improvements: * Added `r34ics_raw_feed_strip_embedded_images()` function to automatically strip embedded images (e.g. ``) from event descriptions. In practice these have not been rendering properly, and they can potentially introduce a large enough explosion of the ICS data array size to cause PHP out of memory fatal errors. This new function runs on the `r34ics_display_calendar_preprocess_raw_feed` filter, to reduce the data size very early in the process, prior to initial parsing. * Refactored `R34ICS::_url_get_contents()` method with additional HTTP headers, improved user agent string handling, and support for compressed feeds. Specifically designed to address an issue with Kayak, however this may also resolve issues with some other hosts. * Deprecation: * Removed workaround code in deprecated `r34ics_url_get_contents()` function. * Bug fixes: * Identified and patched a bug in the [ics-parser](https://github.com/u01jmg3/ics-parser) library that causes stray erroneous instances of recurring events if their condition has no match in a given month. (For example, an event that recurs every 5th Saturday, in months that do not *have* a 5th Saturday, was appearing incorrectly near the beginning of the month.) * Vendors: * Updated embedded ics-parser library to v. 3.2.1 (carrying over existing modifications). * Removed extraneous files from embedded ics-parser. * i18n: * Updated Korean translation strings. Thanks to [@modelaid](https://profiles.wordpress.org/modelaid/) 한호성 for providing the new translations! * Miscellaneous: * Updated debugging output for cURL connections. = 10.11.2 - 2023.05.09 = * Miscellaneous: * Removed extraneous `r34ics_purge_cache` item from System Report and debug data. * i18n: * Added support for `G.i` in `r34ics_time_format()` function. * Added Slovenian translation. (Thanks, Peter!) = 10.11.1 - 2023.04.29 = * Bug fixes: * Fixed bug caused by changed shortcode defaults (generating dynamic values for `guid` and `startdate`) which was preventing ICS Calendar caching from functioning properly. The issue would cause an explosion of separate transient entries in the `wp_options` data table. * Miscellaneous: * Added warning on the admin page not to post the System Report in the WordPress Support Forums. * Removed `header` as an allowed tag in the `r34ics_allowed_heading_tags()` function used with the `htmltagtitle`, `htmltagmonth` and `htmltagdate` parameters because it was not a logical inclusion for this purpose. The accepted values are now `h2`, `h3`, `h4`, `h5`, `h6`, `p`, and `div`. * i18n: * Updated translation strings. = 10.11.0 - 2023.04.15 = * New features: * Added `htmltagtitle`, `htmltagmonth` and `htmltagdate` parameters, to allow SEO-focused developers to control the tags used for the calendar title, month and date headings in the calendar. (The month headings are used in month and list view; the date headings are used in list view only. Neither is used in week view.) Values are the names of the HTML tags (without the angle brackets), e.g. `htmltagmonth="div"`. **Accepted values are: `h2`, `h3`, `h4`, `h5`, `h6`, `p`, `div` and `header`.** (`h1` is deliberately excluded; for SEO purposes `h1` should only appear once per page as the main title heading, and does not belong in ICS Calendar output.) The defaults are unchanged; if these parameters are omitted from the shortcode, ICS Calendar will continue to use `h2` for the calendar title, `h3` for month and `h4` for dates. *Note: This featured required some minor CSS and JavaScript changes: code that was previously referring directly to `h2`, `h3` and `h4` tags is now using the corresponding `.ics-calendar-title`, `.ics-calendar-label` and `.ics-calendar-date` CSS classes, respectively. If you have custom CSS or JavaScript in your site based on these tags, you'll need to change it to use the CSS classes instead.* * Added `r34ics_allowed_heading_tags()` function to support new `htmltagtitle`, `htmltagmonth` and `htmltagdate` parameters. * Bug fixes: * Fixed bug in week view introduced in 10.10.1 that would prevent current and future days from displaying under default conditions. (This occurred due to a change in how the value for `startdate` is determined.) * Miscellaneous: * Minor refactoring in `R34ICS::shortcode()`. = 10.10.1 - 2023.04.07 = * Month view: * Fixed doubled-up week number and table cell misalignment when the first day of the month is also the first day of the week. * Fixed logic for filler cells at end of month that would add too many extra cells when configured "Week starts on" day is not Sunday or Monday. * Week view: * Fixed bug that would cause the previous week to display instead of the current week if `limitdays` is set, when using the new defaults introduced in v.10.6. * Fixed layout bug that may occur (compressing the previous and current weeks into a single view) when the first day of the month is also the first day of the current week. * General: * Modified regular expression in `r34ics_scrape_url_from_string()` to support single quotes as attribute value delimiter in HTML link tags. * Minor updates to `readme.txt` content. = 10.10.0 - 2023.03.31 = **Please note:** With this version we are implementing a new development cycle and release process. Update releases will be limited to *at most* once per week, unless there is a critical issue. You can read more about this change on our [blog](https://icscalendar.com/testing-a-new-development-cycle/). * New features/enhancements: * Added `CONTACT`, `DURATION`, `FREEBUSY`, `GEO`, and `RESOURCES` fields to output .ics files generated when using the `eventdl` option. * Admin: * Restricted System Report access to admins/super admins only. * Bug fixes: * Fixed: Added `unbind()` to jQuery for stepping through previous/next month links in navigation, to resolve an issue that caused the links to skip one or more months on pages that contain multiple AJAX-loaded calendars. * Fixed redundant date/event title text in list view on multi-day events. * Refactored list view pagination. Logic to determine whether or not to show the links is now directly based on whether or not there is more than one "page" in the HTML output. (Because of how the event data array is structured, it's not possible to know how many pages will be in the output until the HTML is actually generated in the template.) * Functional changes: * Changed default value for `guid` in `R34ICS::shortcode()` from `null` to an auto-generated UID using `r34ics_uid()` function. This was already happening in `R34ICS::display_calendar_ics_data_init()` anyway, but by moving it to the `shortcode()` method, temporary AJAX container HTML elements can now have the same `id` attribute as the `.ics-calendar` element that will replace them, which will be useful for future AJAX-related development. * Changed JavaScript trigger from `change` to `click` for color key checkboxes. Should have no significant impact on typical usage but may help facilitate some future development. * Changed jQuery for color key feed toggle checkboxes from using `.hide()` and `.show()` to using a CSS class. This will allow for greater flexibility in how different views handle the checkboxes. * Changed logic for `maskinfo` in `R34ICS::event_description_html()` to hide the event details box regardless of the `filler` value. * Limited scope of CSS for `combinemultiday` to month (and week) view table layouts only. * Moved `r34ics_init()` call from `jQuery(function())` into `jQuery(window).on('load')` to ensure page is fully ready before execution. * Refactored parts of `R34ICS::display_calendar()`, mainly around standardizing variable names between ICS Calendar and ICS Calendar Pro. * Developer: * Added `r34ics_init_start` and `r34ics_init_end` custom jQuery events at start and end of `r34ics_init()` function, allowing developers to add their own callbacks that fire off just before and after ICS Calendar initializes itself on the page. * Removed PHP deprecated notice for `limitdayscustom` because it is not actually deprecated, and may be legitimately included in the data passed by ICS Calendar Pro. = 10.9.1.1 - 2023.03.24 = * Fixed logic issue in `r34ics_location_map_link()` introduced in v.10.9.0 that may trigger PHP warnings in some ICS Calendar Pro views. = 10.9.1 - 2023.03.24 = * Added `paginationposition` parameter, with accepted values `above`, `below` and `both`, to determine where pagination links appear in list view. Default is `below`. * Fixed bug in list view that may show pagination links even when there is only one page of events to display. = 10.9.0 - 2023.03.24 = * Added less commonly used iCalendar spec fields `CONTACT`, `DURATION`, `FREEBUSY`, `GEO`, and `RESOURCES` to event data array, to support enhancements in this version plus future development. * Added `mapsource` parameter, accepting values `google`, `bing` or `openstreetmap`. Defaults to `google` if left blank. *Note: This parameter has no effect unless `location="maplinks"` is also set.* * Added `resources="true"` parameter to show resources (rooms, equipment, etc.) assigned to the event, in event description hover box/lightbox. (Note: This data is not present in most feeds.) * Modified `organizer` and `location` options to incorporate data from `CONTACT` and `GEO`, if present in the feed. *Note: Because we do not have "real world" feed examples that use these properties, this functionality is considered "beta" at this time. Your [feedback](https://wordpress.org/support/plugin/ics-calendar/) is welcomed!* * i18n: Translated plugin description, added new text strings. = 10.8.8.3 - 2023.03.20 = * CSS fix for `combinemultiday` to prevent its block element styling from affecting list-style views. = 10.8.8.2 - 2023.03.18 = * Removed conditional in `r34ics_feed_colors_css()` that would prevent output unless either the `color` or `tablebg` shortcode parameter was set. This ensures that the `r34ics_feed_colors_css` filter can be applied in conditions that are independent of those parameters. = 10.8.8.1 - 2023.03.16 = * Improved handling of [ICS Parser](https://github.com/u01jmg3/ics-parser) v. 3.2.1 changes. = 10.8.8 - 2023.03.16 = * Changed handling of data for multi-day events. They are now grouped as all-day style events even if they have start/end times, and those start/end times are shown in the hover/toggle box rather than displayed directly in the calendar grid. * Ongoing improvements to `combinemultiday` presentation. = 10.8.7.2 - 2023.03.14 = * Added `_r34ics_array_filter_recursive()` function for use by `_r34ics_debug()` to produce more legible output for feeds with very long event descriptions. * Refactored logic around `maskinfo` to more effectively conceal event details when this option is being used. * Updated some event properties to handle changes introduced in [ICS Parser](https://github.com/u01jmg3/ics-parser) library v. 3.2.1. Should resolve some issues relating to missing content, e.g. embedded images. = 10.8.7.1 - 2023.03.14 = * Added locale to cURL HTTP headers to facilitate translating auto-generated feed text (e.g. Google Meet link info) into the language configured in site settings. * CSS improvements to multiday events when using the new experimental `combinemultiday` setting. * Fixed deprecation notice that may appear in event description hover boxes if an event has a URL but no description, after changes in v. 10.8.6. * Fixed fatal error with `legacyparser` parameter introduced with use of the `Event` class's new `__get` method in v. 10.8.6.2. (Note: This fix, as currently coded, makes `legacyparser` incompatible with `hideprivateevents`.) = 10.8.7 - 2023.03.13 = * Added **experimental** new parameter `combinemultiday="true"`. This is designed to address a common request for better handling of multi-day events. Due to the way the Month and Week view templates are designed, it is not feasible to make these into HTML elements that truly span across multiple day cells in the calendar table. This update does not restructure the templates; instead, it uses an unconventional CSS technique to simulate an element spanning multiple cells. *Please let us know about any issues you encounter, or your general feedback, in the [support forums](https://wordpress.org/support/plugin/ics-calendar/).** * Added logic to read plugin version from `ics-calendar.php` header comments rather than hardcoding a constant value. * Changed most instances of code that were reading the plugin version from the R34ICS object property to instead read the `r34ics_version` option using the `get_option()` function. * Some minor code/comment reformatting. * Hotfix: Modified `R34ICS::_date_events_sort()` method to always group multi-day events first before single-day all-day events. This should reduce the likelihood of `combinemultiday` "breaking" if a single-day all-day event occurs in the middle of a multi-day event's span. = 10.8.6.2 - 2023.03.10 = * Fixed bug with `hideprivateevents` due to changes introduced in the [ICS Parser](https://github.com/u01jmg3/ics-parser) library v. 3.2.1, which was updated in ICS Calendar v. 10.8.4. ICS Parser moved the `class` property of the event object into a private `additionalProperties` array, with a magic "getter" function to retrieve the data. ICS Calendar's `hideprivateevents` logic has now been updated accordingly. = 10.8.6.1 - 2023.03.09 = * Added check for presence of event URL in event description, to prevent possibly appending a redundant link, after changes introduced in version 10.8.6. * Modified use of `r34ics_scrape_url_from_string()` in extracting event URLs from descriptions, so this is only done when the description contains a single URL. * Refactored `r34ics_scrape_url_from_string()` function to use `preg_match_all()` and remove duplicate URLs from matches. = 10.8.6 - 2023.03.08 = * Added logic to extract URLs from event descriptions, if event does not already have the URL field. This is an adaptation to recent changes to Google Calendar (and possibly other platforms) that removed the dedicated URL field from the event editing screens, in favor of including links directly in event descriptions. By automatically inserting the extracted URL into the event array's `'url'` node, all existing functionality such as `linktitles` will automatically use these extracted URLs when possible. (Also added `r34ics_scrape_url_from_string()` function to support this capability.) * Minified `debug.css`. = 10.8.5 - 2023.03.06 = * Print CSS now includes event descriptions in table layout. * Set minimum width of 700 pixels, with horizontal scrolling, on table-based views (month and week) on mobile breakpoint when `nomobile="true"` is set in the shortcode. Only the calendar table scrolls horizontally, and it should not affect any other elements on the page. While horizontal scrolling is not ideal, it provides a way for the table cells to be a reasonable width (100 pixels each) for improved table readability on phones and other small-screen mobile devices. = 10.8.4 - 2023.03.06 = * Added workaround to ICS Parser library code issue that was causing `Warning: Undefined array key 4` PHP messages. * Bumped [ICS Parser](https://github.com/u01jmg3/ics-parser) library to v. 3.2.1. **A note about PHP error messages:** If your live site is displaying error messages of this type (from ICS Calendar or *any* plugin, or WordPress core), this means you have debugging turned on, which is not recommended for live sites, both because it looks bad, and also because it can be a slight security risk by potentially revealing details of your server configuration. Check your `wp-config.php` file and make sure the `WP_DEBUG` constant is set to `false`, and if the error messages still appear, you or your server admin may need to change the `display_errors` PHP setting in your `.htaccess` or `php.ini` file. = 10.8.3 - 2023.03.01 = * Added multi-day event date range to event description (in hover, toggle and lightbox). Applies to month and week views only. (List view already displays multi-day events with a separate date range heading.) * Refactored `R34ICS::event_description_html()`, `R34ICS::event_label_html()` and `R34ICS::event_sublabel_html()` methods. = 10.8.2.1 - 2023.02.20 = * Added missing minified assets to repository. = 10.8.2 - 2023.02.18 = * Consolidated `r34ics-ajax.js` into `script.js`. * Minified JS and CSS files. = 10.8.1.1 - 2023.02.17 = * Fixed bug that prevented saving **Transient (cache) expiration** option on admin page. * Modified logic for whether or not to use transients for retrieving the raw feed, to ensure the raw feed data is not retrieved from the cache if `reload` is set to a smaller value than the **Transient (cache) expiration** option. * Bumped "Tested up to" to 6.2. = 10.8.1 - 2023.02.14 = * Added `hideprivateevents` option, which will exclude any events containing `CLASS:PRIVATE` or `CLASS:CONFIDENTIAL` from display. Also added `R34ICS::r34ics_display_calendar_exclude_event()` method for handling this and any future conditional exclusions, leveraging the existing `r34ics_display_calendar_exclude_event` filter. * Fixed bug in list view template by adding missing date variables to resolve PHP message `Warning: Undefined variable $d in wp-content/plugins/ics-calendar/templates/calendar-list.php on line 237` caused by with changes in version 10.8.0. * Fixed bug in `r34ics_has_desc()` function that would display hover box for recurring events when `hiderecurrence` is set. (Was incorrectly checking for `skiprecurrence`, which determines whether recurring events are displayed at all.) * Minor code refactoring. * Updated plugin description in `readme.txt` and `ics-calendar.php`. = 10.8.0 - 2023.02.13 = * Added `data-events-count` and `data-feed-keys` attributes to `.ics-calendar-date-wrapper` elements in list view. * Fixed CSS padding issue on multi-day events in list view with `color` and `compact` set. * Rewrote portions of the admin page to provide more useful guidance on getting started with the plugin, and added a link to the new online [Shortcode Builder](https://icscalendar.com/shortcode-builder/). * Removed any margin on `:last-child` element (which may be generated by the site theme) in `.descloc` and `.eventdesc` elements. * Updated ICS Calendar branding assets to new colors. * Updated `readme.txt` contents that appear on WordPress Plugin Directory to reflect availability of Shortcode Builder, and other minor tweaks. * i18n: Updated translation strings. = 10.7.3 - 2023.02.07 = * AJAX fixes: * Added `r34ics_url_uniqid_update()` function to encapsulate updating the `r34ics_feed_urls` setting, and updated `r34ics_url_uniqid() to use it to create a new ID if one doesn't already exist, to ensure that new URLs can be retrieved via AJAX without first being loaded by the regular method. * Fixed issues with ampersand entities in feed URLs and slash-escaped apostrophes and quotation marks. * Fixed PHP 8 deprecation notice in `R34ICS::display_calendar_ics_data_init()` method. * Hotfix: Added logic to prevent an empty row at the top of table-based views (month, week) when the first day of the month is also the first day of the week. = 10.7.2.1 - 2023.02.06 = * Changed conditional checking for deprecated shortcode parameters to reduce the possibility of unnecessary deprecation notices. * Corrected prefix on some hooks from `r3417_` to `r34ics_`. **Note:** If your site contains any custom code using ICS Calendar's hooks (actions/filters), be sure to replace any instances of `r3417_` with `r34ics_` in your code. (Retained deprecated old filter names for now.) * Fixed alphabetization of functions in `functions.php` file. = 10.7.2 - 2023.02.02 = * Added CSS color variables to admin pages. * Added workaround for an issue with the new 10.6 default value for `pastdays`, when `limitdays` is set and calendar is starting on "today". (Adds `pastdays` and `limitdays` together, to ensure `limitdays` is setting the number of days *in the future* rather than only showing past events.) * Updated **ICS Feed URL Tester** on admin page with additional diagnostic information. = 10.7.1.1 - 2023.02.01 = * **Restored standard script enqueuing.** This effectively undoes the change introduced in version 10.6.0, which has proven to introduce a number of issues with custom CSS and various optimization plugins, along with problems with the Customizer and FullCalendar features in ICS Calendar Pro. We will continue to troubleshoot these issues and hope to restore conditional enqueuing at a later time, but for now it is best for all users of the plugin if we revert to the standard enqueuing methods. = 10.7.1 - 2023.01.31 = * Fixed conditional loading of `debug.css` for users with `manage_options` capability only (since the code for *displaying* the debug panel requires that capability anyway). * Fixed possible "undefined index" PHP warning on `r34ics_calendar_view` action in `R34ICS::shortcode_defaults_merge()` method. * Removed **Load CSS and JS files on wp_enqueue_scripts action** option, as it was causing a handful of issues with calendar rendering and conflicts with JS/CSS optimization plugins. Replaced with *registering* the JS/CSS files, and later conditional enqueuing as needed. * Updated `Author URI` in plugin file to [ICS Calendar](https://icscalendar.com) to make it easier for users to find the correct site when seeking direct support or commercial upgrades. ICS Calendar is still owned and developed by [Room 34 Creative Services, LLC](https://room34.com). = 10.7.0.2 - 2023.01.17 = * Fixed issues in list view introduced in 10.7.0 that may result in extra closing `article` tags, or missing closing `div` tags (if using `pagination`). * Moved list view pagination links outside of `article` tag to resolve some interaction issues. * Restyled list view pagination elements as `a` tags for better UX. * Removed animate scroll of pagination on list view due to inconsistent results. = 10.7.0.1 - 2023.01.16 = * Bumped version due to error during Subversion commit on version 10.7.0. (There are no code differences between this version and a properly updated copy of 10.7.0.) = 10.7.0 - 2023.01.16 = * Added new `pagination` parameter for list view. Allows for long event lists to be broken up into smaller, paginated groups. Has no effect on any other views. * Added **Transient (cache) expiration** option to **Administrative Options** on admin page. This setting was previously hardcoded to 3600 unless using ICS Calendar Pro. * Moved **Administrative Options** up higher on admin page. (This section of the page is only accessible to users with the Administrator role.) Other minor HTML changes to admin page. * Updated calendar table cell border colors for consistency between views. * Updated System Report to include ICS Calendar's saved settings. = 10.6.1.1 - 2023.01.09 = * Fix for possible PHP fatal error "Uncaught Error: Call to undefined function is_plugin_active()" on admin pages immediately after version update. = 10.6.1 - 2023.01.08 = * Added **Load CSS and JS files on wp_enqueue_scripts action** option to admin page. This restores the old functionality of loading ICS Calendar's CSS and JS files in every page. * Fixed an additional logic issue with new default settings for `title` and `description` on calendars with multiple feeds. * i18n: Updated translation files. = 10.6.0.1 - 2023.01.08 = * Fixed logic issue with new default settings for `title` and `description`. = 10.6.0 - 2023.01.07 = * Added `r34ics_debug` filter. * Added deferred admin notice handling for improved display of notices on installation and update. * **Changed default values for 11 parameters.** The changes allow many common options to be applied without having to be explicitly included in the shortcode. The **Use new parameter defaults (v.10.6)** box on the ICS Calendar admin page must be checked to take advantage of the new defaults. (This box will be checked automatically in new installations, but for older installations, an administrator will need to specifically check the box for the new defaults to take effect.) These changes are explained in more detail in [this blog post](https://icscalendar.com/updated-parameter-defaults-in-ics-calendar-10-6/). * Fixed bug that may cause `guid` to be blank, which causes JavaScript errors in some views. * Fixed logic order issue in `R34ICS::_url_get_contents()`. * Fixed phone layout bug in week and month views with `nomobile="true"` set. * Improved display of loading animation when rendering via AJAX. * Modified `R34ICS::event_description_html()` to allow `$has_desc` parameter to force output. (Useful in Pro/custom views that may not allow full event titles to fit in table/grid layout.) * Modified logic for `columnlabels` to default to `short` if `nomobile="true"` is set and `columnlabels` is not specified. * Modified the ICS Calendar admin page to support configuration settings, under the **Administrative Options** heading at the bottom of the page. This area of the page will only be available to users with the Administrator role. * Moved loading of all CSS and JS to `wp_footer`, loaded dynamically by the shortcode function, so ICS Calendar's assets only load on pages that actually contain a calendar. * Refactored logic for setting some parameters' default values when processing the shortcode. (Changed handling of some empty values; reformatted code to split long ternary operators onto multiple lines for readability.) * Removed `.r34ics-hidden-on-load` CSS class and restored inline `style="display: none;"` with addition of `R34ICS::safe_style_css()` method to resolve conflict with `wp_kses()` functions. * Removed full `Plugin Data` dump from debug mode 1. * Updated CSS/layout of ICS Calendar admin page for more consistency between ICS Calendar and ICS Calendar Pro. * Miscellaneous minor CSS tweaks. * i18n: Updated translation files. **Note regarding the validity of `