Make WordPress Core

Opened 13 years ago

Closed 11 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
Priority: normal Milestone: 4.4
Component: Posts, Post Types Version:
Severity: normal Keywords: has-patch commit
Cc: Focuses: administration

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

Download all attachments as: .zip

Change History (6)

@jim912
13 years ago

Diff file of dashboard.php

@ocean90
13 years ago

#1 @ocean90
13 years ago

  • Component Administration → 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
11 years ago

#2 @chriscct7
11 years ago

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

Refreshed and corrected @ocean90's patch

#3 @wonderboymusic
11 years ago

  • Resolution → fixed
  • Status assigned → 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.