• 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)
  • Plugin Support jkleinithemes

    (@jkleinithemes)

    Thank you for this info. I will share it with our devs. It really would be great to know what version you were running initially. I assume you just updated to the most current version?

    • This reply was modified 7 months, 2 weeks ago by jkleinithemes.
Viewing 1 replies (of 1 total)
  • The topic ‘Anywhere to submit a pull request?’ is closed to new replies.