Skip to content
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

largo byline class should use different conditional for edit link #1543

Closed
benlk opened this issue Oct 5, 2018 · 0 comments
Closed

largo byline class should use different conditional for edit link #1543

benlk opened this issue Oct 5, 2018 · 0 comments
Labels
priority: normal Must be completed before release of this version of plugin. status: needs tests

Comments

@benlk
Copy link
Collaborator

benlk commented Oct 5, 2018

https://github.com/INN/largo/blob/72cc8433a1be1de4f22789e1ec89496d54a653d9/inc/byline_class.php#L184

This should be:

if ( current_user_can( 'edit_post', get_the_id() ) ) {

For compatibility with plugins that allow specific users to edit specific pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: normal Must be completed before release of this version of plugin. status: needs tests
Projects
None yet
Development

No branches or pull requests

1 participant