Plugin Directory

Changeset 2951727

Timestamp:
08/10/2023 05:16:36 PM (12 months ago)
Author:
aaronfc
Message:

Registered Users Only 1.3.0

Location:
registered-users-only
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • registered-users-only/trunk/readme.txt

    r2692211 r2951727  
    33Tags: restriction, registered only, registration
    44Requires at least: 3.2
    5 Tested up to: 5.9
    6 Stable tag: trunk
     5Tested up to:
     6Stable tag:
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2424
    2525== ChangeLog ==
     26
     27
     28
    2629
    2730= Version 1.2.0 =
  • registered-users-only/trunk/registered-users-only.php

    r2434466 r2951727  
    66Plugin URI:   https://alex.blog/wordpress-plugins/registered-users-only/
    77Description:  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.0
     8Version:      1..0
    99Author:       Alex Mills (Viper007Bond)
    1010Author URI:   https://alex.blog/
     
    4242        add_action( 'init', array( $this, 'LoginFormMessage' ) );
    4343        add_action( 'admin_menu', array( $this, 'AddAdminMenu' ) );
     44
    4445
    4546        if ( isset( $_POST['regusersonly_action'] ) && 'update' == $_POST['regusersonly_action'] ) {
     
    8182        }
    8283
     84
     85
     86
     87
     88
    8389        // This is a base array of pages that will be EXCLUDED from being blocked
    8490        $this->exclusions = array(
     
    103109    }
    104110
     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
    105137
    106138    // Use some deprecate code (yeah, I know) to insert a "You must login" error message to the login form
     
    131163            'feeds' => ( ! empty( $_POST['regusersonly_feeds'] ) ) ? 1 : 0,
    132164            'rest'  => ( ! empty( $_POST['regusersonly_rest'] ) ) ? 1 : 0,
     165
    133166        );
    134167
     
    164197                                <?php _e( 'Anyone can register' ) ?>
    165198                            </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 />
    167204                        </td>
    168205                    </tr>
Note: See TracChangeset for help on using the changeset viewer.