Skip to content

Release X.X - #3457

Open
brianhogg wants to merge 29 commits into
trunkfrom
dev
Open

brianhogg wants to merge 29 commits into
trunkfrom
dev

Conversation

@brianhogg

Copy link
Copy Markdown
Contributor

No description provided.

github-actions Bot and others added 7 commits November 5, 2026 15:48
* Add bulk Move to Trash action to the Orders & Transactions table

Adds a checkbox column and a Bulk actions control to the Orders &
Transactions page. Each row selects its order, and Move to Trash trashes
the selected orders like the orders post type list did. Transactions of
trashed orders are now hidden from the table.

Fixes #3448

Amp-Thread-ID: https://ampcode.com/threads/T-01a1a788-6512-731b-8fc7-babe9bdae176
Co-authored-by: brianhogg <brian@brianhogg.com>

* Move bulk actions above the Orders & Transactions table

Puts the bulk actions on their own right-aligned row above the table so
the search box stays on the header row, and adds a Select all checkbox
there that stays in sync with the table head checkbox.

Refs #3448

Amp-Thread-ID: https://ampcode.com/threads/T-01a1a788-6512-731b-8fc7-babe9bdae176
Co-authored-by: brianhogg <brian@brianhogg.com>

* Match the post type list table bulk actions layout

Left-aligns Bulk actions and Apply above the table and drops the visible
Select all control. Select all is the table head checkbox, and it and the
row checkboxes use screen reader labels like WP_List_Table.

Refs #3448

Amp-Thread-ID: https://ampcode.com/threads/T-01a1a788-6512-731b-8fc7-babe9bdae176
Co-authored-by: brianhogg <brian@brianhogg.com>

* Link to trashed orders from the Orders & Transactions table

Shows a Trash (N) link next to the bulk actions when there are trashed
orders, like the post type list table's Trash view link.

Refs #3448

Amp-Thread-ID: https://ampcode.com/threads/T-01a1a788-6512-731b-8fc7-babe9bdae176
Co-authored-by: brianhogg <brian@brianhogg.com>

* Use patch significance for the bulk trash changelog entry

Refs #3448

Amp-Thread-ID: https://ampcode.com/threads/T-01a1a788-6512-731b-8fc7-babe9bdae176
Co-authored-by: brianhogg <brian@brianhogg.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
@brianhogg brianhogg moved this to Awaiting Review in Development Nov 6, 2026
brianhogg and others added 21 commits November 6, 2026 12:29
…3458)

libxml2 2.14+ (Ubuntu 26.04, used by ubuntu-latest runners) no longer wraps
bare body text in an implied <p> and may serialize non-ASCII characters as
UTF-8 instead of entities, which broke the exact-string assertions.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1b1da-c311-7541-9b3c-5b3b8dde5cda

