Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#25681 closed defect (bug) (fixed)

Use the create_posts cap for determining to display of QuickPress Widget.

Reported by: jim912 Owned by: chriscct7
Milestone: 4.4 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch commit
Focuses: administration Cc:


Use the create_posts cap for determining to display of QuickPress Widget.

The access to the Add New page and judgment of the menu display of the newly added, create_posts property of the post type is being used. However, the edit_posts authority is specified as the quick post of the dashboard fixed. so if you change the properties of the create_posts of the post,inconsistencies will occur.

You also should use the create_posts property for determining to display of QuickPress Widget.

Attachments (3)

dashboard.php.diff (166 bytes) - added by jim912 8 years ago.
Diff file of dashboard.php
25681.patch (1.2 KB) - added by ocean90 8 years ago.
25681.2.patch (1.2 KB) - added by chriscct7 6 years ago.

Download all attachments as: .zip

Change History (6)

8 years ago

Diff file of dashboard.php

8 years ago

#1 @ocean90
8 years ago

  • Component changed from Administration to Posts, Post Types
  • Focuses administration added
  • Keywords has-patch added

Hello jim912, thanks for the report, I agree with the inconsistency here.

In 25681.patch I also changed the cap in wp-admin/post.php.

6 years ago

#2 @chriscct7
6 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 4.4
  • Owner set to chriscct7
  • Status changed from new to assigned

Refreshed and corrected @ocean90's patch

#3 @wonderboymusic
6 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 35282:

Dashboard: use the create_posts cap on the post type object when determining if the Quick Press widget can be displayed.

Props jim912, ocean90, chriscct7.
Fixes #25681.

Note: See TracTickets for help on using tickets.