Changeset 2214519
- Timestamp:
- 12/18/2019 07:22:30 PM (5 years ago)
- Location:
- disable-register/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
disable-register/trunk/disable-register.php
r2080791 r2214519 4 4 * Plugin URI: https://wordpress.org/plugins/disable-register 5 5 * Description: Disable Register 6 * Version: 2.0. 16 * Version: 2.0. 7 7 * Author: Guido Scialfa 8 8 * Author URI: http://www.guidoscialfa.com -
disable-register/trunk/readme.txt
r2080791 r2214519 5 5 Requires PHP: 7.1 6 6 Tested up to: 5.1.1 7 Stable tag: 2.0. 17 Stable tag: 2.0. 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 36 36 == Changelog == 37 37 38 39 40 38 41 = 2.0.1 = 39 42 * 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 46 46 * @throws InvalidArgumentException 47 47 */ 48 finalpublic function run()48 public function run() 49 49 { 50 50 $loginPageUrl = site_url('wp-login.php'); -
disable-register/trunk/src/RedirectToLoginPage.php
r2080791 r2214519 39 39 * @return void 40 40 */ 41 finalpublic function redirectToLoginPage()41 public function redirectToLoginPage() 42 42 { 43 43 global $pagenow; 44 44 45 45 // phpcs:disable 46 $action = (string)filter_var($_REQUEST['action'] , FILTER_SANITIZE_STRING);46 $action = (string)filter_var($_REQUEST['action'], FILTER_SANITIZE_STRING); 47 47 // phpcs:enable 48 48 $key = (string)filter_input(INPUT_GET, 'key', FILTER_SANITIZE_STRING); -
disable-register/trunk/src/RegisterDisabler.php
r2080791 r2214519 41 41 * @throws InvalidArgumentException 42 42 */ 43 finalpublic function __construct(string $loginPageUrl)43 public function __construct(string $loginPageUrl) 44 44 { 45 45 $loginPageUrl = filter_var($loginPageUrl, FILTER_VALIDATE_URL); … … 56 56 * @return string Always 'none' 57 57 */ 58 finalpublic function validRegistrationStatus(): string58 public function validRegistrationStatus(): string 59 59 { 60 60 return self::REGISTRATION_STATUS; … … 66 66 * @return string 67 67 */ 68 finalpublic function validAction(): string68 public function validAction(): string 69 69 { 70 70 return self::VALID_LOGIN_ACTION; … … 76 76 * @return array 77 77 */ 78 finalpublic function disableShakeErrorCodes(): array78 public function disableShakeErrorCodes(): array 79 79 { 80 80 return []; … … 86 86 * @return string 87 87 */ 88 finalpublic function hideLoginErrorMessages(): string88 public function hideLoginErrorMessages(): string 89 89 { 90 90 return ''; … … 96 96 * @return string 97 97 */ 98 finalpublic function loginPageUrl(): string98 public function loginPageUrl(): string 99 99 { 100 100 return $this->loginPageUrl; … … 109 109 * @return void 110 110 */ 111 finalpublic function maybeRedirectToLoginPage(string $currentPage, string $action)111 public function maybeRedirectToLoginPage(string $currentPage, string $action) 112 112 { 113 113 if (!$currentPage || !$action) { … … 126 126 * @return void 127 127 */ 128 finalpublic function disableRegistration()128 public function disableRegistration() 129 129 { 130 130 $option = get_site_option('users_can_register', 0); -
disable-register/trunk/src/ScriptEnqueuer.php
r2080791 r2214519 48 48 * @return void 49 49 */ 50 finalpublic function enqueue()50 public function enqueue() 51 51 { 52 52 $pluginDirUrl = rtrim($this->pluginDirUrl, '/'); -
disable-register/trunk/vendor/autoload.php
r2080791 r2214519 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit fc49f55b8a6eb1391ff92e2d9010038e::getLoader();7 return ComposerAutoloaderInit::getLoader(); -
disable-register/trunk/vendor/composer/autoload_real.php
r2080791 r2214519 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit fc49f55b8a6eb1391ff92e2d9010038e5 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit fc49f55b8a6eb1391ff92e2d9010038e', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit fc49f55b8a6eb1391ff92e2d9010038e', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 25 25 26 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 28 28 require_once __DIR__ . '/autoload_static.php'; 29 29 30 call_user_func(\Composer\Autoload\ComposerStaticInit fc49f55b8a6eb1391ff92e2d9010038e::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader)); 31 31 } else { 32 32 $map = require __DIR__ . '/autoload_namespaces.php'; -
disable-register/trunk/vendor/composer/autoload_static.php
r2080791 r2214519 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit fc49f55b8a6eb1391ff92e2d9010038e7 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 31 31 { 32 32 return \Closure::bind(function () use ($loader) { 33 $loader->prefixLengthsPsr4 = ComposerStaticInit fc49f55b8a6eb1391ff92e2d9010038e::$prefixLengthsPsr4;34 $loader->prefixDirsPsr4 = ComposerStaticInit fc49f55b8a6eb1391ff92e2d9010038e::$prefixDirsPsr4;35 $loader->classMap = ComposerStaticInit fc49f55b8a6eb1391ff92e2d9010038e::$classMap;33 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 34 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 35 $loader->classMap = ComposerStaticInit::$classMap; 36 36 37 37 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.