WordPress.org

Make WordPress Core

Opened 23 months ago

Last modified 19 months ago

#25681 new defect (bug)

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

Reported by: jim912 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
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 (2)

dashboard.php.diff (166 bytes) - added by jim912 23 months ago.
Diff file of dashboard.php
25681.patch (1.2 KB) - added by ocean90 19 months ago.

Download all attachments as: .zip

Change History (3)

@jim91223 months ago

Diff file of dashboard.php

@ocean9019 months ago

comment:1 @ocean9019 months 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.

Note: See TracTickets for help on using tickets.