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
13 changes: 11 additions & 2 deletions .github/workflows/deploy-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,24 @@ jobs:
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
with:
php-version: 8.5
# The slides importer's phpoffice packages need zip and gd
extensions: zip, gd

- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"

- name: Cache Composer dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: /tmp/composer-cache
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

# Composer runs on the runner, not in a container, so the plugin installs
# in install-ssp get the PHP extensions above, npm and a git checkout the
# runner owns
- name: Install dependencies
uses: php-actions/composer@8a65f0d3c6a1d17ca4800491a40b5756a4c164f3 # v6.1.2
run: composer install --no-interaction --no-progress --prefer-dist

- name: Install phpcs
run: vendor/bin/phpcs -i
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## [0.1.67](https://github.com/CodingBlackFemales/wordpress/compare/v0.1.66...v0.1.67) (2026-10-30)

### Bug Fixes

* **academy:** let content staff edit media details ([9a28059](https://github.com/CodingBlackFemales/wordpress/commit/9a28059d8279ea7c8947f7964cc103e97b123edc))

## [0.1.66](https://github.com/CodingBlackFemales/wordpress/compare/v0.1.65...v0.1.66) (2026-10-29)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@
"post-update-cmd": [
"@update-ssp"
],
"install-ssp": "cd web/app/plugins/cbf-multisite;composer install;cd ../cbf-slides-importer;composer install;cd ../cbf-semantic-glossary;composer install;cd ../cbf-semantic-glossary-learndash;composer install;cd ../../../..",
"update-ssp": "cd web/app/plugins/cbf-multisite;composer update;cd ../cbf-slides-importer;composer update;cd ../cbf-semantic-glossary;composer update;cd ../cbf-semantic-glossary-learndash;composer update;cd ../../../..",
"install-ssp": "cd web/app/plugins/cbf-multisite && composer install && cd ../cbf-slides-importer && composer install && cd ../cbf-semantic-glossary && composer install && cd ../cbf-semantic-glossary-learndash && composer install && cd ../../../..",
"update-ssp": "cd web/app/plugins/cbf-multisite && composer update && cd ../cbf-slides-importer && composer update && cd ../cbf-semantic-glossary && composer update && cd ../cbf-semantic-glossary-learndash && composer update && cd ../../../..",
"lint": "phpcs --standard=phpcs.xml",
"lint:all": "@lint ./web/app/plugins/cbf-multisite ./web/app/plugins/cbf-slides-importer ./web/app/plugins/cbf-semantic-glossary ./web/app/plugins/cbf-semantic-glossary-learndash ./web/app/themes/cbf-academy ./web/app/themes/cbf-jobs",
"fix": "phpcbf --standard=phpcs.xml",
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": "cbf-wordpress",
"version": "0.1.66",
"version": "0.1.67",
"description": "[![Packagist](https://img.shields.io/packagist/v/roots/bedrock.svg?style=flat-square)](https://packagist.org/packages/roots/bedrock) [![Build Status](https://img.shields.io/travis/roots/bedrock.svg?style=flat-square)](https://travis-ci.org/roots/bedrock)",
"devDependencies": {
"@commitlint/cli": "^19.0",
Expand Down
33 changes: 33 additions & 0 deletions web/app/mu-plugins/cbf-staff-jetpack-subscriptions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* Hide Jetpack's Subscriptions panel from content staff.
*
* Jetpack's Subscriptions extension adds a newsletter panel to the block
* editor, which requests /wpcom/v2/memberships/status as soon as the editor
* opens. That endpoint needs edit_posts, which Content Editors and Reviewers
* don't have, so every editor screen shows a "Sorry, you are not allowed to
* do that" snackbar. The newsletter also needs a WordPress.com connection,
* which this site doesn't have, so the panel does nothing for anyone.
*
* This removes the extension in the admin for anyone who can edit LearnDash
* courses (edit_courses) but not posts (edit_posts). Jetpack only registers
* an editor panel or block when its extension is listed, and front-end
* rendering is left unchanged.
*
* @package CBF
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

add_filter(
'jetpack_set_available_extensions',
static function ( $extensions ) {
if ( ! is_array( $extensions ) || ! is_admin() || ! current_user_can( 'edit_courses' ) || current_user_can( 'edit_posts' ) ) {
return $extensions;
}

return array_values( array_diff( $extensions, array( 'subscriptions' ) ) );
}
);
Loading