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
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.68](https://github.com/CodingBlackFemales/wordpress/compare/v0.1.67...v0.1.68) (2026-11-06)

### Bug Fixes

* **academy:** hide Jetpack's Subscriptions panel from content staff ([8814a87](https://github.com/CodingBlackFemales/wordpress/commit/8814a87a2e864b421f36753508080fffae8a911c))

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

### Bug Fixes
Expand Down
767 changes: 361 additions & 406 deletions composer.lock

Large diffs are not rendered by default.

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.67",
"version": "0.1.68",
"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
46 changes: 46 additions & 0 deletions web/app/mu-plugins/cbf-learndash-workflow-statuses.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
/**
* Show course steps in PublishPress workflow statuses in course listings.
*
* LearnDash loads a course's lessons, topics and quizzes for the front end
* with a query limited to WordPress's built-in post statuses. Steps in a
* PublishPress Statuses workflow status, such as Ready or In Progress, are
* dropped from the course listing for everyone, even though the course
* builder shows them, while steps in Draft or Pending still appear.
*
* This adds the pre-publication workflow statuses to that query, so they're
* treated like Draft and Pending. Revision statuses are left out, because
* revisions are separate posts. Who can see a step is unchanged: LearnDash
* still drops any unpublished step the viewer can't read.
*
* @package CBF
*/

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

add_filter(
'learndash_course_steps_post_status_keys',
static function ( $keys ) {
if ( ! is_array( $keys ) ) {
return $keys;
}

$statuses = get_post_stati(
array(
'internal' => false,
'_builtin' => false,
),
'objects'
);

foreach ( $statuses as $key => $status ) {
if ( ! empty( $status->moderation ) && empty( $status->for_revision ) ) {
$keys[] = $key;
}
}

return array_values( array_unique( $keys ) );
}
);
Loading
Loading