Skip to content

Shouldn't run do_shortcode on category descriptions on admin list #8262

@JiveDig

Description

@JiveDig
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

When adding shortcodes to a category description, they are parsed in the admin categories list. This causes a usability nightmare when basic shortcodes like [gallery] are used. See this example:
image 2017-11-14 at 2 01 54 pm

IMO, this has nothing to do with SEO or analysis and shouldn't happen. I can understand running do_shortcode on the frontend for term/category descriptions since WPSEO is adding WYSIWYG editor to descriptions, so users are more inclined to include shortcodes.

The filter in question is https://github.com/Yoast/wordpress-seo/blob/master/admin/taxonomy/class-taxonomy.php#L40

Please describe what you expected to happen and why.

I expect the raw shortcode to display in the description, just like it does before WPSEO is installed.

How can we reproduce this behavior?

  1. Create/edit a post category
  2. Add a gallery shortcode
  3. View the admin category list via Dashboard, Posts > Categories and see the shortcode in its parsed form.

Technical info

  • WordPress version: 4.8.3
  • Yoast SEO version: 5.7.1
  • Relevant plugins in case of a bug: n/a

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions