Plugin Directory

Changeset 3369209


Ignore:
Timestamp:
09/28/2025 01:32:55 PM (6 months ago)
Author:
mihdan
Message:

Update to version 5.1.5 from GitHub

Location:
mihdan-no-external-links
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • mihdan-no-external-links/tags/5.1.5/mihdan-no-external-links.php

    r3096422 r3369209  
    99 * @wordpress-plugin
    1010 * Plugin Name:       No External Links
    11  * Plugin URI:        https://wordpress.org/plugins/mihdan-no-external-links/
     11 * Plugin URI:        https://www.kobzarev.com/projects/no-external-links/
    1212 * Description:       Convert external links into internal links, site wide or post/page specific. Add NoFollow, Click logging, and more...
    13  * Version:           5.1.4
     13 * Version:           5.1.5
    1414 * Author:            Mikhail Kobzarev
    1515 * Author URI:        https://www.kobzarev.com/
     
    2929
    3030const MIHDAN_NO_EXTERNAL_LINKS_DIR     = __DIR__;
    31 const MIHDAN_NO_EXTERNAL_LINKS_VERSION = '5.1.4';
     31const MIHDAN_NO_EXTERNAL_LINKS_VERSION = '5.1.5';
    3232const MIHDAN_NO_EXTERNAL_LINKS_SLUG    = 'mihdan-no-external-links';
    3333
  • mihdan-no-external-links/tags/5.1.5/readme.txt

    r3096422 r3369209  
    44Tags: seo, seo-hide, links, posts, comments
    55Requires at least: 5.7.4
    6 Tested up to: 6.5
    7 Stable tag: 5.1.4
     6Tested up to: 6.8
     7Stable tag: 5.1.5
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    6363
    6464== Changelog ==
     65
     66= 5.1.5 (28.09.2025) =
     67* Tested with WordPress 6.4+
    6568
    6669= 5.1.4 (02.06.2024) =
  • mihdan-no-external-links/tags/5.1.5/vendor/autoload.php

    r3001562 r3369209  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
  • mihdan-no-external-links/tags/5.1.5/vendor/composer/InstalledVersions.php

    r2900866 r3369209  
    2828{
    2929    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
     35    /**
    3036     * @var mixed[]|null
    3137     * @psalm-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[]}>}|array{}|null
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    310321        self::$installed = $data;
    311322        self::$installedByVendor = array();
     323
     324        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     325        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     326        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     327        // all installed packages for example
     328        self::$installedIsLocalDir = false;
     329    }
     330
     331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331363                    /** @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 */
    332364                    $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];
     365                    self::$installedByVendor[$vendorDir] = $required;
     366                    $installed[] = $required;
     367                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     368                        self::$installed = $required;
     369                        self::$installedIsLocalDir = true;
    336370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    337374                }
    338375            }
     
    351388        }
    352389
    353         if (self::$installed !== array()) {
     390        if (self::$installed !== array() && !$copiedLocalDir) {
    354391            $installed[] = self::$installed;
    355392        }
  • mihdan-no-external-links/tags/5.1.5/vendor/composer/installed.php

    r3096422 r3369209  
    22    'root' => array(
    33        'name' => 'mihdan/mihdan-no-external-links',
    4         'pretty_version' => '5.1.4',
    5         'version' => '5.1.4.0',
    6         'reference' => '26f9863c04d7e172471fd172878d7c8cdd4137a6',
     4        'pretty_version' => '5.1.5',
     5        'version' => '5.1.5.0',
     6        'reference' => 'a6d16d367a6ceb1bbe468219125173021c653f99',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'mihdan/mihdan-no-external-links' => array(
    14             'pretty_version' => '5.1.4',
    15             'version' => '5.1.4.0',
    16             'reference' => '26f9863c04d7e172471fd172878d7c8cdd4137a6',
     14            'pretty_version' => '5.1.5',
     15            'version' => '5.1.5.0',
     16            'reference' => 'a6d16d367a6ceb1bbe468219125173021c653f99',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • mihdan-no-external-links/tags/5.1.5/vendor/composer/platform_check.php

    r2782199 r3369209  
    2020        }
    2121    }
    22     trigger_error(
    23         'Composer detected issues in your platform: ' . implode(' ', $issues),
    24         E_USER_ERROR
     22    throw new \RuntimeException(
     23        'Composer detected issues in your platform: ' . implode(' ', $issues)
    2524    );
    2625}
  • mihdan-no-external-links/trunk/mihdan-no-external-links.php

    r3096422 r3369209  
    99 * @wordpress-plugin
    1010 * Plugin Name:       No External Links
    11  * Plugin URI:        https://wordpress.org/plugins/mihdan-no-external-links/
     11 * Plugin URI:        https://www.kobzarev.com/projects/no-external-links/
    1212 * Description:       Convert external links into internal links, site wide or post/page specific. Add NoFollow, Click logging, and more...
    13  * Version:           5.1.4
     13 * Version:           5.1.5
    1414 * Author:            Mikhail Kobzarev
    1515 * Author URI:        https://www.kobzarev.com/
     
    2929
    3030const MIHDAN_NO_EXTERNAL_LINKS_DIR     = __DIR__;
    31 const MIHDAN_NO_EXTERNAL_LINKS_VERSION = '5.1.4';
     31const MIHDAN_NO_EXTERNAL_LINKS_VERSION = '5.1.5';
    3232const MIHDAN_NO_EXTERNAL_LINKS_SLUG    = 'mihdan-no-external-links';
    3333
  • mihdan-no-external-links/trunk/readme.txt

    r3096422 r3369209  
    44Tags: seo, seo-hide, links, posts, comments
    55Requires at least: 5.7.4
    6 Tested up to: 6.5
    7 Stable tag: 5.1.4
     6Tested up to: 6.8
     7Stable tag: 5.1.5
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    6363
    6464== Changelog ==
     65
     66= 5.1.5 (28.09.2025) =
     67* Tested with WordPress 6.4+
    6568
    6669= 5.1.4 (02.06.2024) =
  • mihdan-no-external-links/trunk/vendor/autoload.php

    r3001562 r3369209  
    1515        }
    1616    }
    17     trigger_error(
    18         $err,
    19         E_USER_ERROR
    20     );
     17    throw new RuntimeException($err);
    2118}
    2219
  • mihdan-no-external-links/trunk/vendor/composer/InstalledVersions.php

    r2900866 r3369209  
    2828{
    2929    /**
     30     * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
     31     * @internal
     32     */
     33    private static $selfDir = null;
     34
     35    /**
    3036     * @var mixed[]|null
    3137     * @psalm-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[]}>}|array{}|null
    3238     */
    3339    private static $installed;
     40
     41    /**
     42     * @var bool
     43     */
     44    private static $installedIsLocalDir;
    3445
    3546    /**
     
    310321        self::$installed = $data;
    311322        self::$installedByVendor = array();
     323
     324        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     325        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     326        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     327        // all installed packages for example
     328        self::$installedIsLocalDir = false;
     329    }
     330
     331    /**
     332     * @return string
     333     */
     334    private static function getSelfDir()
     335    {
     336        if (self::$selfDir === null) {
     337            self::$selfDir = strtr(__DIR__, '\\', '/');
     338        }
     339
     340        return self::$selfDir;
    312341    }
    313342
     
    323352
    324353        $installed = array();
     354        $copiedLocalDir = false;
    325355
    326356        if (self::$canGetVendors) {
     357            $selfDir = self::getSelfDir();
    327358            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     359                $vendorDir = strtr($vendorDir, '\\', '/');
    328360                if (isset(self::$installedByVendor[$vendorDir])) {
    329361                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331363                    /** @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 */
    332364                    $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];
     365                    self::$installedByVendor[$vendorDir] = $required;
     366                    $installed[] = $required;
     367                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     368                        self::$installed = $required;
     369                        self::$installedIsLocalDir = true;
    336370                    }
     371                }
     372                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     373                    $copiedLocalDir = true;
    337374                }
    338375            }
     
    351388        }
    352389
    353         if (self::$installed !== array()) {
     390        if (self::$installed !== array() && !$copiedLocalDir) {
    354391            $installed[] = self::$installed;
    355392        }
  • mihdan-no-external-links/trunk/vendor/composer/installed.php

    r3096422 r3369209  
    22    'root' => array(
    33        'name' => 'mihdan/mihdan-no-external-links',
    4         'pretty_version' => '5.1.4',
    5         'version' => '5.1.4.0',
    6         'reference' => '26f9863c04d7e172471fd172878d7c8cdd4137a6',
     4        'pretty_version' => '5.1.5',
     5        'version' => '5.1.5.0',
     6        'reference' => 'a6d16d367a6ceb1bbe468219125173021c653f99',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'mihdan/mihdan-no-external-links' => array(
    14             'pretty_version' => '5.1.4',
    15             'version' => '5.1.4.0',
    16             'reference' => '26f9863c04d7e172471fd172878d7c8cdd4137a6',
     14            'pretty_version' => '5.1.5',
     15            'version' => '5.1.5.0',
     16            'reference' => 'a6d16d367a6ceb1bbe468219125173021c653f99',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • mihdan-no-external-links/trunk/vendor/composer/platform_check.php

    r2782199 r3369209  
    2020        }
    2121    }
    22     trigger_error(
    23         'Composer detected issues in your platform: ' . implode(' ', $issues),
    24         E_USER_ERROR
     22    throw new \RuntimeException(
     23        'Composer detected issues in your platform: ' . implode(' ', $issues)
    2524    );
    2625}
Note: See TracChangeset for help on using the changeset viewer.