Plugin Directory

Changeset 3256323


Ignore:
Timestamp:
03/15/2025 04:35:29 PM (12 months ago)
Author:
wpscholar
Message:

Update to version 1.3.2 from GitHub

Location:
simple-website-redirect
Files:
6 added
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-website-redirect/tags/1.3.2/.nvmrc

    r3128446 r3256323  
    1 v20
     1v22
  • simple-website-redirect/tags/1.3.2/SimpleWebsiteRedirect.php

    r3200405 r3256323  
    55 * @package           SimpleWebsiteRedirect
    66 * @author            Micah Wood
    7  * @copyright         Copyright 2018-2024 by Micah Wood - All rights reserved.
     7 * @copyright         Copyright 2018-2025 by Micah Wood - All rights reserved.
    88 * @license           GPL2.0-or-later
    99 *
     
    1212 * Plugin URI:        https://wpscholar.com/wordpress-plugins/simple-website-redirect/
    1313 * Description:       A simple plugin designed to redirect an entire website (except the WordPress admin) to another website.
    14  * Version:           1.3.1
     14 * Version:           1.3.2
    1515 * Requires PHP:      7.4
    1616 * Requires at least: 4.7
     
    3535     * Plugin version
    3636     */
    37     const VERSION = '1.2.9';
     37    const VERSION = '1.3.2';
    3838
    3939    /**
     
    267267                '/wp-json',
    268268                '/wp-login.php',
     269                '/wp-cron.php',
    269270            ),
    270271            $excluded_paths,
  • simple-website-redirect/tags/1.3.2/languages/simple-website-redirect.pot

    r3200400 r3256323  
    1 # Copyright (C) 2024 Micah Wood
     1# Copyright (C) 2025 Micah Wood
    22# This file is distributed under the GPL V2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Simple Website Redirect 1.2.9\n"
     5"Project-Id-Version: Simple Website Redirect 1.3.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-website-redirect\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1717#. Plugin Name of the plugin
    1818#: SimpleWebsiteRedirect.php
    19 #: SimpleWebsiteRedirect.php:511
     19#: SimpleWebsiteRedirect.php:513
    2020msgid "Simple Website Redirect"
    2121msgstr ""
     
    4141msgstr ""
    4242
    43 #: SimpleWebsiteRedirect.php:361
     43#: SimpleWebsiteRedirect.php:363
    4444msgid "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."
    4545msgstr ""
    4646
    47 #: SimpleWebsiteRedirect.php:401
    48 #: SimpleWebsiteRedirect.php:592
     47#: SimpleWebsiteRedirect.php:403
     48#: SimpleWebsiteRedirect.php:594
    4949msgid "Settings"
    5050msgstr ""
    5151
    52 #: SimpleWebsiteRedirect.php:408
     52#: SimpleWebsiteRedirect.php:410
    5353msgid "Advanced Settings"
    5454msgstr ""
    5555
    56 #: SimpleWebsiteRedirect.php:411
     56#: SimpleWebsiteRedirect.php:413
    5757msgid "Use the exclude fields to prevent redirects in certain use cases, such as when using a front-end page builder."
    5858msgstr ""
    5959
    60 #: SimpleWebsiteRedirect.php:419
     60#: SimpleWebsiteRedirect.php:421
    6161msgid "Redirect URL"
    6262msgstr ""
    6363
    64 #: SimpleWebsiteRedirect.php:433
     64#: SimpleWebsiteRedirect.php:435
    6565msgid "Redirect Type"
    6666msgstr ""
    6767
    68 #: SimpleWebsiteRedirect.php:440
     68#: SimpleWebsiteRedirect.php:442
    6969msgid "Permanent"
    7070msgstr ""
    7171
    72 #: SimpleWebsiteRedirect.php:441
     72#: SimpleWebsiteRedirect.php:443
    7373msgid "Temporary"
    7474msgstr ""
    7575
    76 #: SimpleWebsiteRedirect.php:443
     76#: SimpleWebsiteRedirect.php:445
    7777msgid "Always set to \"Temporary\" when testing."
    7878msgstr ""
    7979
    80 #: SimpleWebsiteRedirect.php:449
     80#: SimpleWebsiteRedirect.php:451
    8181msgid "Redirect Status"
    8282msgstr ""
    8383
    84 #: SimpleWebsiteRedirect.php:456
     84#: SimpleWebsiteRedirect.php:458
    8585msgid "Disabled"
    8686msgstr ""
    8787
    88 #: SimpleWebsiteRedirect.php:457
     88#: SimpleWebsiteRedirect.php:459
    8989msgid "Enabled"
    9090msgstr ""
    9191
    92 #: SimpleWebsiteRedirect.php:464
     92#: SimpleWebsiteRedirect.php:466
    9393msgid "Exclude Query Parameters"
    9494msgstr ""
    9595
    96 #: SimpleWebsiteRedirect.php:471
     96#: SimpleWebsiteRedirect.php:473
    9797msgid "Separate query parameters with commas (e.g. fl_builder, elementor-preview)."
    9898msgstr ""
    9999
    100 #: SimpleWebsiteRedirect.php:477
     100#: SimpleWebsiteRedirect.php:479
    101101msgid "Exclude Paths"
    102102msgstr ""
    103103
    104 #: SimpleWebsiteRedirect.php:484
     104#: SimpleWebsiteRedirect.php:486
    105105msgid "Separate paths with commas (e.g. /wp-admin,/wp-login.php)."
    106106msgstr ""
    107107
    108 #: SimpleWebsiteRedirect.php:490
     108#: SimpleWebsiteRedirect.php:492
    109109msgid "Preserve URL Paths"
    110110msgstr ""
    111111
    112 #: SimpleWebsiteRedirect.php:497
     112#: SimpleWebsiteRedirect.php:499
    113113msgid "Yes (Recommended)"
    114114msgstr ""
    115115
    116 #: SimpleWebsiteRedirect.php:498
     116#: SimpleWebsiteRedirect.php:500
    117117msgid "No (Redirects all pages to the homepage)"
    118118msgstr ""
    119119
    120 #: SimpleWebsiteRedirect.php:512
     120#: SimpleWebsiteRedirect.php:514
    121121msgid "Website Redirect"
    122122msgstr ""
    123123
    124 #: SimpleWebsiteRedirect.php:537
     124#: SimpleWebsiteRedirect.php:539
    125125msgid "Save Settings"
    126126msgstr ""
    127127
    128 #: SimpleWebsiteRedirect.php:555
     128#: SimpleWebsiteRedirect.php:557
    129129msgid "Show Advanced Settings"
    130130msgstr ""
    131131
    132 #: SimpleWebsiteRedirect.php:556
     132#: SimpleWebsiteRedirect.php:558
    133133msgid "Hide Advanced Settings"
    134134msgstr ""
  • simple-website-redirect/tags/1.3.2/readme.txt

    r3200405 r3256323  
    55Requires at least: 4.7
    66Tested up to: 6.7
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88Requires PHP: 7.4
    99License: GPL V2 or later
     
    5858
    5959== Changelog ==
     60
     61= 1.3.2 =
     62* Add wp-cron.php to the exclude path.
    6063
    6164= 1.3.1 =
  • simple-website-redirect/tags/1.3.2/vendor/autoload.php

    r3200400 r3256323  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit7387a277d1209dff8496fc5ad8379c46::getLoader();
     25return ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86::getLoader();
  • simple-website-redirect/tags/1.3.2/vendor/composer/InstalledVersions.php

    r3128446 r3256323  
    3232     */
    3333    private static $installed;
     34
     35    /**
     36     * @var bool
     37     */
     38    private static $installedIsLocalDir;
    3439
    3540    /**
     
    310315        self::$installed = $data;
    311316        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;
    312323    }
    313324
     
    323334
    324335        $installed = array();
     336        $copiedLocalDir = false;
    325337
    326338        if (self::$canGetVendors) {
     339            $selfDir = strtr(__DIR__, '\\', '/');
    327340            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     341                $vendorDir = strtr($vendorDir, '\\', '/');
    328342                if (isset(self::$installedByVendor[$vendorDir])) {
    329343                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331345                    /** @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 */
    332346                    $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;
    336352                    }
     353                }
     354                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     355                    $copiedLocalDir = true;
    337356                }
    338357            }
     
    351370        }
    352371
    353         if (self::$installed !== array()) {
     372        if (self::$installed !== array() && !$copiedLocalDir) {
    354373            $installed[] = self::$installed;
    355374        }
  • simple-website-redirect/tags/1.3.2/vendor/composer/autoload_real.php

    r3200400 r3256323  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit7387a277d1209dff8496fc5ad8379c46
     5class ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit7387a277d1209dff8496fc5ad8379c46', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit7387a277d1209dff8496fc5ad8379c46', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit7387a277d1209dff8496fc5ad8379c46::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitec4accb133f915d98fbaffab40568e86::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • simple-website-redirect/tags/1.3.2/vendor/composer/autoload_static.php

    r3200400 r3256323  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit7387a277d1209dff8496fc5ad8379c46
     7class ComposerStaticInitec4accb133f915d98fbaffab40568e86
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2929    {
    3030        return \Closure::bind(function () use ($loader) {
    31             $loader->prefixLengthsPsr4 = ComposerStaticInit7387a277d1209dff8496fc5ad8379c46::$prefixLengthsPsr4;
    32             $loader->prefixDirsPsr4 = ComposerStaticInit7387a277d1209dff8496fc5ad8379c46::$prefixDirsPsr4;
    33             $loader->classMap = ComposerStaticInit7387a277d1209dff8496fc5ad8379c46::$classMap;
     31            $loader->prefixLengthsPsr4 = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$prefixLengthsPsr4;
     32            $loader->prefixDirsPsr4 = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$prefixDirsPsr4;
     33            $loader->classMap = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$classMap;
    3434
    3535        }, null, ClassLoader::class);
  • simple-website-redirect/tags/1.3.2/vendor/composer/installed.json

    r3200400 r3256323  
    33        {
    44            "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",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/wpscholar/url.git",
    10                 "reference": "6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8"
     10                "reference": "8a8fa6dc257d75353782a7acd9b1194a17d8eadd"
    1111            },
    1212            "dist": {
    1313                "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",
    1616                "shasum": ""
    1717            },
    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",
    1925            "type": "library",
    2026            "installation-source": "dist",
     
    3844            "support": {
    3945                "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"
    4147            },
    4248            "install-path": "../wpscholar/url"
  • simple-website-redirect/tags/1.3.2/vendor/composer/installed.php

    r3200405 r3256323  
    22    'root' => array(
    33        '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',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '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',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        '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',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../wpscholar/url',
  • simple-website-redirect/tags/1.3.2/vendor/wpscholar/url/Url.php

    r3200400 r3256323  
    9696     */
    9797    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';
    102121    }
    103122
     
    105124     * Build a URL from its component parts.
    106125     *
    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
    110131     */
    111132    public static function buildUrl( array $parts ) {
     
    145166     * Build a path from its component parts.
    146167     *
    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
    151172     */
    152173    public static function buildPath( array $segments, $trailing_slash = false ) {
     
    165186     * Strip the query string from a URL.
    166187     *
    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
    170191     */
    171192    public static function stripQueryString( $url ) {
     
    179200     * Create a new instance.
    180201     *
    181      * @param string $url
     202     * @param string $url The URL to parse, defaults to current URL if empty
    182203     */
    183204    public function __construct( $url = '' ) {
     
    191212     * Parse a URL into its component parts.
    192213     *
    193      * @param string $url
     214     * @param string $url The URL string to parse into components
    194215     *
    195216     * @return $this
     
    228249
    229250    /**
    230      * Gat 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
    233254     *
    234255     * @return string|null
     
    243264     * Add a query variable to the URL.
    244265     *
    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
    249270     */
    250271    public function addQueryVar( $name, $value ) {
     
    259280     * Remove a query variable from the URL.
    260281     *
    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
    264285     */
    265286    public function removeQueryVar( $name ) {
     
    274295     * Get a query variable from the URL.
    275296     *
    276      * @param string $name
     297     * @param string $name The name of the query variable to retrieve
    277298     *
    278299     * @return string|null
     
    299320     * Add a fragment to the URL.
    300321     *
    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
    304325     */
    305326    public function addFragment( $value ) {
     
    348369     * Magic method for getting properties.
    349370     *
    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
    353374     */
    354375    public function __get( $name ) {
     
    365386     * Magic method for setting properties.
    366387     *
    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.
    369390     *
    370391     * @return $this
     
    373394        $property = "_{$name}";
    374395        if ( 'url' === $name ) {
    375 
    376396            // If setting URL, parse and set all the URL parts
    377             $this->parseUrl( $value );
    378 
     397            $this->parseUrl( (string) $value );
    379398        } elseif ( property_exists( $this, $property ) ) {
    380 
    381399            // If setting a URL part, build and set the full URL
    382400            $this->$property = (string) $value;
    383401            $this->_url      = self::buildUrl( $this->toArray() );
    384 
    385402        }
    386403
    387404        return $this;
    388405    }
    389 
    390406}
  • simple-website-redirect/trunk/.nvmrc

    r3128446 r3256323  
    1 v20
     1v22
  • simple-website-redirect/trunk/SimpleWebsiteRedirect.php

    r3200405 r3256323  
    55 * @package           SimpleWebsiteRedirect
    66 * @author            Micah Wood
    7  * @copyright         Copyright 2018-2024 by Micah Wood - All rights reserved.
     7 * @copyright         Copyright 2018-2025 by Micah Wood - All rights reserved.
    88 * @license           GPL2.0-or-later
    99 *
     
    1212 * Plugin URI:        https://wpscholar.com/wordpress-plugins/simple-website-redirect/
    1313 * Description:       A simple plugin designed to redirect an entire website (except the WordPress admin) to another website.
    14  * Version:           1.3.1
     14 * Version:           1.3.2
    1515 * Requires PHP:      7.4
    1616 * Requires at least: 4.7
     
    3535     * Plugin version
    3636     */
    37     const VERSION = '1.2.9';
     37    const VERSION = '1.3.2';
    3838
    3939    /**
     
    267267                '/wp-json',
    268268                '/wp-login.php',
     269                '/wp-cron.php',
    269270            ),
    270271            $excluded_paths,
  • simple-website-redirect/trunk/languages/simple-website-redirect.pot

    r3200400 r3256323  
    1 # Copyright (C) 2024 Micah Wood
     1# Copyright (C) 2025 Micah Wood
    22# This file is distributed under the GPL V2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Simple Website Redirect 1.2.9\n"
     5"Project-Id-Version: Simple Website Redirect 1.3.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-website-redirect\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1717#. Plugin Name of the plugin
    1818#: SimpleWebsiteRedirect.php
    19 #: SimpleWebsiteRedirect.php:511
     19#: SimpleWebsiteRedirect.php:513
    2020msgid "Simple Website Redirect"
    2121msgstr ""
     
    4141msgstr ""
    4242
    43 #: SimpleWebsiteRedirect.php:361
     43#: SimpleWebsiteRedirect.php:363
    4444msgid "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."
    4545msgstr ""
    4646
    47 #: SimpleWebsiteRedirect.php:401
    48 #: SimpleWebsiteRedirect.php:592
     47#: SimpleWebsiteRedirect.php:403
     48#: SimpleWebsiteRedirect.php:594
    4949msgid "Settings"
    5050msgstr ""
    5151
    52 #: SimpleWebsiteRedirect.php:408
     52#: SimpleWebsiteRedirect.php:410
    5353msgid "Advanced Settings"
    5454msgstr ""
    5555
    56 #: SimpleWebsiteRedirect.php:411
     56#: SimpleWebsiteRedirect.php:413
    5757msgid "Use the exclude fields to prevent redirects in certain use cases, such as when using a front-end page builder."
    5858msgstr ""
    5959
    60 #: SimpleWebsiteRedirect.php:419
     60#: SimpleWebsiteRedirect.php:421
    6161msgid "Redirect URL"
    6262msgstr ""
    6363
    64 #: SimpleWebsiteRedirect.php:433
     64#: SimpleWebsiteRedirect.php:435
    6565msgid "Redirect Type"
    6666msgstr ""
    6767
    68 #: SimpleWebsiteRedirect.php:440
     68#: SimpleWebsiteRedirect.php:442
    6969msgid "Permanent"
    7070msgstr ""
    7171
    72 #: SimpleWebsiteRedirect.php:441
     72#: SimpleWebsiteRedirect.php:443
    7373msgid "Temporary"
    7474msgstr ""
    7575
    76 #: SimpleWebsiteRedirect.php:443
     76#: SimpleWebsiteRedirect.php:445
    7777msgid "Always set to \"Temporary\" when testing."
    7878msgstr ""
    7979
    80 #: SimpleWebsiteRedirect.php:449
     80#: SimpleWebsiteRedirect.php:451
    8181msgid "Redirect Status"
    8282msgstr ""
    8383
    84 #: SimpleWebsiteRedirect.php:456
     84#: SimpleWebsiteRedirect.php:458
    8585msgid "Disabled"
    8686msgstr ""
    8787
    88 #: SimpleWebsiteRedirect.php:457
     88#: SimpleWebsiteRedirect.php:459
    8989msgid "Enabled"
    9090msgstr ""
    9191
    92 #: SimpleWebsiteRedirect.php:464
     92#: SimpleWebsiteRedirect.php:466
    9393msgid "Exclude Query Parameters"
    9494msgstr ""
    9595
    96 #: SimpleWebsiteRedirect.php:471
     96#: SimpleWebsiteRedirect.php:473
    9797msgid "Separate query parameters with commas (e.g. fl_builder, elementor-preview)."
    9898msgstr ""
    9999
    100 #: SimpleWebsiteRedirect.php:477
     100#: SimpleWebsiteRedirect.php:479
    101101msgid "Exclude Paths"
    102102msgstr ""
    103103
    104 #: SimpleWebsiteRedirect.php:484
     104#: SimpleWebsiteRedirect.php:486
    105105msgid "Separate paths with commas (e.g. /wp-admin,/wp-login.php)."
    106106msgstr ""
    107107
    108 #: SimpleWebsiteRedirect.php:490
     108#: SimpleWebsiteRedirect.php:492
    109109msgid "Preserve URL Paths"
    110110msgstr ""
    111111
    112 #: SimpleWebsiteRedirect.php:497
     112#: SimpleWebsiteRedirect.php:499
    113113msgid "Yes (Recommended)"
    114114msgstr ""
    115115
    116 #: SimpleWebsiteRedirect.php:498
     116#: SimpleWebsiteRedirect.php:500
    117117msgid "No (Redirects all pages to the homepage)"
    118118msgstr ""
    119119
    120 #: SimpleWebsiteRedirect.php:512
     120#: SimpleWebsiteRedirect.php:514
    121121msgid "Website Redirect"
    122122msgstr ""
    123123
    124 #: SimpleWebsiteRedirect.php:537
     124#: SimpleWebsiteRedirect.php:539
    125125msgid "Save Settings"
    126126msgstr ""
    127127
    128 #: SimpleWebsiteRedirect.php:555
     128#: SimpleWebsiteRedirect.php:557
    129129msgid "Show Advanced Settings"
    130130msgstr ""
    131131
    132 #: SimpleWebsiteRedirect.php:556
     132#: SimpleWebsiteRedirect.php:558
    133133msgid "Hide Advanced Settings"
    134134msgstr ""
  • simple-website-redirect/trunk/readme.txt

    r3200405 r3256323  
    55Requires at least: 4.7
    66Tested up to: 6.7
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88Requires PHP: 7.4
    99License: GPL V2 or later
     
    5858
    5959== Changelog ==
     60
     61= 1.3.2 =
     62* Add wp-cron.php to the exclude path.
    6063
    6164= 1.3.1 =
  • simple-website-redirect/trunk/vendor/autoload.php

    r3200400 r3256323  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit7387a277d1209dff8496fc5ad8379c46::getLoader();
     25return ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86::getLoader();
  • simple-website-redirect/trunk/vendor/composer/InstalledVersions.php

    r3128446 r3256323  
    3232     */
    3333    private static $installed;
     34
     35    /**
     36     * @var bool
     37     */
     38    private static $installedIsLocalDir;
    3439
    3540    /**
     
    310315        self::$installed = $data;
    311316        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;
    312323    }
    313324
     
    323334
    324335        $installed = array();
     336        $copiedLocalDir = false;
    325337
    326338        if (self::$canGetVendors) {
     339            $selfDir = strtr(__DIR__, '\\', '/');
    327340            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     341                $vendorDir = strtr($vendorDir, '\\', '/');
    328342                if (isset(self::$installedByVendor[$vendorDir])) {
    329343                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331345                    /** @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 */
    332346                    $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;
    336352                    }
     353                }
     354                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     355                    $copiedLocalDir = true;
    337356                }
    338357            }
     
    351370        }
    352371
    353         if (self::$installed !== array()) {
     372        if (self::$installed !== array() && !$copiedLocalDir) {
    354373            $installed[] = self::$installed;
    355374        }
  • simple-website-redirect/trunk/vendor/composer/autoload_real.php

    r3200400 r3256323  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit7387a277d1209dff8496fc5ad8379c46
     5class ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit7387a277d1209dff8496fc5ad8379c46', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit7387a277d1209dff8496fc5ad8379c46', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitec4accb133f915d98fbaffab40568e86', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit7387a277d1209dff8496fc5ad8379c46::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitec4accb133f915d98fbaffab40568e86::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • simple-website-redirect/trunk/vendor/composer/autoload_static.php

    r3200400 r3256323  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit7387a277d1209dff8496fc5ad8379c46
     7class ComposerStaticInitec4accb133f915d98fbaffab40568e86
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2929    {
    3030        return \Closure::bind(function () use ($loader) {
    31             $loader->prefixLengthsPsr4 = ComposerStaticInit7387a277d1209dff8496fc5ad8379c46::$prefixLengthsPsr4;
    32             $loader->prefixDirsPsr4 = ComposerStaticInit7387a277d1209dff8496fc5ad8379c46::$prefixDirsPsr4;
    33             $loader->classMap = ComposerStaticInit7387a277d1209dff8496fc5ad8379c46::$classMap;
     31            $loader->prefixLengthsPsr4 = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$prefixLengthsPsr4;
     32            $loader->prefixDirsPsr4 = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$prefixDirsPsr4;
     33            $loader->classMap = ComposerStaticInitec4accb133f915d98fbaffab40568e86::$classMap;
    3434
    3535        }, null, ClassLoader::class);
  • simple-website-redirect/trunk/vendor/composer/installed.json

    r3200400 r3256323  
    33        {
    44            "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",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/wpscholar/url.git",
    10                 "reference": "6e97376a1cf3a9f4d0f0ae976cece6123d1bd4b8"
     10                "reference": "8a8fa6dc257d75353782a7acd9b1194a17d8eadd"
    1111            },
    1212            "dist": {
    1313                "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",
    1616                "shasum": ""
    1717            },
    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",
    1925            "type": "library",
    2026            "installation-source": "dist",
     
    3844            "support": {
    3945                "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"
    4147            },
    4248            "install-path": "../wpscholar/url"
  • simple-website-redirect/trunk/vendor/composer/installed.php

    r3200405 r3256323  
    22    'root' => array(
    33        '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',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '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',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        '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',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../wpscholar/url',
  • simple-website-redirect/trunk/vendor/wpscholar/url/Url.php

    r3200400 r3256323  
    9696     */
    9797    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';
    102121    }
    103122
     
    105124     * Build a URL from its component parts.
    106125     *
    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
    110131     */
    111132    public static function buildUrl( array $parts ) {
     
    145166     * Build a path from its component parts.
    146167     *
    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
    151172     */
    152173    public static function buildPath( array $segments, $trailing_slash = false ) {
     
    165186     * Strip the query string from a URL.
    166187     *
    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
    170191     */
    171192    public static function stripQueryString( $url ) {
     
    179200     * Create a new instance.
    180201     *
    181      * @param string $url
     202     * @param string $url The URL to parse, defaults to current URL if empty
    182203     */
    183204    public function __construct( $url = '' ) {
     
    191212     * Parse a URL into its component parts.
    192213     *
    193      * @param string $url
     214     * @param string $url The URL string to parse into components
    194215     *
    195216     * @return $this
     
    228249
    229250    /**
    230      * Gat 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
    233254     *
    234255     * @return string|null
     
    243264     * Add a query variable to the URL.
    244265     *
    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
    249270     */
    250271    public function addQueryVar( $name, $value ) {
     
    259280     * Remove a query variable from the URL.
    260281     *
    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
    264285     */
    265286    public function removeQueryVar( $name ) {
     
    274295     * Get a query variable from the URL.
    275296     *
    276      * @param string $name
     297     * @param string $name The name of the query variable to retrieve
    277298     *
    278299     * @return string|null
     
    299320     * Add a fragment to the URL.
    300321     *
    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
    304325     */
    305326    public function addFragment( $value ) {
     
    348369     * Magic method for getting properties.
    349370     *
    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
    353374     */
    354375    public function __get( $name ) {
     
    365386     * Magic method for setting properties.
    366387     *
    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.
    369390     *
    370391     * @return $this
     
    373394        $property = "_{$name}";
    374395        if ( 'url' === $name ) {
    375 
    376396            // If setting URL, parse and set all the URL parts
    377             $this->parseUrl( $value );
    378 
     397            $this->parseUrl( (string) $value );
    379398        } elseif ( property_exists( $this, $property ) ) {
    380 
    381399            // If setting a URL part, build and set the full URL
    382400            $this->$property = (string) $value;
    383401            $this->_url      = self::buildUrl( $this->toArray() );
    384 
    385402        }
    386403
    387404        return $this;
    388405    }
    389 
    390406}
Note: See TracChangeset for help on using the changeset viewer.