Closed jeremyfelt closed 8 years ago
Ok. I think we're getting close. 😄
@philcable can you check things out and review? No merge yet, but soon.
Of note:
content-visibility
branch of WSUWP SSO Authentication: https://github.com/washingtonstateuniversity/WSUWP-Plugin-SSO-Authentication/pull/51add_filter( 'wsuwp_sso_force_local_ad', '__return_true' );
in mu-plugins/local-index.php
or similar.@jeremyfelt Looks good and tested out well! I might look over it one more time just for good measure.
private
to restrict posts.posts_results
filter and make sure we're excluding restricted posts from public queries.private
for the post status instead to ease some of this.Since the last review:
In the last 5 days:
private
posts rather than publicuser_has_cap
for capabilities rather than map_meta_cap
@philcable Ready for another round of review! I'll explain the changes in person tomorrow. I may do one or two README commits before then.
@jeremyfelt This is looking good! Works great, and so far I haven't been able to break anything!
Only one thing jumped out during my first pass: the custom "Sticky" and "Password" fields need a little more work in order to function like their default counterparts. As they are, their visibility doesn't toggle - and, more importantly, they don't seem to save. Prefixing the ids of their respective span wrappers with custom-
and updating their references in the JS to match should give us the expected toggle behavior (and help preserve the uniqueness of the ids from the default markup). As for saving, I wonder if the custom input values couldn't be assigned straight to the default hidden inputs? That could also potentially eliminate the need to provide custom hidden inputs. Last, I think there's a typo on https://github.com/washingtonstateuniversity/WSUWP-Content-Visibility/blob/fa67475a93dc4e5322f8405591b4bb7c47db70c0/js/post-admin.js#L28 (I suspect the selector should be #sticky
).
Good catch. :)
After 0b572eb, sticky and password protected should be working as normal.
Checklist for release, hopefully tomorrow:
Docs written, blog post in draft, other things merged. Let's do it. :)
When complete this will provide a base for plugins and themes to handle the search and assignment of content viewer groups.
Fixes #3