Changeset 2951727
- Timestamp:
- 08/10/2023 05:16:36 PM (12 months ago)
- Location:
- registered-users-only
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
registered-users-only/trunk/readme.txt
r2692211 r2951727 3 3 Tags: restriction, registered only, registration 4 4 Requires at least: 3.2 5 Tested up to: 5.96 Stable tag: trunk5 Tested up to: 6 Stable tag: 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 24 24 25 25 == ChangeLog == 26 27 28 26 29 27 30 = Version 1.2.0 = -
registered-users-only/trunk/registered-users-only.php
r2434466 r2951727 6 6 Plugin URI: https://alex.blog/wordpress-plugins/registered-users-only/ 7 7 Description: Redirects all non-logged in users to your login form. Make sure to <a href="options-general.php?page=registered-users-only">disable registration</a> if you want your blog truly private. 8 Version: 1. 2.08 Version: 1..0 9 9 Author: Alex Mills (Viper007Bond) 10 10 Author URI: https://alex.blog/ … … 42 42 add_action( 'init', array( $this, 'LoginFormMessage' ) ); 43 43 add_action( 'admin_menu', array( $this, 'AddAdminMenu' ) ); 44 44 45 45 46 if ( isset( $_POST['regusersonly_action'] ) && 'update' == $_POST['regusersonly_action'] ) { … … 81 82 } 82 83 84 85 86 87 88 83 89 // This is a base array of pages that will be EXCLUDED from being blocked 84 90 $this->exclusions = array( … … 103 109 } 104 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 105 137 106 138 // Use some deprecate code (yeah, I know) to insert a "You must login" error message to the login form … … 131 163 'feeds' => ( ! empty( $_POST['regusersonly_feeds'] ) ) ? 1 : 0, 132 164 'rest' => ( ! empty( $_POST['regusersonly_rest'] ) ) ? 1 : 0, 165 133 166 ); 134 167 … … 164 197 <?php _e( 'Anyone can register' ) ?> 165 198 </label><br /> 166 <?php _e( 'This is a default WordPress option placed here for easy changing.', 'registered-users-only' ); ?> 199 <?php _e( 'This is a default WordPress option placed here for easy changing.', 'registered-users-only' ); ?><br /><br /> 200 <label for="regusersonly_rest_auth"> 201 <input name="regusersonly_rest_auth" type="checkbox" id="regusersonly_rest_auth" value="1"<?php checked( '1', ! empty( $settings['rest_auth'] ) ); ?> /> 202 <?php _e( 'Allow authenticated access to your REST APIs', 'registered-users-only' ); ?> 203 </label><br /> 167 204 </td> 168 205 </tr>
Note: See TracChangeset
for help on using the changeset viewer.