WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#9582 closed enhancement (invalid)

Hide uneditable posts in admin

Reported by: scribu Owned by: scribu
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.7
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

When a use goes to Posts->Edit he expects to see only the posts that he can edit, right?

If he would want to see all posts, he would go to the front end.

Attachments (4)

hide_uneditable.patch (822 bytes) - added by scribu 5 years ago.
put filter right after function
my_posts_filter.patch (2.6 KB) - added by scribu 5 years ago.
adds the "My Posts" filter
my_posts_link.patch (2.6 KB) - added by scribu 5 years ago.
adds the "My Posts" link
edit_posts_links.patch (10.4 KB) - added by scribu 5 years ago.
Use wp_filter_links() on edit.php, edit-pages.php

Download all attachments as: .zip

Change History (11)

scribu5 years ago

put filter right after function

comment:1 DD325 years ago

My thoughts:

An extra filter(ALL|Published|Draft|etc) at the top of "Editable Posts" if the user cannot "edit_other_{$type}s", which is the default for someone of that type entering the page.. makes sense for me.

scribu5 years ago

adds the "My Posts" filter

comment:2 scribu5 years ago

  • Keywords needs-testing dev-feedback added

scribu5 years ago

adds the "My Posts" link

comment:3 scribu5 years ago

  • Owner changed from anonymous to scribu
  • Status changed from new to assigned
  • Summary changed from Hide uneditable posts in admin to Clean up edit posts links
  • Type changed from defect (bug) to enhancement

comment:4 scribu5 years ago

If the patch is ok, I would like to do the same in other admin pages: Edit Posts, Edit Comments, Manage Plugins etc.

comment:5 scribu5 years ago

  • Keywords tested commit added; needs-testing dev-feedback removed

scribu5 years ago

Use wp_filter_links() on edit.php, edit-pages.php

comment:6 scribu5 years ago

  • Keywords tested commit removed

comment:7 scribu5 years ago

  • Resolution set to invalid
  • Status changed from assigned to closed
  • Summary changed from Clean up edit posts links to Hide uneditable posts in admin

Starting a new ticket, with more accurate description of the patch: #9621

Note: See TracTickets for help on using tickets.