WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 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:

Description

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 5 years ago.
allows contributors to use the bookmarklet
press-this-contributors.patch (2.9 KB) - added by mrmist 5 years ago.
Press this and tools

Download all attachments as: .zip

Change History (11)

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

comment:2 paulhontz6 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.

comment:3 thee176 years ago

  • Milestone changed from 2.6.1 to 2.7

comment:4 ryan6 years ago

  • Milestone changed from 2.7 to 2.8

comment:5 jacobsantos5 years ago

  • Keywords needs-patch added

ninjaWR5 years ago

allows contributors to use the bookmarklet

comment:6 ninjaWR5 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

mrmist5 years ago

Press this and tools

comment:7 mrmist5 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.

comment:8 ryan5 years ago

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

comment:9 noel5 years ago

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