Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Release
run-name: Publish Release

on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. 1.2.3a)'
required: true
version:
description: 'Release version (e.g. 1.2.3), default: latest'
required: false
prerelease:
description: 'Pre-release version (e.g. RC1, beta, etc...)'
required: false

permissions:
contents: write

jobs:
release:
uses: udx/reusable-workflows/.github/workflows/wp-gh-release-ops.yml@master
with:
tag: ${{ github.event.inputs.tag }}
version: ${{ github.event.inputs.version }}
prerelease: ${{ github.event.inputs.prerelease }}
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@ name: Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WP-Stateless - The Events Calendar Addon
# WP-Stateless for The Events Calendar

Provides compatibility between the [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/) and the [WP-Stateless](https://wordpress.org/plugins/wp-stateless/) plugins.

Expand All @@ -8,18 +8,18 @@ Provides compatibility between the [The Events Calendar](https://wordpress.org/p

### Notes

* Tested with The Events Calendar plugin version 6.2.8.1
* Tested with The Events Calendar plugin version 6.15.16

### Support, Feedback, & Contribute

We welcome community involvement via the [GitHub repository](https://github.com/udx/wp-stateless-the-events-calendar-addon).
We welcome community involvement via the [GitHub repository](https://github.com/udx/wp-stateless-the-events-calendar).

### Frequently Asked Questions

<details>
<summary>Where can I submit feature requests or bug reports?</summary>

We encourage community feedback and discussion through issues on the [GitHub repository](https://github.com/udx/wp-stateless-the-events-calendar-addon/issues).
We encourage community feedback and discussion through issues on the [GitHub repository](https://github.com/udx/wp-stateless-the-events-calendar/issues).
</details>

<details>
Expand Down
23 changes: 23 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Security Policy Overview

Thank you for using and contributing to our product. At [UDX](https://udx.io), we take the security of our products seriously and appreciate collaborative efforts to ensure the safety of our users and contributors.

## Reporting a Security Vulnerability

**Please do not report security vulnerabilities through public GitHub issues.**

If you find a security vulnerability, please [submit a vulnerability report](https://github.com/udx/wp-stateless-the-events-calendar/security/advisories/new). Provide detailed information about the vulnerability to help us understand and address the issue promptly. We kindly request that you avoid public disclosure until we've had the opportunity to analyze and resolve the reported issue.

## Responsible Disclosure

Responsible disclosure is crucial to maintaining the security of our product. We ask for your cooperation in allowing us sufficient time to investigate and address the reported vulnerability before making it public. We will keep you informed of our progress and make every effort to address the issue promptly.

## Supported Versions

Security updates are provided for the latest stable release. Please ensure that you are using a supported version before reporting a security vulnerability.

## Contact Information

For security-related matters, please contact our security team at [security@udx.io](mailto:security@udx.io). For general inquiries, feature requests, and other non-security-related discussions, please use our regular [issue tracker](https://github.com/udx/wp-stateless-the-events-calendar/issues).

Thank you for helping us ensure the security of WP-Stateless for The Events Calendar. Your contributions are greatly appreciated.
16 changes: 5 additions & 11 deletions class-the-events-calendar.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
<?php
/**
* Compatibility Plugin Name: The Events Calendar
* Compatibility Plugin URI: https://wordpress.org/plugins/the-events-calendar/
*
* Compatibility Description: Ensures compatibility with The Events Calendar.
* Noteably: The Events Calendar does not store media, but it uses a fake file called 'silence'
*
*/

namespace WPSL\TheEventsCalendar;
namespace SLCA\TheEventsCalendar;

use wpCloud\StatelessMedia\Compatibility;

defined( 'ABSPATH' ) || exit;

class TheEventsCalendar extends Compatibility {
protected $id = 'theeventscalendar';
protected $title = 'TheEventsCalendar';
protected $title = 'The Events Calendar';
protected $constant = 'WP_STATELESS_COMPATIBILITY_THEEVENTSCALENDAR';
protected $description = 'Ensures compatibility with TheEventsCalendar.';
protected $plugin_file = [ 'the-events-calendar/the-events-calendar.php' ];
Expand All @@ -34,6 +27,7 @@ public function module_init( $sm ) {
* @return mixed
*/
public function skip_cache_busting( $return, $filename ) {
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_debug_backtrace
$backtrace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 8 );
if( strpos( $backtrace[ 7 ][ 'file' ], '/the-events-calendar/' ) !== false ) {
return $filename;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "udx/wp-stateless-the-events-calendar-addon",
"name": "udx/wp-stateless-the-events-calendar",
"description": "Ensures compatibility with The Events Calendar",
"type": "wordpress-plugin",
"license": "MIT",
Expand Down
Loading