Make WordPress Core

Opened 10 years ago

Closed 8 years ago

#25681 closed defect (bug) (fixed)

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

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

Description

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 10 years ago.
Diff file of dashboard.php
25681.patch (1.2 KB) - added by ocean90 10 years ago.
25681.2.patch (1.2 KB) - added by chriscct7 8 years ago.

Download all attachments as: .zip

Change History (6)

@jim912
10 years ago

Diff file of dashboard.php

@ocean90
10 years ago

#1 @ocean90
10 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.

@chriscct7
8 years ago

#2 @chriscct7
8 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
8 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.