Skip to content

Display the module Course(s) field description below the select - #8090

Merged
albarin merged 2 commits into
trunkfrom
fix/module-courses-field-description
Jul 14, 2026
Merged

albarin merged 2 commits into
trunkfrom
fix/module-courses-field-description

Conversation

@albarin

@albarin albarin commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Proposed Changes

On the module add and edit screens, the "Search for and select the courses…" description is rendered as an inline <span> right after the Course(s) select, so it flows beside the field and wraps awkwardly around it.

This renders it as a block-level <p class="description"> instead, so it displays on its own line below the field. Both the "Add New Module" form and the module edit screen share this renderer, so both are fixed.

Screenshots

Before After
Screenshot 2026-07-14 at 18 59 29 Screenshot 2026-07-14 at 18 57 15

Testing Instructions

  1. Go to WP Admin → Sensei LMS → Modules.
  2. In the Add New Module form, confirm the description "Search for and select the courses that this module will belong to." appears on its own line below the Course(s) field.
  3. Click an existing module to open its edit screen and confirm the same description appears below the courses select, not beside it.

@albarin albarin added this to the 4.26.2 milestone Jul 14, 2026
@albarin
albarin requested a review from Copilot July 14, 2026 16:59
@albarin
albarin marked this pull request as ready for review July 14, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the admin UI on the Sensei LMS Modules add/edit screens by changing the Course(s) field helper text from an inline element to a block-level description so it renders beneath the select instead of wrapping awkwardly alongside it.

Changes:

  • Updated the module Course(s) multi-select description markup from an inline <span> to a block <p class="description">.
  • Added a changelog entry documenting the UI fix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
includes/class-sensei-modules.php Renders the Course(s) field description as a block-level paragraph below the select on both add and edit screens.
changelog/fix-module-courses-field-description Adds a patch “fixed” changelog entry for the admin UI description positioning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

WordPress Playground Preview

The changes in this pull request can previewed and tested using a WordPress Playground instance.

Open WordPress Playground Preview

@albarin
albarin merged commit 4afc3d3 into trunk Jul 14, 2026
22 checks passed
@albarin
albarin deleted the fix/module-courses-field-description branch July 14, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Sponsor
SponsoredKunjungi sekarang
Promo