WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 19 months ago

#13926 new defect (bug)

Adding 'page-attributes' to a custom post type slows down edit screen in the admin

Reported by: granulr Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

When I add 'page-attributes' to a custom post type it takes roughly 1.5 to 2 min for the edit screen to load... When I remove 'page-attributes' edit screen load is extremely fast.

Under the post type i created I have 5000+ entries.

Change History (6)

comment:1 follow-up: @nacin5 years ago

I think it's less the page-attributes part and more the 5000+ entries part.

comment:2 in reply to: ↑ 1 @granulr5 years ago

Replying to nacin:

I think it's less the page-attributes part and more the 5000+ entries part.

Sure, but I have another post type that has 15k posts and no problem there... It's extremely fast - but If I add page-attributes to that post type it's kills it

comment:3 follow-up: @nacin5 years ago

Correct. I was referring to the fact that page-attributes on a custom post type in itself is not a performance hit. The issue is 5,000 pages getting fetched and rendered in the parent drop-down, I'd imagine.

comment:4 in reply to: ↑ 3 @granulr5 years ago

Ahhhh - ok...

comment:5 @nacin5 years ago

  • Milestone changed from Awaiting Review to Future Release

comment:6 @nacin19 months ago

  • Component changed from General to Post Types
Note: See TracTickets for help on using tickets.