Skip to content

Adds a dashboard widget showing pending revisions#7

Merged
jamiechong merged 3 commits intojamiechong:masterfrom
ryanshoover:add-dashboard-widget
Aug 28, 2017
Merged

Adds a dashboard widget showing pending revisions#7
jamiechong merged 3 commits intojamiechong:masterfrom
ryanshoover:add-dashboard-widget

Conversation

@ryanshoover
Copy link
Contributor

This PR adds a dashboard widget that shows all posts submitted for revision.

User Story: As a content editor of a WordPress site, I would like an easy way to see all posts that users have edited and submitted for revision. Rather than checking every post type and looking for posts that are marked as Pending, a single place to look would simplify my workflow.

Implementation: Adds a widget to the WP dashboard homepage that shows a list of posts (any type) that are currently submitted for review. Max of 10 at a time. Only shows to users who can publish a revision.

Also cleans up all trailing whitespace.

Copy link
Owner

@jamiechong jamiechong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryanshoover - great contributions. I'm happy to have other community members drive the feature set of this plugin. One small change: Can you adapt to indentation style of 2 spaces for the dashboard functions you added?

I'll get these merged in and up on wp org in the next day or so.

@ryanshoover
Copy link
Contributor Author

Grr Atom. Fixed the spacing.

We're needing to use something just like your plugin in a project. So I figured I could kick my tweaks back to the community rather than just us using them.

Thanks for the quick responses and openness to PRs!

@jamiechong jamiechong merged commit a0e4725 into jamiechong:master Aug 28, 2017
@jamiechong
Copy link
Owner

@ryanshoover I'm about to publish v1.3.2 which hides this feature you implemented. The user roles where contributors create pending revisions isn't fully worked out yet. So I think for most people this dashboard widget isn't useful.

To show the dashboard widget again add this.
add_filter('revisionize_show_dashboard_widget', '__return_true');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants