Make WordPress Core

Opened 2 years ago

Last modified 38 hours ago

#25681 assigned defect (bug)

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 2 years ago.
Diff file of dashboard.php
25681.patch (1.2 KB) - added by ocean90 20 months ago.
25681.2.patch (1.2 KB) - added by chriscct7 38 hours ago.

Download all attachments as: .zip

Change History (5)

@jim9122 years ago

Diff file of dashboard.php

@ocean9020 months ago

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

@chriscct738 hours ago

comment:2 @chriscct738 hours 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

Note: See TracTickets for help on using tickets.