Changeset 3369209
- Timestamp:
- 09/28/2025 01:32:55 PM (6 months ago)
- Location:
- mihdan-no-external-links
- Files:
-
- 12 edited
- 1 copied
-
tags/5.1.5 (copied) (copied from mihdan-no-external-links/trunk)
-
tags/5.1.5/mihdan-no-external-links.php (modified) (2 diffs)
-
tags/5.1.5/readme.txt (modified) (2 diffs)
-
tags/5.1.5/vendor/autoload.php (modified) (1 diff)
-
tags/5.1.5/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/5.1.5/vendor/composer/installed.php (modified) (2 diffs)
-
tags/5.1.5/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/mihdan-no-external-links.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mihdan-no-external-links/tags/5.1.5/mihdan-no-external-links.php
r3096422 r3369209 9 9 * @wordpress-plugin 10 10 * Plugin Name: No External Links 11 * Plugin URI: https://w ordpress.org/plugins/mihdan-no-external-links/11 * Plugin URI: https://www.kobzarev.com/projects/no-external-links/ 12 12 * Description: Convert external links into internal links, site wide or post/page specific. Add NoFollow, Click logging, and more... 13 * Version: 5.1. 413 * Version: 5.1.5 14 14 * Author: Mikhail Kobzarev 15 15 * Author URI: https://www.kobzarev.com/ … … 29 29 30 30 const MIHDAN_NO_EXTERNAL_LINKS_DIR = __DIR__; 31 const MIHDAN_NO_EXTERNAL_LINKS_VERSION = '5.1. 4';31 const MIHDAN_NO_EXTERNAL_LINKS_VERSION = '5.1.5'; 32 32 const MIHDAN_NO_EXTERNAL_LINKS_SLUG = 'mihdan-no-external-links'; 33 33 -
mihdan-no-external-links/tags/5.1.5/readme.txt
r3096422 r3369209 4 4 Tags: seo, seo-hide, links, posts, comments 5 5 Requires at least: 5.7.4 6 Tested up to: 6. 57 Stable tag: 5.1. 46 Tested up to: 6.8 7 Stable tag: 5.1.5 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 63 63 64 64 == Changelog == 65 66 = 5.1.5 (28.09.2025) = 67 * Tested with WordPress 6.4+ 65 68 66 69 = 5.1.4 (02.06.2024) = -
mihdan-no-external-links/tags/5.1.5/vendor/autoload.php
r3001562 r3369209 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
mihdan-no-external-links/tags/5.1.5/vendor/composer/InstalledVersions.php
r2900866 r3369209 28 28 { 29 29 /** 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 /** 30 36 * @var mixed[]|null 31 37 * @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 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 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; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @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 364 $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; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
mihdan-no-external-links/tags/5.1.5/vendor/composer/installed.php
r3096422 r3369209 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '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', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
mihdan-no-external-links/tags/5.1.5/vendor/composer/platform_check.php
r2782199 r3369209 20 20 } 21 21 } 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) 25 24 ); 26 25 } -
mihdan-no-external-links/trunk/mihdan-no-external-links.php
r3096422 r3369209 9 9 * @wordpress-plugin 10 10 * Plugin Name: No External Links 11 * Plugin URI: https://w ordpress.org/plugins/mihdan-no-external-links/11 * Plugin URI: https://www.kobzarev.com/projects/no-external-links/ 12 12 * Description: Convert external links into internal links, site wide or post/page specific. Add NoFollow, Click logging, and more... 13 * Version: 5.1. 413 * Version: 5.1.5 14 14 * Author: Mikhail Kobzarev 15 15 * Author URI: https://www.kobzarev.com/ … … 29 29 30 30 const MIHDAN_NO_EXTERNAL_LINKS_DIR = __DIR__; 31 const MIHDAN_NO_EXTERNAL_LINKS_VERSION = '5.1. 4';31 const MIHDAN_NO_EXTERNAL_LINKS_VERSION = '5.1.5'; 32 32 const MIHDAN_NO_EXTERNAL_LINKS_SLUG = 'mihdan-no-external-links'; 33 33 -
mihdan-no-external-links/trunk/readme.txt
r3096422 r3369209 4 4 Tags: seo, seo-hide, links, posts, comments 5 5 Requires at least: 5.7.4 6 Tested up to: 6. 57 Stable tag: 5.1. 46 Tested up to: 6.8 7 Stable tag: 5.1.5 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 63 63 64 64 == Changelog == 65 66 = 5.1.5 (28.09.2025) = 67 * Tested with WordPress 6.4+ 65 68 66 69 = 5.1.4 (02.06.2024) = -
mihdan-no-external-links/trunk/vendor/autoload.php
r3001562 r3369209 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
mihdan-no-external-links/trunk/vendor/composer/InstalledVersions.php
r2900866 r3369209 28 28 { 29 29 /** 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 /** 30 36 * @var mixed[]|null 31 37 * @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 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 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; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @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 364 $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; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
mihdan-no-external-links/trunk/vendor/composer/installed.php
r3096422 r3369209 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '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', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
mihdan-no-external-links/trunk/vendor/composer/platform_check.php
r2782199 r3369209 20 20 } 21 21 } 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) 25 24 ); 26 25 }
Note: See TracChangeset
for help on using the changeset viewer.