WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#17891 new enhancement

Pass $post_type to 'restrict_manage_posts'

Reported by: scribu Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: administration Cc:

Description

It would be nice if the 'restrict_manage_posts' hook received the post type as an argument, rather than having to check the global.

Attachments (2)

17891.diff (548 bytes) - added by scribu 3 years ago.
17891-2.diff (548 bytes) - added by sunnyratilal 11 months ago.

Download all attachments as: .zip

Change History (6)

scribu3 years ago

comment:1 scribu3 years ago

  • Severity changed from normal to minor

comment:2 Viper007Bond19 months ago

  • Keywords needs-refresh added

Now that we're not passing around the $post_type global, we should instead pass the whole $this->screen object.

sunnyratilal11 months ago

comment:3 sunnyratilal11 months ago

  • Cc sunnyratilal5@… added
  • Keywords needs-refresh removed

Patch refreshed.

comment:4 jeremyfelt3 months ago

  • Component changed from Administration to Posts, Post Types
  • Focuses admin added
Note: See TracTickets for help on using tickets.