Make WordPress Core

Opened 6 months ago

Closed 5 months ago

Last modified 4 months ago

#62391 closed defect (bug) (invalid)

Category name "preview" breaks admin css

Reported by: matspeekaboo's profile matspeekaboo Owned by:
Milestone: Priority: lowest
Severity: trivial Version: 6.6.2
Component: Administration Keywords:
Focuses: css Cc:

Description

Naming a category preview will break the css/layout in post admin list view. This has to be the least important bug ever reported but so you know. I renamed the category to review which works fine.

Attachments (3)

Skärmavbild 2024-11-12 kl. 12.06.58.png (351.1 KB) - added by matspeekaboo 6 months ago.
Skärmavbild 2024-11-12 kl. 12.07.55.png (284.0 KB) - added by matspeekaboo 6 months ago.
Skärmavbild 2024-11-12 kl. 12.48.06.png (754.5 KB) - added by matspeekaboo 6 months ago.

Download all attachments as: .zip

Change History (10)

#1 @sainathpoojary
6 months ago

Hey @matspeekaboo,

Thank you for reporting this issue! I’m currently unable to reproduce it on my end. Could you please provide the steps to reproduce the bug?

For reference, you might find this template helpful for writing issue reports:
https://make.wordpress.org/test/handbook/test-reports/testing-instructions/#bug-defect-testing-instructions-template

#2 @matspeekaboo
6 months ago

  1. Name a category "preview"
  2. Go to post admin view (in this case a CPT)
  3. Table layout breaks.


Inspect the admin list view, I suspect it's either the class name "preview" or maybe "category-preview" that causes this.

#3 @sainathpoojary
6 months ago

Thank you for sharing this @matspeekaboo !

I agree that the preview class with the float: right rule is affecting the UI. I tested this on WordPress versions 6.7-RC5, 6.6.2, trunk, and in the playground, but I wasn’t able to reproduce the issue with the category slug as a class name.

Could you try disabling any active plugins or switching themes to see if the issue persists? I also tested it by creating a custom post type (CPT) but couldn’t replicate the problem.

Thanks!

#4 @matspeekaboo
6 months ago

This is from a customers website so I'm limited to what I can do. I actually couldn't reproduce this issue on a test site either but as you pointed out it's the preview class with float:right that is causing the UI the break.

#5 @desrosj
5 months ago

  • Focuses administration removed
  • Keywords close reporter-feedback added
  • Priority changed from normal to lowest

Hi @matspeekaboo,

Welcome to Trac!

I am also unable to reproduce this currently. I noticed that the screenshot of the markup includes some extra columns for something called crunchify. It's likely that there's something in those custom columns or a plugin that is causing this.

To rule out custom columns, you could use the Screen Options at the top right of the screen to uncheck these custom columns and see if that has any impact. It won't stop the CSS or JS of the plugin from being loaded, but it may allow you to determine the cause without disabling plugins.

I'm marking this with a close suggestion because other contributors have not been able to reproduce this, but will leave it open a bit longer for more details.

#6 @matspeekaboo
5 months ago

  • Resolution set to invalid
  • Status changed from new to closed

Hi, thanks.

No it makes no difference if remove crunchify, which actually adds an thumbnail to the column so clearly a suspect. Anyway, the problem is caused by this site in some way, sorry to waste your time on this and by all means close it.

/Mats

#7 @desrosj
4 months ago

  • Keywords close reporter-feedback removed
  • Milestone Awaiting Review deleted

@matspeekaboo No worries! If you do find something specific in WordPress that's causing the issue, feel free to reopen with more details!

Note: See TracTickets for help on using tickets.