Make WordPress Core

Opened 13 years ago

Closed 11 years ago

#19247 closed enhancement (fixed)

Add post type and taxonomy to admin body class

Reported by: johnbillion's profile johnbillion Owned by: nacin's profile nacin
Milestone: 3.7 Priority: normal
Severity: normal Version: 3.3
Component: Administration Keywords: has-patch 3.7-early commit
Focuses: Cc:

Description

I often have a need for targetted CSS selectors based on the current screen's post type (eg. to hide unwanted UI elements), so I usually end up adding post-type-{$post_type} with the admin_body_class filter. It'd be nice if this was in core.

Attachments (2)

19247.patch (811 bytes) - added by johnbillion 13 years ago.
19247.2.patch (808 bytes) - added by DrewAPicture 11 years ago.
space it since it's new

Download all attachments as: .zip

Change History (8)

@johnbillion
13 years ago

#1 @johnbillion
13 years ago

  • Keywords has-patch added

Patch

#2 @johnbillion
12 years ago

This patch still applies cleanly. Any chance of getting it into 3.6?

#3 @SergeyBiryukov
12 years ago

  • Keywords 3.7-early added

#4 @wonderboymusic
11 years ago

  • Milestone changed from Awaiting Review to 3.7

these are all marked 3.7-early

@DrewAPicture
11 years ago

space it since it's new

#5 @DrewAPicture
11 years ago

  • Keywords commit added

19247.2.patch looks good to me.

#6 @nacin
11 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 25124:

Add post-type-$post_type and taxonomy-$taxonomy admin body classes.

props johnbillion.
fixes #19247.

Note: See TracTickets for help on using tickets.