Plugin Directory

Changeset 2214519

Timestamp:
12/18/2019 07:22:30 PM (5 years ago)
Author:
wido
Message:

bump 2.0.2

Location:
disable-register/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • disable-register/trunk/disable-register.php

    r2080791 r2214519  
    44 * Plugin URI: https://wordpress.org/plugins/disable-register
    55 * Description: Disable Register
    6  * Version: 2.0.1
     6 * Version: 2.0.
    77 * Author: Guido Scialfa
    88 * Author URI: http://www.guidoscialfa.com
  • disable-register/trunk/readme.txt

    r2080791 r2214519  
    55Requires PHP: 7.1
    66Tested up to: 5.1.1
    7 Stable tag: 2.0.1
     7Stable tag: 2.0.
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3636== Changelog ==
    3737
     38
     39
     40
    3841= 2.0.1 =
    3942* Fix: Compatibility with WordPress not allowing php 7.1 in the repo because of a commit pre-hook
  • disable-register/trunk/src/Bootstrapper.php

    r2080791 r2214519  
    4646     * @throws InvalidArgumentException
    4747     */
    48     final public function run()
     48    public function run()
    4949    {
    5050        $loginPageUrl = site_url('wp-login.php');
  • disable-register/trunk/src/RedirectToLoginPage.php

    r2080791 r2214519  
    3939     * @return void
    4040     */
    41     final public function redirectToLoginPage()
     41    public function redirectToLoginPage()
    4242    {
    4343        global $pagenow;
    4444
    4545        // phpcs:disable
    46         $action = (string)filter_var($_REQUEST['action'], FILTER_SANITIZE_STRING);
     46        $action = (string)filter_var($_REQUEST['action'], FILTER_SANITIZE_STRING);
    4747        // phpcs:enable
    4848        $key = (string)filter_input(INPUT_GET, 'key', FILTER_SANITIZE_STRING);
  • disable-register/trunk/src/RegisterDisabler.php

    r2080791 r2214519  
    4141     * @throws InvalidArgumentException
    4242     */
    43     final public function __construct(string $loginPageUrl)
     43    public function __construct(string $loginPageUrl)
    4444    {
    4545        $loginPageUrl = filter_var($loginPageUrl, FILTER_VALIDATE_URL);
     
    5656     * @return string Always 'none'
    5757     */
    58     final public function validRegistrationStatus(): string
     58    public function validRegistrationStatus(): string
    5959    {
    6060        return self::REGISTRATION_STATUS;
     
    6666     * @return string
    6767     */
    68     final public function validAction(): string
     68    public function validAction(): string
    6969    {
    7070        return self::VALID_LOGIN_ACTION;
     
    7676     * @return array
    7777     */
    78     final public function disableShakeErrorCodes(): array
     78    public function disableShakeErrorCodes(): array
    7979    {
    8080        return [];
     
    8686     * @return string
    8787     */
    88     final public function hideLoginErrorMessages(): string
     88    public function hideLoginErrorMessages(): string
    8989    {
    9090        return '';
     
    9696     * @return string
    9797     */
    98     final public function loginPageUrl(): string
     98    public function loginPageUrl(): string
    9999    {
    100100        return $this->loginPageUrl;
     
    109109     * @return void
    110110     */
    111     final public function maybeRedirectToLoginPage(string $currentPage, string $action)
     111    public function maybeRedirectToLoginPage(string $currentPage, string $action)
    112112    {
    113113        if (!$currentPage || !$action) {
     
    126126     * @return void
    127127     */
    128     final public function disableRegistration()
     128    public function disableRegistration()
    129129    {
    130130        $option = get_site_option('users_can_register', 0);
  • disable-register/trunk/src/ScriptEnqueuer.php

    r2080791 r2214519  
    4848     * @return void
    4949     */
    50     final public function enqueue()
     50    public function enqueue()
    5151    {
    5252        $pluginDirUrl = rtrim($this->pluginDirUrl, '/');
  • disable-register/trunk/vendor/autoload.php

    r2080791 r2214519  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitfc49f55b8a6eb1391ff92e2d9010038e::getLoader();
     7return ComposerAutoloaderInit::getLoader();
  • disable-register/trunk/vendor/composer/autoload_real.php

    r2080791 r2214519  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitfc49f55b8a6eb1391ff92e2d9010038e
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInitfc49f55b8a6eb1391ff92e2d9010038e', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInitfc49f55b8a6eb1391ff92e2d9010038e', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInitfc49f55b8a6eb1391ff92e2d9010038e::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
  • disable-register/trunk/vendor/composer/autoload_static.php

    r2080791 r2214519  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitfc49f55b8a6eb1391ff92e2d9010038e
     7class ComposerStaticInit
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3131    {
    3232        return \Closure::bind(function () use ($loader) {
    33             $loader->prefixLengthsPsr4 = ComposerStaticInitfc49f55b8a6eb1391ff92e2d9010038e::$prefixLengthsPsr4;
    34             $loader->prefixDirsPsr4 = ComposerStaticInitfc49f55b8a6eb1391ff92e2d9010038e::$prefixDirsPsr4;
    35             $loader->classMap = ComposerStaticInitfc49f55b8a6eb1391ff92e2d9010038e::$classMap;
     33            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     34            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     35            $loader->classMap = ComposerStaticInit::$classMap;
    3636
    3737        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.