Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#7351 closed enhancement (fixed)

Press This won't allow Contributors to submit content

Reported by: paulhontz Owned by: noel
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Press This Keywords: has-patch tested
Focuses: Cc:


If you click the bookmarklet while logged in as a contributor, you are unable to submit content.

However, if you try and access the write post from the backend, it works fine.

Attachments (2)

7351-press-this.php.patch (2.4 KB) - added by ninjaWR 7 years ago.
allows contributors to use the bookmarklet
press-this-contributors.patch (2.9 KB) - added by mrmist 7 years ago.
Press this and tools

Download all attachments as: .zip

Change History (11)

#1 @ryan
7 years ago

It checks for the publish_posts capability, which contributor's do not have. Press This is aimed at quick publishing and ignores the rest of the workflow states. Having it check for edit_posts and then putting a publish_posts check around the Publish button is easy enough if we want to support contributors. Press This just isn't targeted at them at the moment.

#2 @paulhontz
7 years ago

Gotcha, thanks for clarifying ryan.

I think it would make a lot of sense if they could access it, but instead of it just saying "Save", it could have something like "Submit for Approval" or something along those lines.

Just a thought.

#3 @thee17
7 years ago

  • Milestone changed from 2.6.1 to 2.7

#4 @ryan
7 years ago

  • Milestone changed from 2.7 to 2.8

#5 @jacobsantos
7 years ago

  • Keywords needs-patch added

7 years ago

allows contributors to use the bookmarklet

#6 @ninjaWR
7 years ago

  • Keywords has-patch needs-testing added; needs-patch removed
  • Priority changed from high to normal
  • Type changed from defect (bug) to enhancement

the patch works for me, but if another user tested it, that would be nice

7 years ago

Press this and tools

#7 @mrmist
7 years ago

  • Keywords tested added; needs-testing removed

refreshed patch against trunk - included a patch for tools.php so that contributors can add the press this applet in the first place ;)

Seems ok with contributors. The only issues I could find were -

  1. The add category link is present (this shouldn't be there, it should use the same logic test as it does for edit posts). (The contributor can't actually add a cat, but the link shouldn't even exist)
  1. It didn't work against my local host test environment, but I suspect that is a local issue and not related to the patch.

#8 @ryan
7 years ago

  • Component changed from General to Press This
  • Owner changed from anonymous to noel

#9 @noel
7 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.