Anywhere to submit a pull request?
-
Hi There!
Is there anywhere to submit a pull request?I discovered a bug in the plugin that existed on our system. We upgraded from a very old version of Restrict Content (I apologise I’m not 100% what version) that still had the old way of listing user roles (“None” rather than “All”). This lead to a problem when a user edited a page in that it was selected when admins were editing a page, making them accidentally restricted.
We fixed it by changing line 5.2 of restrict-content/core/includes/admin/metabox-view.php from
<option value="registered-users"<?php selected( true, empty( $sub_levels ) && ! is_numeric( $access_level ) && ! empty( $user_role ) && 'All' !== $user_role ); ?>><?php _e( 'Members with a certain role', 'rcp' ); ?></option>
To
<option value="registered-users"<?php selected( true, empty( $sub_levels ) && ! is_numeric( $access_level ) && ! empty( $user_role ) && 'All' !== $user_role && 'None' !== $user_role ); ?>><?php _e( 'Members with a certain role', 'rcp' ); ?></option>
It’d be good to get it into the plugin ??
Cheers!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Anywhere to submit a pull request?’ is closed to new replies.