Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#8208 closed defect (bug) (fixed)

Publishing new pages is tied to publish_posts cap

Reported by: dd32's profile DD32 Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Attempting to publish a page as a user who doesnt have publish_posts capability results in the page being marked as a Pending page.

It appears that the code uses publish_posts for both publishing pages and posts, As well as using edit_published_pages for both posts and pages.

See attached patch

Attachments (3)

8208.diff (1.9 KB) - added by DD32 15 years ago.
8208.2.diff (1.9 KB) - added by DD32 15 years ago.
page.diff (1.1 KB) - added by DD32 15 years ago.

Download all attachments as: .zip

Change History (8)

@DD32
15 years ago

@DD32
15 years ago

#1 @ryan
15 years ago

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

(In [9683]) Handle both post and page caps in get_editable_user_id(). Props DD32. fixes #8208

#2 @DD32
15 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

8208.2.diff(the commited patch) doesnt look like it was destined for this ticket originally.. It fixed the author list for a similar case, But 8208.diff (non-commited) fixes the publish post -> pending state. (Sorry for not realising that blunder)

#3 @ryan
15 years ago

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

(In [9701]) Check proper caps when publising a page. Props DD32. fixes #8208

@DD32
15 years ago

#4 @DD32
15 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

attachment page.diff added.

That should be the last of them from what i can tell.

#5 @ryan
15 years ago

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

(In [9715]) Check proper caps when publising a page. Props DD32. fixes #8208

Note: See TracTickets for help on using tickets.