Co-authored-by: Amp <amp@ampcode.com>
…deleted (#3437)

The form-switch-source template returned early when the order's access
plan no longer existed. The plan is not used by the template or the
switch handler, so students with a permanently deleted plan could no
longer update their payment method or reactivate their subscription.

Fixes #3433

Amp-Thread-ID: https://ampcode.com/threads/T-01a19d61-47e3-742c-99c1-711cf45fa54a

Co-authored-by: Amp <amp@ampcode.com>
- Add the {{STUDENT_FULL_NAME}} merge code to the lesson, section, course,
  course track, enrollment, unenrollment, achievement, certificate and
  quiz completion notification views
- Label {{STUDENT_NAME}} as Student Name or "You" in the merge code menu
- Cover the new code in the achievement and certificate tests

{{STUDENT_NAME}} prints "you" when a student views their own notification,
so there was no way to show the student's name to the student. The new code
always prints the name. {{STUDENT_NAME}} output does not change, so existing
customized notifications keep working.

Fixes #1557
…ailable (#3461)

The certificate editor looked up llms/certificate-title in the block
inserter items and destructured isDisabled from the result. When the
block is hidden in Preferences > Blocks, removed by an allowed block
types filter, or not registered, the lookup returns undefined and the
Settings panel crashes the editor.

Check for the block in the post content with getGlobalBlockCount()
instead, which is what isDisabled was standing in for. The title
control's check now subscribes to the store, so the Title field shows
as soon as the block is removed.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c15e-45bd-70ed-87cf-d85b9f3d751f

Co-authored-by: Amp <amp@ampcode.com>
The widgets were a non-wrapping flex row, so narrow themes crushed them
or pushed the page wider than the screen. Lay them out with an auto-fit
grid, keep the dashboard content column from growing past the page, and
let the grades tables scroll within their wrapper.

Fixes #3462

Amp-Thread-ID: https://ampcode.com/threads/T-01a1a296-f04e-701b-bfda-1b9198c59450

Co-authored-by: Amp <amp@ampcode.com>
…le filter values (#3468)

Adds top margin to the Orders & Transactions and Subscriptions header
row, and turns off browser form restoration on the table filters and
search box so Back no longer shows a value the table isn't using.

Fixes #3467

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c5b9-33e9-71f8-ab09-f001468a1528

Co-authored-by: Amp <amp@ampcode.com>
Moves the Orders & Transactions bulk trash pieces (row checkbox, select
column, permission check, and bulk actions form) into
LLMS_Trait_Order_Bulk_Trash_Table and uses it on the Subscriptions table.
The bulk action handler and the trashed notice now cover both pages,
using a shared nonce action.

Fixes #3466

Co-authored-by: Amp <amp@ampcode.com>
…ns screens (#3469)

* Show order access status and add an Access Expired filter to the Orders screens

Adds LLMS_Order::get_access_expiration_label() and uses it for a new
Access column on the Orders & Transactions and Subscriptions tables and
their exports, matching the old order list's Access Status column. Adds
an Access Expired filter to Orders & Transactions that lists the rows of
orders whose access date has passed.

Fixes #3465

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c5b9-33e9-71f8-ab09-f001468a1528
Co-authored-by: brianhogg <brian@brianhogg.com>

* Use patch significance for the access status changelog entry

Refs #3465

Co-authored-by: brianhogg <brian@brianhogg.com>

* Drop the Access Expired filter, keeping only the restored Access column

The old order list showed each order's access status but had no access
filter, so the filter is moved to a separate feature request.

Refs #3465

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c5b9-33e9-71f8-ab09-f001468a1528
Co-authored-by: brianhogg <brian@brianhogg.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
…3472)

Orbs moved from Debian 12 (bookworm) to Debian 13 (trixie). The setup
script hard-coded the bookworm suite for packages.sury.org, so apt chose
bookworm PHP builds whose dependencies (e.g. libzip4 for php8.4-zip) do
not exist on trixie, and setup failed with exit 100.

Read the suite from /etc/os-release and rewrite the source list when it
does not match, which also repairs snapshots that already have the
bookworm list.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1cb77-93fe-74a3-9955-ea6b1e6ab4ab

Co-authored-by: Amp <amp@ampcode.com>
* Retrying failed webhooks on a schedule.

* Scope webhook retry test assertions and notify admins when a webhook is disabled

Assertions that no retry is pending now match the specific schedule args,
so pending actions left over in a reused test database no longer fail them.

When retries are exhausted and a webhook is disabled, an admin notice links
to the webhook, the webhooks list and edit screen explain why it is disabled,
and reactivating it resets the failure count and clears the notice.

Amp-Thread-ID: https://ampcode.com/threads/T-01a17d7a-cb81-77c9-925f-06f79e1e24eb
Co-authored-by: brianhogg <brian@brianhogg.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
)

YouTube's oEmbed endpoint only accepts watch URLs, so these course and
lesson videos rendered as a plain link. They are now embedded through
the equivalent watch URL (keeping ?start=), and youtube-nocookie.com
URLs keep the player on that domain (Privacy Enhanced Mode).

Amp-Thread-ID: https://ampcode.com/threads/T-01a18921-e025-76aa-8358-17b2a32e1679

Co-authored-by: Amp <amp@ampcode.com>
* Copy media protected to a course when cloning it

A cloned course kept pointing at the original course's protected media, which
stays protected to the original course and its quizzes, so the clone's
students couldn't see it. Featured images and quiz image choices were
downloaded from their URL, which fails for protected media.

The generator now gives the new content its own copy of:

- featured images and quiz image choices from this site, copied on the server
  instead of downloaded,
- protected media in post content, when it is protected to a course or quiz
  being generated.

A copy keeps its protection, with the original course and quizzes replaced by
their clones. Content links, image sources, `wp-image-{ID}` classes and media
block IDs point at the copies. Media the current user can't view isn't copied.

Fixes #2983

Amp-Thread-ID: https://ampcode.com/threads/T-01a1cfe6-87dd-70da-9e3d-87df7cc31a50
Co-authored-by: brianhogg <brian@brianhogg.com>

* Keep the original's featured image from being added to a clone

The original's `_thumbnail_id` comes along in the raw data's custom values,
and `add_custom_values()` added it as a second value next to the featured
image the generator had set, so the clone kept a hidden reference to the
original image. It's now skipped when the post already has a featured image.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1cfe6-87dd-70da-9e3d-87df7cc31a50
Co-authored-by: brianhogg <brian@brianhogg.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
* Fix 12-hour times shifting an hour in builder date pickers

The bundled php-date-formatter 1.3.4 parsed "h:i A" values as
hour + meridiem - 1, so every blur rewrote 02:00 PM as 01:00 PM
(and 12:00 PM as 11:00 PM). Apply upstream's fix from
kartik-v/php-date-formatter@7e5fa68 to both datetimepicker builds,
and version the script with LLMS_ASSETS_VERSION so browsers load the
patched file.

Fixes #3478

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d0e5-6842-727b-b503-7cd82ab90872
Co-authored-by: brianhogg <brian@brianhogg.com>

* Only blur a focused input when a builder date picker closes

The builder's onClose callback blurred the input, and the picker's own
blur handler closed it again, which blurred again until the stack
overflowed. Each pass also re-parsed the time, and the picker stayed
open. Only blur an input that still has focus.

Moved from #3446 (71f09d8) so it can land on dev on its own.
Fixes #3478

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d0e5-6842-727b-b503-7cd82ab90872
Co-authored-by: brianhogg <brian@brianhogg.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
quiz_data() set $group_descriptions but passed $group_description, so
each export with quiz attempts logged an undefined variable warning and
the Quiz Attempts group had no description.

Fixes #3476


Amp-Thread-ID: https://ampcode.com/threads/T-01a1a296-f04e-701b-bfda-1b9198c59450

Co-authored-by: Amp <amp@ampcode.com>
…3480)

The orders post list printed the raw "trash" post status in the Payment
Status column of the Trash view. It now shows the order's status from
before it was trashed, such as Completed.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d51a-b1db-7713-a607-a8a935ad78b1

Co-authored-by: Amp <amp@ampcode.com>
* Insert merge codes at the cursor in text fields

The merge code button for text inputs, such as a notification's title or
an email's subject, always appended the code to the end of the value.
It now inserts the code where the cursor was when the input lost focus,
and appends it when the input was never focused.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d51a-b1db-7713-a607-a8a935ad78b1
Co-authored-by: brianhogg <brian@brianhogg.com>

* Look up merge code target inputs by ID

Passing the merge code button's data-target attribute to jQuery lets a
value starting with < be parsed as HTML (CodeQL js/xss-through-dom).
The targets are always #id selectors, so find the input with
getElementById instead.

Refs #3481

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d51a-b1db-7713-a607-a8a935ad78b1
Co-authored-by: brianhogg <brian@brianhogg.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
Toggling a question's Image or Video setting in the course builder
re-rendered the whole question, which rebuilt its Description and
Result Clarifications editors and made them flash. The Image toggle
re-rendered it twice. Only the toggled setting's group is re-rendered
now, so the editors stay in place.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d51a-b1db-7713-a607-a8a935ad78b1

Co-authored-by: Amp <amp@ampcode.com>
sanitize_schema() always set `properties` to a PHP array for object
nodes, so an object with no properties (such as `meta` on courses and
lessons when no meta is registered) was encoded as `"properties": []`.
JSON Schema requires an object there, and MCP clients drop the
create/update course and lesson abilities because of it. Drop the
keyword when it ends up empty.

Fixes #3484
* Speed up the user lookup on awarded certificates and achievements

The awarded certificate/achievement user lookup filtered lifterlms_user_postmeta
only on unindexed columns, so it scanned the whole table once per list row.
Restrict it to the award's author, which is the earner, so it uses the user_id index.

Fixes #3487

Amp-Thread-ID: https://ampcode.com/threads/T-01a1e448-7786-70b5-85e1-0b6cbb96299b
Co-authored-by: brianhogg <brian@brianhogg.com>

* Build the award author filter inside the lookup's prepare() call

Avoids interpolating a separately prepared clause into the SQL, which plugin
checkers flag. With no author, `0 = 0` keeps the previous unfiltered lookup.

Refs #3487

Amp-Thread-ID: https://ampcode.com/threads/T-01a1e448-7786-70b5-85e1-0b6cbb96299b
Co-authored-by: brianhogg <brian@brianhogg.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
…e finishes (#3490)

* Avoid a dependent subquery in the Orders & Transactions month filter

Before the 11.0.0 _llms_has_transaction backfill finishes, the month list
excluded orders with transactions through an ID NOT IN ( SELECT ... ) subquery
that runs once per order. Reuse the cached order ID list the main query already uses.

Fixes #3488

Amp-Thread-ID: https://ampcode.com/threads/T-01a1e448-7786-70b5-85e1-0b6cbb96299b
Co-authored-by: brianhogg <brian@brianhogg.com>

* Build the month filter's order exclusion inside prepare()

Avoids interpolating a built SQL clause, which plugin checkers flag. The order
IDs become %d placeholders; an empty list uses ID 0, which matches no post.

Refs #3488

Amp-Thread-ID: https://ampcode.com/threads/T-01a1e448-7786-70b5-85e1-0b6cbb96299b
Co-authored-by: brianhogg <brian@brianhogg.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
Defer the blur in the datetimepicker's onClose so Tab moves focus before
the save re-renders the lesson settings panel. Otherwise Tab landed on the
re-rendered Title field, leaving _has_focus set and the change unsynced.

Fixes #3485

Amp-Thread-ID: https://ampcode.com/threads/T-01a1e47d-18d9-739b-884c-f3950cd329c9

Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting Review

Development

Successfully merging this pull request may close these issues.

4 participants