Changeset 3256323
- Timestamp:
- 03/15/2025 04:35:29 PM (12 months ago)
- Location:
- simple-website-redirect
- Files:
-
- 6 added
- 22 edited
- 1 copied
-
tags/1.3.2 (copied) (copied from simple-website-redirect/trunk)
-
tags/1.3.2/.nvmrc (modified) (1 diff)
-
tags/1.3.2/SimpleWebsiteRedirect.php (modified) (4 diffs)
-
tags/1.3.2/languages/simple-website-redirect.pot (modified) (3 diffs)
-
tags/1.3.2/mise.toml (added)
-
tags/1.3.2/readme.txt (modified) (2 diffs)
-
tags/1.3.2/vendor/autoload.php (modified) (1 diff)
-
tags/1.3.2/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/1.3.2/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.3.2/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.3.2/vendor/composer/installed.json (modified) (2 diffs)
-
tags/1.3.2/vendor/composer/installed.php (modified) (3 diffs)
-
tags/1.3.2/vendor/wpscholar/url/Url.php (modified) (14 diffs)
-
tags/1.3.2/vendor/wpscholar/url/tests (added)
-
tags/1.3.2/vendor/wpscholar/url/tests/UrlTest.php (added)
-
trunk/.nvmrc (modified) (1 diff)
-
trunk/SimpleWebsiteRedirect.php (modified) (4 diffs)
-
trunk/languages/simple-website-redirect.pot (modified) (3 diffs)
-
trunk/mise.toml (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (3 diffs)
-
trunk/vendor/wpscholar/url/Url.php (modified) (14 diffs)
-
trunk/vendor/wpscholar/url/tests (added)
-
trunk/vendor/wpscholar/url/tests/UrlTest.php (added)
Legend:
- Unmodified
- Added
- Removed
-
simple-website-redirect/tags/1.3.2/.nvmrc
r3128446 r3256323 1 v2 01 v22 -
simple-website-redirect/tags/1.3.2/SimpleWebsiteRedirect.php
r3200405 r3256323 5 5 * @package SimpleWebsiteRedirect 6 6 * @author Micah Wood 7 * @copyright Copyright 2018-202 4by Micah Wood - All rights reserved.7 * @copyright Copyright 2018-2025 by Micah Wood - All rights reserved. 8 8 * @license GPL2.0-or-later 9 9 * … … 12 12 * Plugin URI: https://wpscholar.com/wordpress-plugins/simple-website-redirect/ 13 13 * Description: A simple plugin designed to redirect an entire website (except the WordPress admin) to another website. 14 * Version: 1.3. 114 * Version: 1.3.2 15 15 * Requires PHP: 7.4 16 16 * Requires at least: 4.7 … … 35 35 * Plugin version 36 36 */ 37 const VERSION = '1. 2.9';37 const VERSION = '1.3.2'; 38 38 39 39 /** … … 267 267 '/wp-json', 268 268 '/wp-login.php', 269 '/wp-cron.php', 269 270 ), 270 271 $excluded_paths, -
simple-website-redirect/tags/1.3.2/languages/simple-website-redirect.pot
r3200400 r3256323 1 # Copyright (C) 202 4Micah Wood1 # Copyright (C) 2025 Micah Wood 2 2 # This file is distributed under the GPL V2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Simple Website Redirect 1. 2.9\n"5 "Project-Id-Version: Simple Website Redirect 1.3.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-website-redirect\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: SimpleWebsiteRedirect.php 19 #: SimpleWebsiteRedirect.php:51 119 #: SimpleWebsiteRedirect.php:513 20 20 msgid "Simple Website Redirect" 21 21 msgstr "" … … 41 41 msgstr "" 42 42 43 #: SimpleWebsiteRedirect.php:36 143 #: SimpleWebsiteRedirect.php:363 44 44 msgid "WARNING! You appear to have entered a redirect URL that may point back to the current site and cause an infinite redirect loop. Be sure to review your settings and test with the redirect type set to \"Temporary\" to avoid accidentally locking yourself out of your website." 45 45 msgstr "" 46 46 47 #: SimpleWebsiteRedirect.php:40 148 #: SimpleWebsiteRedirect.php:59 247 #: SimpleWebsiteRedirect.php:403 48 #: SimpleWebsiteRedirect.php:594 49 49 msgid "Settings" 50 50 msgstr "" 51 51 52 #: SimpleWebsiteRedirect.php:4 0852 #: SimpleWebsiteRedirect.php:410 53 53 msgid "Advanced Settings" 54 54 msgstr "" 55 55 56 #: SimpleWebsiteRedirect.php:41 156 #: SimpleWebsiteRedirect.php:413 57 57 msgid "Use the exclude fields to prevent redirects in certain use cases, such as when using a front-end page builder." 58 58 msgstr "" 59 59 60 #: SimpleWebsiteRedirect.php:4 1960 #: SimpleWebsiteRedirect.php:421 61 61 msgid "Redirect URL" 62 62 msgstr "" 63 63 64 #: SimpleWebsiteRedirect.php:43 364 #: SimpleWebsiteRedirect.php:435 65 65 msgid "Redirect Type" 66 66 msgstr "" 67 67 68 #: SimpleWebsiteRedirect.php:44 068 #: SimpleWebsiteRedirect.php:442 69 69 msgid "Permanent" 70 70 msgstr "" 71 71 72 #: SimpleWebsiteRedirect.php:44 172 #: SimpleWebsiteRedirect.php:443 73 73 msgid "Temporary" 74 74 msgstr "" 75 75 76 #: SimpleWebsiteRedirect.php:44 376 #: SimpleWebsiteRedirect.php:445 77 77 msgid "Always set to \"Temporary\" when testing." 78 78 msgstr "" 79 79 80 #: SimpleWebsiteRedirect.php:4 4980 #: SimpleWebsiteRedirect.php:451 81 81 msgid "Redirect Status" 82 82 msgstr "" 83 83 84 #: SimpleWebsiteRedirect.php:45 684 #: SimpleWebsiteRedirect.php:458 85 85 msgid "Disabled" 86 86 msgstr "" 87 87 88 #: SimpleWebsiteRedirect.php:45 788 #: SimpleWebsiteRedirect.php:459 89 89 msgid "Enabled" 90 90 msgstr "" 91 91 92 #: SimpleWebsiteRedirect.php:46 492 #: SimpleWebsiteRedirect.php:466 93 93 msgid "Exclude Query Parameters" 94 94 msgstr "" 95 95 96 #: SimpleWebsiteRedirect.php:47 196 #: SimpleWebsiteRedirect.php:473 97 97 msgid "Separate query parameters with commas (e.g. fl_builder, elementor-preview)." 98 98 msgstr "" 99 99 100 #: SimpleWebsiteRedirect.php:47 7100 #: SimpleWebsiteRedirect.php:479 101 101 msgid "Exclude Paths" 102 102 msgstr "" 103 103 104 #: SimpleWebsiteRedirect.php:48 4104 #: SimpleWebsiteRedirect.php:486 105 105 msgid "Separate paths with commas (e.g. /wp-admin,/wp-login.php)." 106 106 msgstr "" 107 107 108 #: SimpleWebsiteRedirect.php:49 0108 #: SimpleWebsiteRedirect.php:492 109 109 msgid "Preserve URL Paths" 110 110 msgstr "" 111 111 112 #: SimpleWebsiteRedirect.php:49 7112 #: SimpleWebsiteRedirect.php:499 113 113 msgid "Yes (Recommended)" 114 114 msgstr "" 115 115 116 #: SimpleWebsiteRedirect.php: 498116 #: SimpleWebsiteRedirect.php:500 117 117 msgid "No (Redirects all pages to the homepage)" 118 118 msgstr "" 119 119 120 #: SimpleWebsiteRedirect.php:51 2120 #: SimpleWebsiteRedirect.php:514 121 121 msgid "Website Redirect" 122 122 msgstr "" 123 123 124 #: SimpleWebsiteRedirect.php:53 7124 #: SimpleWebsiteRedirect.php:539 125 125 msgid "Save Settings" 126 126 msgstr "" 127 127 128 #: SimpleWebsiteRedirect.php:55 5128 #: SimpleWebsiteRedirect.php:557 129 129 msgid "Show Advanced Settings" 130 130 msgstr "" 131 131 132 #: SimpleWebsiteRedirect.php:55 6132 #: SimpleWebsiteRedirect.php:558 133 133 msgid "Hide Advanced Settings" 134 134 msgstr "" -
simple-website-redirect/tags/1.3.2/readme.txt
r3200405 r3256323 5 5 Requires at least: 4.7 6 6 Tested up to: 6.7 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 Requires PHP: 7.4 9 9 License: GPL V2 or later … … 58 58 59 59 == Changelog == 60 61 = 1.3.2 = 62 * Add wp-cron.php to the exclude path. 60 63 61 64 = 1.3.1 = -
simple-website-redirect/tags/1.3.2/vendor/autoload.php
r3200400 r3256323 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 7387a277d1209dff8496fc5ad8379c46::getLoader();25 return ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86::getLoader(); -
simple-website-redirect/tags/1.3.2/vendor/composer/InstalledVersions.php
r3128446 r3256323 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 self::$installedByVendor = array(); 317 318 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 319 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 320 // so we have to assume it does not, and that may result in duplicate data being returned when listing 321 // all installed packages for example 322 self::$installedIsLocalDir = false; 312 323 } 313 324 … … 323 334 324 335 $installed = array(); 336 $copiedLocalDir = false; 325 337 326 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 327 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 328 342 if (isset(self::$installedByVendor[$vendorDir])) { 329 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 346 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 347 self::$installedByVendor[$vendorDir] = $required; 348 $installed[] = $required; 349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 350 self::$installed = $required; 351 self::$installedIsLocalDir = true; 336 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 337 356 } 338 357 } … … 351 370 } 352 371 353 if (self::$installed !== array() ) {372 if (self::$installed !== array() && !$copiedLocalDir) { 354 373 $installed[] = self::$installed; 355 374 } -
simple-website-redirect/tags/1.3.2/vendor/composer/autoload_real.php
r3200400 r3256323 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 7387a277d1209dff8496fc5ad8379c465 class ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 7387a277d1209dff8496fc5ad8379c46', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 7387a277d1209dff8496fc5ad8379c46', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 7387a277d1209dff8496fc5ad8379c46::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitec4accb133f915d98fbaffab40568e86::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
simple-website-redirect/tags/1.3.2/vendor/composer/autoload_static.php
r3200400 r3256323 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 7387a277d1209dff8496fc5ad8379c467 class ComposerStaticInitec4accb133f915d98fbaffab40568e86 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 29 29 { 30 30 return \Closure::bind(function () use ($loader) { 31 $loader->prefixLengthsPsr4 = ComposerStaticInit 7387a277d1209dff8496fc5ad8379c46::$prefixLengthsPsr4;32 $loader->prefixDirsPsr4 = ComposerStaticInit 7387a277d1209dff8496fc5ad8379c46::$prefixDirsPsr4;33 $loader->classMap = ComposerStaticInit 7387a277d1209dff8496fc5ad8379c46::$classMap;31 $loader->prefixLengthsPsr4 = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$prefixLengthsPsr4; 32 $loader->prefixDirsPsr4 = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$prefixDirsPsr4; 33 $loader->classMap = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$classMap; 34 34 35 35 }, null, ClassLoader::class); -
simple-website-redirect/tags/1.3.2/vendor/composer/installed.json
r3200400 r3256323 3 3 { 4 4 "name": "wpscholar/url", 5 "version": "1.2. 3",6 "version_normalized": "1.2. 3.0",5 "version": "1.2.5", 6 "version_normalized": "1.2.5.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/wpscholar/url.git", 10 "reference": " 6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8"10 "reference": "8a8fa6dc257d75353782a7acd9b1194a17d8eadd" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/wpscholar/url/zipball/ 6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8",15 "reference": " 6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8",14 "url": "https://api.github.com/repos/wpscholar/url/zipball/8a8fa6dc257d75353782a7acd9b1194a17d8eadd", 15 "reference": "8a8fa6dc257d75353782a7acd9b1194a17d8eadd", 16 16 "shasum": "" 17 17 }, 18 "time": "2024-12-01T20:43:41+00:00", 18 "require": { 19 "php": ">=7.2" 20 }, 21 "require-dev": { 22 "phpunit/phpunit": "^8.5.36 || ^9.0" 23 }, 24 "time": "2024-12-13T17:40:54+00:00", 19 25 "type": "library", 20 26 "installation-source": "dist", … … 38 44 "support": { 39 45 "issues": "https://github.com/wpscholar/url/issues", 40 "source": "https://github.com/wpscholar/url/tree/1.2. 3"46 "source": "https://github.com/wpscholar/url/tree/1.2.5" 41 47 }, 42 48 "install-path": "../wpscholar/url" -
simple-website-redirect/tags/1.3.2/vendor/composer/installed.php
r3200405 r3256323 2 2 'root' => array( 3 3 'name' => 'wpscholar/simple-website-redirect', 4 'pretty_version' => '1.3. 1',5 'version' => '1.3. 1.0',6 'reference' => ' 21b64fd50f55c2af5c39a902399b0833ea5695ea',4 'pretty_version' => '1.3.2', 5 'version' => '1.3.2.0', 6 'reference' => 'afef40cb23f42e63a46c1f212416d989e7bf4413', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'wpscholar/simple-website-redirect' => array( 14 'pretty_version' => '1.3. 1',15 'version' => '1.3. 1.0',16 'reference' => ' 21b64fd50f55c2af5c39a902399b0833ea5695ea',14 'pretty_version' => '1.3.2', 15 'version' => '1.3.2.0', 16 'reference' => 'afef40cb23f42e63a46c1f212416d989e7bf4413', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'wpscholar/url' => array( 23 'pretty_version' => '1.2. 3',24 'version' => '1.2. 3.0',25 'reference' => ' 6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8',23 'pretty_version' => '1.2.5', 24 'version' => '1.2.5.0', 25 'reference' => '8a8fa6dc257d75353782a7acd9b1194a17d8eadd', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../wpscholar/url', -
simple-website-redirect/tags/1.3.2/vendor/wpscholar/url/Url.php
r3200400 r3256323 96 96 */ 97 97 public static function getCurrentScheme() { 98 $is_ssl = (boolean) $_SERVER['HTTPS'] || '443' === $_SERVER['SERVER_PORT'] || 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO']; 99 $scheme = $is_ssl ? 'https' : 'http'; 100 101 return $scheme; 98 99 // Check HTTPS server variable 100 if ( isset( $_SERVER['HTTPS'] ) ) { 101 if ( 'on' === strtolower( $_SERVER['HTTPS'] ) ) { 102 return 'https'; 103 } 104 105 if ( '1' === (string) $_SERVER['HTTPS'] ) { 106 return 'https'; 107 } 108 } 109 110 // Check port 111 if ( isset( $_SERVER['SERVER_PORT'] ) && '443' === (string) $_SERVER['SERVER_PORT'] ) { 112 return 'https'; 113 } 114 115 // Check forwarded protocol 116 if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { 117 return 'https'; 118 } 119 120 return 'http'; 102 121 } 103 122 … … 105 124 * Build a URL from its component parts. 106 125 * 107 * @param array $parts 108 * 109 * @return string 126 * @param array $parts Array containing URL components with possible keys: 127 * 'scheme', 'user', 'pass', 'host', 'port', 'path', 128 * 'query', 'fragment' 129 * 130 * @return string The constructed URL 110 131 */ 111 132 public static function buildUrl( array $parts ) { … … 145 166 * Build a path from its component parts. 146 167 * 147 * @param array $segments 148 * @param bool $trailing_slash 149 * 150 * @return string 168 * @param array $segments Array of path segments to combine into a path 169 * @param bool $trailing_slash Whether to append a trailing slash to the path 170 * 171 * @return string The constructed path string 151 172 */ 152 173 public static function buildPath( array $segments, $trailing_slash = false ) { … … 165 186 * Strip the query string from a URL. 166 187 * 167 * @param string $url 168 * 169 * @return string 188 * @param string $url The URL to strip the query string from 189 * 190 * @return string The URL with query string removed 170 191 */ 171 192 public static function stripQueryString( $url ) { … … 179 200 * Create a new instance. 180 201 * 181 * @param string $url 202 * @param string $url The URL to parse, defaults to current URL if empty 182 203 */ 183 204 public function __construct( $url = '' ) { … … 191 212 * Parse a URL into its component parts. 192 213 * 193 * @param string $url 214 * @param string $url The URL string to parse into components 194 215 * 195 216 * @return $this … … 228 249 229 250 /** 230 * G at a URL path segment by index.231 * 232 * @param int $index 251 * Get a URL path segment by index. 252 * 253 * @param int $index The zero-based position of the segment to retrieve 233 254 * 234 255 * @return string|null … … 243 264 * Add a query variable to the URL. 244 265 * 245 * @param string $name 246 * @param string $value 247 * 248 * @return string 266 * @param string $name The name of the query variable to add 267 * @param string $value The value to set for the query variable 268 * 269 * @return string The complete URL string with the added query variable 249 270 */ 250 271 public function addQueryVar( $name, $value ) { … … 259 280 * Remove a query variable from the URL. 260 281 * 261 * @param string $name 262 * 263 * @return string 282 * @param string $name The name of the query variable to remove 283 * 284 * @return string The complete URL string with the query variable removed 264 285 */ 265 286 public function removeQueryVar( $name ) { … … 274 295 * Get a query variable from the URL. 275 296 * 276 * @param string $name 297 * @param string $name The name of the query variable to retrieve 277 298 * 278 299 * @return string|null … … 299 320 * Add a fragment to the URL. 300 321 * 301 * @param string $value 302 * 303 * @return string 322 * @param string $value The fragment to add to the URL 323 * 324 * @return string The complete URL string with the fragment added 304 325 */ 305 326 public function addFragment( $value ) { … … 348 369 * Magic method for getting properties. 349 370 * 350 * @param string $name 351 * 352 * @return string|int|null 371 * @param string $name The name of the property to get 372 * 373 * @return string|int|null The value of the property if it exists, null otherwise 353 374 */ 354 375 public function __get( $name ) { … … 365 386 * Magic method for setting properties. 366 387 * 367 * @param string $name Property name to set.368 * @param string $value Property value to set.388 * @param string $name Property name to set. 389 * @param string|null $value Property value to set. 369 390 * 370 391 * @return $this … … 373 394 $property = "_{$name}"; 374 395 if ( 'url' === $name ) { 375 376 396 // If setting URL, parse and set all the URL parts 377 $this->parseUrl( $value ); 378 397 $this->parseUrl( (string) $value ); 379 398 } elseif ( property_exists( $this, $property ) ) { 380 381 399 // If setting a URL part, build and set the full URL 382 400 $this->$property = (string) $value; 383 401 $this->_url = self::buildUrl( $this->toArray() ); 384 385 402 } 386 403 387 404 return $this; 388 405 } 389 390 406 } -
simple-website-redirect/trunk/.nvmrc
r3128446 r3256323 1 v2 01 v22 -
simple-website-redirect/trunk/SimpleWebsiteRedirect.php
r3200405 r3256323 5 5 * @package SimpleWebsiteRedirect 6 6 * @author Micah Wood 7 * @copyright Copyright 2018-202 4by Micah Wood - All rights reserved.7 * @copyright Copyright 2018-2025 by Micah Wood - All rights reserved. 8 8 * @license GPL2.0-or-later 9 9 * … … 12 12 * Plugin URI: https://wpscholar.com/wordpress-plugins/simple-website-redirect/ 13 13 * Description: A simple plugin designed to redirect an entire website (except the WordPress admin) to another website. 14 * Version: 1.3. 114 * Version: 1.3.2 15 15 * Requires PHP: 7.4 16 16 * Requires at least: 4.7 … … 35 35 * Plugin version 36 36 */ 37 const VERSION = '1. 2.9';37 const VERSION = '1.3.2'; 38 38 39 39 /** … … 267 267 '/wp-json', 268 268 '/wp-login.php', 269 '/wp-cron.php', 269 270 ), 270 271 $excluded_paths, -
simple-website-redirect/trunk/languages/simple-website-redirect.pot
r3200400 r3256323 1 # Copyright (C) 202 4Micah Wood1 # Copyright (C) 2025 Micah Wood 2 2 # This file is distributed under the GPL V2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Simple Website Redirect 1. 2.9\n"5 "Project-Id-Version: Simple Website Redirect 1.3.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-website-redirect\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: SimpleWebsiteRedirect.php 19 #: SimpleWebsiteRedirect.php:51 119 #: SimpleWebsiteRedirect.php:513 20 20 msgid "Simple Website Redirect" 21 21 msgstr "" … … 41 41 msgstr "" 42 42 43 #: SimpleWebsiteRedirect.php:36 143 #: SimpleWebsiteRedirect.php:363 44 44 msgid "WARNING! You appear to have entered a redirect URL that may point back to the current site and cause an infinite redirect loop. Be sure to review your settings and test with the redirect type set to \"Temporary\" to avoid accidentally locking yourself out of your website." 45 45 msgstr "" 46 46 47 #: SimpleWebsiteRedirect.php:40 148 #: SimpleWebsiteRedirect.php:59 247 #: SimpleWebsiteRedirect.php:403 48 #: SimpleWebsiteRedirect.php:594 49 49 msgid "Settings" 50 50 msgstr "" 51 51 52 #: SimpleWebsiteRedirect.php:4 0852 #: SimpleWebsiteRedirect.php:410 53 53 msgid "Advanced Settings" 54 54 msgstr "" 55 55 56 #: SimpleWebsiteRedirect.php:41 156 #: SimpleWebsiteRedirect.php:413 57 57 msgid "Use the exclude fields to prevent redirects in certain use cases, such as when using a front-end page builder." 58 58 msgstr "" 59 59 60 #: SimpleWebsiteRedirect.php:4 1960 #: SimpleWebsiteRedirect.php:421 61 61 msgid "Redirect URL" 62 62 msgstr "" 63 63 64 #: SimpleWebsiteRedirect.php:43 364 #: SimpleWebsiteRedirect.php:435 65 65 msgid "Redirect Type" 66 66 msgstr "" 67 67 68 #: SimpleWebsiteRedirect.php:44 068 #: SimpleWebsiteRedirect.php:442 69 69 msgid "Permanent" 70 70 msgstr "" 71 71 72 #: SimpleWebsiteRedirect.php:44 172 #: SimpleWebsiteRedirect.php:443 73 73 msgid "Temporary" 74 74 msgstr "" 75 75 76 #: SimpleWebsiteRedirect.php:44 376 #: SimpleWebsiteRedirect.php:445 77 77 msgid "Always set to \"Temporary\" when testing." 78 78 msgstr "" 79 79 80 #: SimpleWebsiteRedirect.php:4 4980 #: SimpleWebsiteRedirect.php:451 81 81 msgid "Redirect Status" 82 82 msgstr "" 83 83 84 #: SimpleWebsiteRedirect.php:45 684 #: SimpleWebsiteRedirect.php:458 85 85 msgid "Disabled" 86 86 msgstr "" 87 87 88 #: SimpleWebsiteRedirect.php:45 788 #: SimpleWebsiteRedirect.php:459 89 89 msgid "Enabled" 90 90 msgstr "" 91 91 92 #: SimpleWebsiteRedirect.php:46 492 #: SimpleWebsiteRedirect.php:466 93 93 msgid "Exclude Query Parameters" 94 94 msgstr "" 95 95 96 #: SimpleWebsiteRedirect.php:47 196 #: SimpleWebsiteRedirect.php:473 97 97 msgid "Separate query parameters with commas (e.g. fl_builder, elementor-preview)." 98 98 msgstr "" 99 99 100 #: SimpleWebsiteRedirect.php:47 7100 #: SimpleWebsiteRedirect.php:479 101 101 msgid "Exclude Paths" 102 102 msgstr "" 103 103 104 #: SimpleWebsiteRedirect.php:48 4104 #: SimpleWebsiteRedirect.php:486 105 105 msgid "Separate paths with commas (e.g. /wp-admin,/wp-login.php)." 106 106 msgstr "" 107 107 108 #: SimpleWebsiteRedirect.php:49 0108 #: SimpleWebsiteRedirect.php:492 109 109 msgid "Preserve URL Paths" 110 110 msgstr "" 111 111 112 #: SimpleWebsiteRedirect.php:49 7112 #: SimpleWebsiteRedirect.php:499 113 113 msgid "Yes (Recommended)" 114 114 msgstr "" 115 115 116 #: SimpleWebsiteRedirect.php: 498116 #: SimpleWebsiteRedirect.php:500 117 117 msgid "No (Redirects all pages to the homepage)" 118 118 msgstr "" 119 119 120 #: SimpleWebsiteRedirect.php:51 2120 #: SimpleWebsiteRedirect.php:514 121 121 msgid "Website Redirect" 122 122 msgstr "" 123 123 124 #: SimpleWebsiteRedirect.php:53 7124 #: SimpleWebsiteRedirect.php:539 125 125 msgid "Save Settings" 126 126 msgstr "" 127 127 128 #: SimpleWebsiteRedirect.php:55 5128 #: SimpleWebsiteRedirect.php:557 129 129 msgid "Show Advanced Settings" 130 130 msgstr "" 131 131 132 #: SimpleWebsiteRedirect.php:55 6132 #: SimpleWebsiteRedirect.php:558 133 133 msgid "Hide Advanced Settings" 134 134 msgstr "" -
simple-website-redirect/trunk/readme.txt
r3200405 r3256323 5 5 Requires at least: 4.7 6 6 Tested up to: 6.7 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 Requires PHP: 7.4 9 9 License: GPL V2 or later … … 58 58 59 59 == Changelog == 60 61 = 1.3.2 = 62 * Add wp-cron.php to the exclude path. 60 63 61 64 = 1.3.1 = -
simple-website-redirect/trunk/vendor/autoload.php
r3200400 r3256323 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 7387a277d1209dff8496fc5ad8379c46::getLoader();25 return ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86::getLoader(); -
simple-website-redirect/trunk/vendor/composer/InstalledVersions.php
r3128446 r3256323 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 self::$installedByVendor = array(); 317 318 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 319 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 320 // so we have to assume it does not, and that may result in duplicate data being returned when listing 321 // all installed packages for example 322 self::$installedIsLocalDir = false; 312 323 } 313 324 … … 323 334 324 335 $installed = array(); 336 $copiedLocalDir = false; 325 337 326 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 327 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 328 342 if (isset(self::$installedByVendor[$vendorDir])) { 329 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 346 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 347 self::$installedByVendor[$vendorDir] = $required; 348 $installed[] = $required; 349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 350 self::$installed = $required; 351 self::$installedIsLocalDir = true; 336 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 337 356 } 338 357 } … … 351 370 } 352 371 353 if (self::$installed !== array() ) {372 if (self::$installed !== array() && !$copiedLocalDir) { 354 373 $installed[] = self::$installed; 355 374 } -
simple-website-redirect/trunk/vendor/composer/autoload_real.php
r3200400 r3256323 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 7387a277d1209dff8496fc5ad8379c465 class ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 7387a277d1209dff8496fc5ad8379c46', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 7387a277d1209dff8496fc5ad8379c46', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 7387a277d1209dff8496fc5ad8379c46::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitec4accb133f915d98fbaffab40568e86::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
simple-website-redirect/trunk/vendor/composer/autoload_static.php
r3200400 r3256323 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 7387a277d1209dff8496fc5ad8379c467 class ComposerStaticInitec4accb133f915d98fbaffab40568e86 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 29 29 { 30 30 return \Closure::bind(function () use ($loader) { 31 $loader->prefixLengthsPsr4 = ComposerStaticInit 7387a277d1209dff8496fc5ad8379c46::$prefixLengthsPsr4;32 $loader->prefixDirsPsr4 = ComposerStaticInit 7387a277d1209dff8496fc5ad8379c46::$prefixDirsPsr4;33 $loader->classMap = ComposerStaticInit 7387a277d1209dff8496fc5ad8379c46::$classMap;31 $loader->prefixLengthsPsr4 = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$prefixLengthsPsr4; 32 $loader->prefixDirsPsr4 = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$prefixDirsPsr4; 33 $loader->classMap = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$classMap; 34 34 35 35 }, null, ClassLoader::class); -
simple-website-redirect/trunk/vendor/composer/installed.json
r3200400 r3256323 3 3 { 4 4 "name": "wpscholar/url", 5 "version": "1.2. 3",6 "version_normalized": "1.2. 3.0",5 "version": "1.2.5", 6 "version_normalized": "1.2.5.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/wpscholar/url.git", 10 "reference": " 6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8"10 "reference": "8a8fa6dc257d75353782a7acd9b1194a17d8eadd" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/wpscholar/url/zipball/ 6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8",15 "reference": " 6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8",14 "url": "https://api.github.com/repos/wpscholar/url/zipball/8a8fa6dc257d75353782a7acd9b1194a17d8eadd", 15 "reference": "8a8fa6dc257d75353782a7acd9b1194a17d8eadd", 16 16 "shasum": "" 17 17 }, 18 "time": "2024-12-01T20:43:41+00:00", 18 "require": { 19 "php": ">=7.2" 20 }, 21 "require-dev": { 22 "phpunit/phpunit": "^8.5.36 || ^9.0" 23 }, 24 "time": "2024-12-13T17:40:54+00:00", 19 25 "type": "library", 20 26 "installation-source": "dist", … … 38 44 "support": { 39 45 "issues": "https://github.com/wpscholar/url/issues", 40 "source": "https://github.com/wpscholar/url/tree/1.2. 3"46 "source": "https://github.com/wpscholar/url/tree/1.2.5" 41 47 }, 42 48 "install-path": "../wpscholar/url" -
simple-website-redirect/trunk/vendor/composer/installed.php
r3200405 r3256323 2 2 'root' => array( 3 3 'name' => 'wpscholar/simple-website-redirect', 4 'pretty_version' => '1.3. 1',5 'version' => '1.3. 1.0',6 'reference' => ' 21b64fd50f55c2af5c39a902399b0833ea5695ea',4 'pretty_version' => '1.3.2', 5 'version' => '1.3.2.0', 6 'reference' => 'afef40cb23f42e63a46c1f212416d989e7bf4413', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'wpscholar/simple-website-redirect' => array( 14 'pretty_version' => '1.3. 1',15 'version' => '1.3. 1.0',16 'reference' => ' 21b64fd50f55c2af5c39a902399b0833ea5695ea',14 'pretty_version' => '1.3.2', 15 'version' => '1.3.2.0', 16 'reference' => 'afef40cb23f42e63a46c1f212416d989e7bf4413', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'wpscholar/url' => array( 23 'pretty_version' => '1.2. 3',24 'version' => '1.2. 3.0',25 'reference' => ' 6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8',23 'pretty_version' => '1.2.5', 24 'version' => '1.2.5.0', 25 'reference' => '8a8fa6dc257d75353782a7acd9b1194a17d8eadd', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../wpscholar/url', -
simple-website-redirect/trunk/vendor/wpscholar/url/Url.php
r3200400 r3256323 96 96 */ 97 97 public static function getCurrentScheme() { 98 $is_ssl = (boolean) $_SERVER['HTTPS'] || '443' === $_SERVER['SERVER_PORT'] || 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO']; 99 $scheme = $is_ssl ? 'https' : 'http'; 100 101 return $scheme; 98 99 // Check HTTPS server variable 100 if ( isset( $_SERVER['HTTPS'] ) ) { 101 if ( 'on' === strtolower( $_SERVER['HTTPS'] ) ) { 102 return 'https'; 103 } 104 105 if ( '1' === (string) $_SERVER['HTTPS'] ) { 106 return 'https'; 107 } 108 } 109 110 // Check port 111 if ( isset( $_SERVER['SERVER_PORT'] ) && '443' === (string) $_SERVER['SERVER_PORT'] ) { 112 return 'https'; 113 } 114 115 // Check forwarded protocol 116 if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { 117 return 'https'; 118 } 119 120 return 'http'; 102 121 } 103 122 … … 105 124 * Build a URL from its component parts. 106 125 * 107 * @param array $parts 108 * 109 * @return string 126 * @param array $parts Array containing URL components with possible keys: 127 * 'scheme', 'user', 'pass', 'host', 'port', 'path', 128 * 'query', 'fragment' 129 * 130 * @return string The constructed URL 110 131 */ 111 132 public static function buildUrl( array $parts ) { … … 145 166 * Build a path from its component parts. 146 167 * 147 * @param array $segments 148 * @param bool $trailing_slash 149 * 150 * @return string 168 * @param array $segments Array of path segments to combine into a path 169 * @param bool $trailing_slash Whether to append a trailing slash to the path 170 * 171 * @return string The constructed path string 151 172 */ 152 173 public static function buildPath( array $segments, $trailing_slash = false ) { … … 165 186 * Strip the query string from a URL. 166 187 * 167 * @param string $url 168 * 169 * @return string 188 * @param string $url The URL to strip the query string from 189 * 190 * @return string The URL with query string removed 170 191 */ 171 192 public static function stripQueryString( $url ) { … … 179 200 * Create a new instance. 180 201 * 181 * @param string $url 202 * @param string $url The URL to parse, defaults to current URL if empty 182 203 */ 183 204 public function __construct( $url = '' ) { … … 191 212 * Parse a URL into its component parts. 192 213 * 193 * @param string $url 214 * @param string $url The URL string to parse into components 194 215 * 195 216 * @return $this … … 228 249 229 250 /** 230 * G at a URL path segment by index.231 * 232 * @param int $index 251 * Get a URL path segment by index. 252 * 253 * @param int $index The zero-based position of the segment to retrieve 233 254 * 234 255 * @return string|null … … 243 264 * Add a query variable to the URL. 244 265 * 245 * @param string $name 246 * @param string $value 247 * 248 * @return string 266 * @param string $name The name of the query variable to add 267 * @param string $value The value to set for the query variable 268 * 269 * @return string The complete URL string with the added query variable 249 270 */ 250 271 public function addQueryVar( $name, $value ) { … … 259 280 * Remove a query variable from the URL. 260 281 * 261 * @param string $name 262 * 263 * @return string 282 * @param string $name The name of the query variable to remove 283 * 284 * @return string The complete URL string with the query variable removed 264 285 */ 265 286 public function removeQueryVar( $name ) { … … 274 295 * Get a query variable from the URL. 275 296 * 276 * @param string $name 297 * @param string $name The name of the query variable to retrieve 277 298 * 278 299 * @return string|null … … 299 320 * Add a fragment to the URL. 300 321 * 301 * @param string $value 302 * 303 * @return string 322 * @param string $value The fragment to add to the URL 323 * 324 * @return string The complete URL string with the fragment added 304 325 */ 305 326 public function addFragment( $value ) { … … 348 369 * Magic method for getting properties. 349 370 * 350 * @param string $name 351 * 352 * @return string|int|null 371 * @param string $name The name of the property to get 372 * 373 * @return string|int|null The value of the property if it exists, null otherwise 353 374 */ 354 375 public function __get( $name ) { … … 365 386 * Magic method for setting properties. 366 387 * 367 * @param string $name Property name to set.368 * @param string $value Property value to set.388 * @param string $name Property name to set. 389 * @param string|null $value Property value to set. 369 390 * 370 391 * @return $this … … 373 394 $property = "_{$name}"; 374 395 if ( 'url' === $name ) { 375 376 396 // If setting URL, parse and set all the URL parts 377 $this->parseUrl( $value ); 378 397 $this->parseUrl( (string) $value ); 379 398 } elseif ( property_exists( $this, $property ) ) { 380 381 399 // If setting a URL part, build and set the full URL 382 400 $this->$property = (string) $value; 383 401 $this->_url = self::buildUrl( $this->toArray() ); 384 385 402 } 386 403 387 404 return $this; 388 405 } 389 390 406 }
Note: See TracChangeset
for help on using the changeset viewer.