-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-publish checklist #277
Comments
I think this is cool but think we should hold off adding it until it's clear what the pain points are for our editors. It may turn out to be unnecessary and not worth the extra code and UI distraction. I also think it could be misleading to remind people about, say, webinar topics, but then leave out other categories. It could imply that the other categories aren't mandatory when, in fact, they are. |
I have deactivated the plugin. Will leave the additional code in LF MU for now. |
When I went to upgrade LFPH to WP 5.5.1 this code started throwing an error:
I don't know why it doesn't fail as well on CNCF, however, this seems to be the workaround. For now, I've just commented out the pre_publish_checklist hook. |
That isn’t part of the pre-publish checklist module I’ve added, that seems to be part of WordPress. |
Just adding this here for my notes and I’ll try to work out how to remove that suggestion |
In prep for deploying this, I tweaked the checklists and also disabled the webinar one because I don’t think the team will need to be reminded again about topics (if I’m wrong, we’ll be able to see and then we can activate it) and, as I say above, it would seem odd to me to remind them about topics but not about other required metadata. But I think I've found a more serious problem with this solution. The checklists only update when you save to the back-end, so often the checklists reflect an inaccurate state of the post. This is especially misleading in Gutenberg which is known for showing updates live. The issue is best described here and I've also made a video. To avoid creating confusing when we're trying to reduce it, I think we should wait for that to be fixed in the plugin or consider an alternative implementation. |
I see your point although I don't think its serious. Other plugins (Yoast SEO immediately springs to mind) work exactly the same and require saving a post draft first for the SEO checks to start and give feedback. All content plugins worked like this pre-Gutenberg. Only with Gutenberg are you expecting checks to happen every time a user presses a key or in time with the WP heartbeat. Running an analysis over the content after each key press has potential performance implications in itself. I would be happy with what we have, and I think it has a benefit to editors regardless of real time feedback. I don't think it causes confusion, it's just slightly different and requires some patience to get a result. But as you are not happy, I will remove pp-c from the site and MU plugin, and explore how to do this via React. |
Digging in to this today and got it working using JS. Using lockPostSaving() function, it's possible to prevent posts being submitted if conditions are not met. I haven't found an override for this yet so, for instance, if an editor wanted to submit a blog post regardless of the presence of a featured image, and we had made that as a requirement, there would not be a way for them to bypass the requirement (unlike the Human Made plugin we tested). The JS version of P-PC works much the same as the PHP version, and requires the editor to save the post as a draft or preview the post to start some of the checks (like Featured Image). I am exploring whether it's possible to hook in to the media uploader to trigger the checks via JS. I did fine one big issue - in that if a post is published, but then edited, the pre-publish checklists no longer show, but the rules still apply. I've been working around this to add a sidebar for the P-PC (like the last plugin) to inform the editor, or I may be able to detect if post has already been published and therefore not apply the rules. It would also be useful to define the rules you think we need so I can focus on developing those first. For Posts (Blog Category Only) Recommended rules: Required rules: Any others? |
I don't think we should have any required rules that stop a person from publishing. You could add a rule to make sure one and only one category is chosen for a post. The other rules you have there look fine. For webinars, you could add a rule to make sure a date is set. There have been a couple instances now where there is no date set. |
Deploying work so far and closing this in favor of new issue for later work. |
I've implemented the Publication Checklist plugin, written some pre-publication rules and added them to the LF MU plugin.
Rules load after plugins and customisation won't load if the plugin isn't present.
The checklist can be added to/edited in checklist.php
To get us started, I've set up:
The checklist displays before publication, or can be accessed using the top nav to open in the sidebar.
The checklist only applies to new posts, but it does give the status of the checklist regardless of its post status, so this could be useful for checking that all posts comply with SEO/content rules.
The checklist can be bypassed by the Editor after confirmation they understand they have not met requirements.
The text was updated successfully, but these errors were encountered: