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
18 changes: 14 additions & 4 deletions .github/workflows/php-ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
tools: composer:v2, cs2pr

- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader --no-interaction
run: |
composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader --no-interaction --no-scripts
test -f strauss.phar || curl -o strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/download/0.16.0/strauss.phar
mkdir -p /tmp/strauss-composer-home
env -u COMPOSER_AUTH -u GITHUB_TOKEN COMPOSER_HOME=/tmp/strauss-composer-home php strauss.phar
composer dump-autoload

- name: Run PHP Code Sniffer
run: vendor/bin/phpcs --standard=.phpcs.xml.dist -q --report=checkstyle | cs2pr
Expand All @@ -42,11 +47,16 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
tools: composer:v2

- name: Install dependencies
run: composer install --no-progress --no-suggest
run: |
composer install --no-progress --no-suggest --no-scripts
test -f strauss.phar || curl -o strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/download/0.16.0/strauss.phar
mkdir -p /tmp/strauss-composer-home
env -u COMPOSER_AUTH -u GITHUB_TOKEN COMPOSER_HOME=/tmp/strauss-composer-home php strauss.phar
composer dump-autoload

- name: Run PHPStan
run: composer run phpstan
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## v2.6.6 - 08/13/2026

- Security: Restricted REST API access to global plugin settings to authorized administrators.

## v2.6.5 - 05/27/2025

- Developer: Passed the original filtered content to the restricted message filter.
Expand Down
4 changes: 2 additions & 2 deletions classes/RestAPI/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function register_routes() {
[
'methods' => WP_REST_Server::READABLE,
'callback' => [ $this, 'get_settings' ],
'permission_callback' => '__return_true', // Read only, so anyone can view.
'permission_callback' => [ $this, 'update_settings_permissions' ],
],
[
'methods' => WP_REST_Server::EDITABLE,
Expand Down Expand Up @@ -101,7 +101,7 @@ public function update_settings( $request ) {
}

/**
* Check update settings permissions.
* Check settings permissions.
*
* @return WP_Error|bool
*/
Expand Down
4 changes: 2 additions & 2 deletions content-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Content Control
* Plugin URI: https://contentcontrolplugin.com/?utm_campaign=plugin-info&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=plugin-uri
* Description: Restrict content to logged in/out users or specific user roles. Restrict access to certain parts of a page/post. Control the visibility of widgets.
* Version: 2.6.5
* Version: 2.6.6
* Author: Code Atlantic
* Author URI: https://code-atlantic.com/?utm_campaign=plugin-info&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=author-uri
* Donate link: https://code-atlantic.com/donate/?utm_campaign=donations&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=donate-link
Expand All @@ -30,7 +30,7 @@ function get_plugin_config() {
return [
'name' => 'Content Control',
'slug' => 'content-control',
'version' => '2.6.5',
'version' => '2.6.6',
'option_prefix' => 'content_control',
// Maybe remove this and simply prefix `name` with `'Popup Maker'`.
'text_domain' => 'content-control',
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "content-control",
"version": "2.6.5",
"version": "2.6.6",
"description": "",
"author": "Code Atlantic LLC",
"license": "GPL-2.0-or-later",
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Donate link: https://code-atlantic.com/donate/?utm_campaign=donations&utm_source
Tags: membership, access control, members only, content restriction, maintenance mode
Requires at least: 6.2
Tested up to: 7.0.0
Stable tag: 2.6.5
Stable tag: 2.6.6
Requires PHP: 7.4
License: GPLv3 (or later)

Expand Down Expand Up @@ -110,6 +110,10 @@ Bugs can be reported either in our support forum or we are happy to accept PRs o

== Changelog ==

= v2.6.6 - 08/13/2026 =

* Security: Restricted REST API access to global plugin settings to authorized administrators.

= v2.6.5 - 05/27/2025 =

* Tweak: Passed the original filtered content to the restricted message filter.
Expand Down
Loading