Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#8208 closed defect (bug) (fixed)

Publishing new pages is tied to publish_posts cap

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

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 18 years ago.
8208.2.diff (1.9 KB ) - added by DD32 18 years ago.
page.diff (1.1 KB ) - added by DD32 18 years ago.

Download all attachments as: .zip

Change History (8)

@DD32
18 years ago

@DD32
18 years ago

#1 @ryan
18 years ago

  • Resolutionfixed
  • Status newclosed

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

#2 @DD32
18 years ago

  • Resolution fixed
  • Status closedreopened

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
18 years ago

  • Resolutionfixed
  • Status reopenedclosed

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

@DD32
18 years ago

#4 @DD32
18 years ago

  • Resolution fixed
  • Status closedreopened

attachment page.diff added.

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

#5 @ryan
18 years ago

  • Resolutionfixed
  • Status reopenedclosed

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

Note: See TracTickets for help on using tickets.