Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix lazy-loading check to work with magic __get method
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
  • Loading branch information
Copilot and swissspidy committed Feb 19, 2026
commit 54f2fbd1fff8068e5f6838a979b9f8b2da6dba82
3 changes: 2 additions & 1 deletion src/Cron_Event_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public function list_( $args, $assoc_args ) {
}

// Populate actions field only if requested
if ( ! empty( $formatter->fields ) && in_array( 'actions', $formatter->fields, true ) ) {
$requested_fields = $formatter->fields;
if ( ! empty( $requested_fields ) && in_array( 'actions', $requested_fields, true ) ) {
foreach ( $events as $event ) {
$event->actions = self::get_hook_actions( $event->hook );
}
Expand Down