Skip to content

Conversation

@b-l-i-n-d
Copy link
Collaborator

@b-l-i-n-d b-l-i-n-d commented Jan 28, 2026

image

Added REMOVE_DEVICE_MANUALLY and REMOVE_ALL_ACTIVE_LOGINS to the endpoints object to support manual device removal and clearing all active logins.
Introduces new button variants: ghost-brand, link-gray, and link-destructive, updating SCSS mixins and tokens to support their styles and icon colors. Updates theme variables for critical hover states, adds the new variants to the Variant constants, and demonstrates them in the button component demo.
Introduces a new property and setter method to allow setting HTML content for the confirmation message in ConfirmationModal. Falls back to plain text if HTML is not provided, enhancing flexibility for modal content.
@b-l-i-n-d b-l-i-n-d added the 4.0.0 Tutor v4.w0w label Jan 28, 2026
*
* @return $this
*/
public function message_html( string $html ) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of writing another method. Add support to message method to allow specific HTML tags.

$this->allowed_message_tags = array(
     'strong' => array()
);

$icon_html,
esc_html( $this->title ?? __( 'Are you sure?', 'tutor' ) ),
esc_html( $this->message ?? __( 'Are you sure you want to perform this action? Please confirm your choice.', 'tutor' ) ),
$message_html,
Copy link
Collaborator

Choose a reason for hiding this comment

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

wp_kses( $this->message, $this->allowed_message_tags );

…sage_html` with `allowed_html_tags` for `wp_kses` sanitization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants