Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Updating a category removes HTML from the description #287

@redelschaap

Description

@redelschaap

We experience two issues regarding HTML in the product category description.

  1. When creating or updating a product category using the REST API, most HTML is removed from the category description. However, the description supports more HTML when creating or editing a product category in the WordPress Admin, so I would say that the description field in the REST API should also support the same HTML options.

  2. HTML is also removed from the category description when the description field is not included in the update request. In that case, I would expect that the description field remains unchanged.

Steps to reproduce:

  1. Given the current state of the description:
    image
  2. After updating the category (with or without the description field present):
    image
  3. The description is stripped from most HTML:
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions