Make WordPress Core

Opened 4 years ago

Last modified 18 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:


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 4 years ago.
17891-2.diff (548 bytes) - added by sunnyratilal 2 years ago.

Download all attachments as: .zip

Change History (6)

@scribu4 years ago

comment:1 @scribu4 years ago

  • Severity changed from normal to minor

comment:2 @Viper007Bond3 years 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.

@sunnyratilal2 years ago

comment:3 @sunnyratilal2 years ago

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

Patch refreshed.

comment:4 @jeremyfelt18 months ago

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