Changeset 3473176
- Timestamp:
- 03/03/2026 01:36:37 AM (8 days ago)
- Location:
- mpress-hide-from-search
- Files:
-
- 16 edited
- 1 copied
-
tags/1.1.8 (copied) (copied from mpress-hide-from-search/trunk)
-
tags/1.1.8/includes/MetaBox.php (modified) (1 diff)
-
tags/1.1.8/includes/Plugin.php (modified) (3 diffs)
-
tags/1.1.8/mpress-hide-from-search.php (modified) (2 diffs)
-
tags/1.1.8/readme.txt (modified) (2 diffs)
-
tags/1.1.8/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.8/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/1.1.8/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.1.8/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/includes/MetaBox.php (modified) (1 diff)
-
trunk/includes/Plugin.php (modified) (3 diffs)
-
trunk/mpress-hide-from-search.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/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mpress-hide-from-search/tags/1.1.8/includes/MetaBox.php
r2906632 r3473176 87 87 } 88 88 } 89 90 89 } -
mpress-hide-from-search/tags/1.1.8/includes/Plugin.php
r3200473 r3473176 25 25 public static function initialize() { 26 26 self::setUpContainer(); 27 self::registerFields();28 27 self::setUpHooks(); 29 28 … … 99 98 */ 100 99 public static function loadTextDomain() { 101 load_plugin_textdomain( ' hide-from-search', false, dirname( HIDE_FROM_SEARCH_FILE ) . '/languages' );100 load_plugin_textdomain( 'mpress-hide-from-search', false, dirname( HIDE_FROM_SEARCH_FILE ) . '/languages' ); 102 101 } 103 102 … … 187 186 */ 188 187 public static function setUpHooks() { 189 add_action( 'plugins_loaded', array( __CLASS__, 'loadTextDomain' ) ); 188 add_action( 'init', array( __CLASS__, 'loadTextDomain' ) ); 189 add_action( 'init', array( __CLASS__, 'registerFields' ) ); 190 190 add_action( 'wp_head', array( __CLASS__, 'hideFromSearchEngines' ), 5 ); 191 191 add_filter( 'posts_where', array( __CLASS__, 'hideFromWordPressSearch' ) ); -
mpress-hide-from-search/tags/1.1.8/mpress-hide-from-search.php
r3200473 r3473176 12 12 * Plugin URI: https://wordpress.org/plugins/mpress-hide-from-search/ 13 13 * Description: Hide individual WordPress pages from search engines and/or WordPress search results. 14 * Version: 1.1. 714 * Version: 1.1.8 15 15 * Requires PHP: 7.4 16 16 * Requires at least: 6.0 … … 23 23 */ 24 24 25 define( 'HIDE_FROM_SEARCH_VERSION', '1.1. 7' );25 define( 'HIDE_FROM_SEARCH_VERSION', '1.1.8' ); 26 26 define( 'HIDE_FROM_SEARCH_FILE', __FILE__ ); 27 27 -
mpress-hide-from-search/tags/1.1.8/readme.txt
r3200473 r3473176 5 5 Requires at least: 6.0 6 6 Requires PHP: 7.4 7 Tested up to: 6. 78 Stable tag: 1.1. 77 Tested up to: 6.9 8 Stable tag: 1.1.8 9 9 License: GPLv2 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == Changelog == 68 69 = 1.1.8 = 70 * General maintenance 68 71 69 72 = 1.1.7 = -
mpress-hide-from-search/tags/1.1.8/vendor/autoload.php
r3200473 r3473176 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
mpress-hide-from-search/tags/1.1.8/vendor/composer/InstalledVersions.php
r2906632 r3473176 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 } -
mpress-hide-from-search/tags/1.1.8/vendor/composer/autoload_static.php
r3200473 r3473176 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( 10 'W' => 10 'W' => 11 11 array ( 12 12 'WP_Forge\\UpgradeHandler\\' => 24, 13 13 'WP_Forge\\Container\\' => 19, 14 14 ), 15 'P' => 15 'P' => 16 16 array ( 17 17 'Psr\\Container\\' => 14, 18 18 ), 19 'H' => 19 'H' => 20 20 array ( 21 21 'HideFromSearch\\' => 15, … … 24 24 25 25 public static $prefixDirsPsr4 = array ( 26 'WP_Forge\\UpgradeHandler\\' => 26 'WP_Forge\\UpgradeHandler\\' => 27 27 array ( 28 28 0 => __DIR__ . '/..' . '/wp-forge/wp-upgrade-handler/includes', 29 29 ), 30 'WP_Forge\\Container\\' => 30 'WP_Forge\\Container\\' => 31 31 array ( 32 32 0 => __DIR__ . '/..' . '/wp-forge/container/includes', 33 33 ), 34 'Psr\\Container\\' => 34 'Psr\\Container\\' => 35 35 array ( 36 36 0 => __DIR__ . '/..' . '/psr/container/src', 37 37 ), 38 'HideFromSearch\\' => 38 'HideFromSearch\\' => 39 39 array ( 40 40 0 => __DIR__ . '/../..' . '/includes', -
mpress-hide-from-search/tags/1.1.8/vendor/composer/installed.php
r3200473 r3473176 2 2 'root' => array( 3 3 'name' => 'wpscholar/mpress-hide-from-search', 4 'pretty_version' => '1.1. 7',5 'version' => '1.1. 7.0',6 'reference' => ' b430164a4247fc85d43126cf897d270551846190',4 'pretty_version' => '1.1.8', 5 'version' => '1.1.8.0', 6 'reference' => '40a40adba28dc4678be33c320020e6f1b21812e4', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 48 48 ), 49 49 'wpscholar/mpress-hide-from-search' => array( 50 'pretty_version' => '1.1. 7',51 'version' => '1.1. 7.0',52 'reference' => ' b430164a4247fc85d43126cf897d270551846190',50 'pretty_version' => '1.1.8', 51 'version' => '1.1.8.0', 52 'reference' => '40a40adba28dc4678be33c320020e6f1b21812e4', 53 53 'type' => 'wordpress-plugin', 54 54 'install_path' => __DIR__ . '/../../', -
mpress-hide-from-search/trunk/includes/MetaBox.php
r2906632 r3473176 87 87 } 88 88 } 89 90 89 } -
mpress-hide-from-search/trunk/includes/Plugin.php
r3200473 r3473176 25 25 public static function initialize() { 26 26 self::setUpContainer(); 27 self::registerFields();28 27 self::setUpHooks(); 29 28 … … 99 98 */ 100 99 public static function loadTextDomain() { 101 load_plugin_textdomain( ' hide-from-search', false, dirname( HIDE_FROM_SEARCH_FILE ) . '/languages' );100 load_plugin_textdomain( 'mpress-hide-from-search', false, dirname( HIDE_FROM_SEARCH_FILE ) . '/languages' ); 102 101 } 103 102 … … 187 186 */ 188 187 public static function setUpHooks() { 189 add_action( 'plugins_loaded', array( __CLASS__, 'loadTextDomain' ) ); 188 add_action( 'init', array( __CLASS__, 'loadTextDomain' ) ); 189 add_action( 'init', array( __CLASS__, 'registerFields' ) ); 190 190 add_action( 'wp_head', array( __CLASS__, 'hideFromSearchEngines' ), 5 ); 191 191 add_filter( 'posts_where', array( __CLASS__, 'hideFromWordPressSearch' ) ); -
mpress-hide-from-search/trunk/mpress-hide-from-search.php
r3200473 r3473176 12 12 * Plugin URI: https://wordpress.org/plugins/mpress-hide-from-search/ 13 13 * Description: Hide individual WordPress pages from search engines and/or WordPress search results. 14 * Version: 1.1. 714 * Version: 1.1.8 15 15 * Requires PHP: 7.4 16 16 * Requires at least: 6.0 … … 23 23 */ 24 24 25 define( 'HIDE_FROM_SEARCH_VERSION', '1.1. 7' );25 define( 'HIDE_FROM_SEARCH_VERSION', '1.1.8' ); 26 26 define( 'HIDE_FROM_SEARCH_FILE', __FILE__ ); 27 27 -
mpress-hide-from-search/trunk/readme.txt
r3200473 r3473176 5 5 Requires at least: 6.0 6 6 Requires PHP: 7.4 7 Tested up to: 6. 78 Stable tag: 1.1. 77 Tested up to: 6.9 8 Stable tag: 1.1.8 9 9 License: GPLv2 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == Changelog == 68 69 = 1.1.8 = 70 * General maintenance 68 71 69 72 = 1.1.7 = -
mpress-hide-from-search/trunk/vendor/autoload.php
r3200473 r3473176 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
mpress-hide-from-search/trunk/vendor/composer/InstalledVersions.php
r2906632 r3473176 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 } -
mpress-hide-from-search/trunk/vendor/composer/autoload_static.php
r3200473 r3473176 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( 10 'W' => 10 'W' => 11 11 array ( 12 12 'WP_Forge\\UpgradeHandler\\' => 24, 13 13 'WP_Forge\\Container\\' => 19, 14 14 ), 15 'P' => 15 'P' => 16 16 array ( 17 17 'Psr\\Container\\' => 14, 18 18 ), 19 'H' => 19 'H' => 20 20 array ( 21 21 'HideFromSearch\\' => 15, … … 24 24 25 25 public static $prefixDirsPsr4 = array ( 26 'WP_Forge\\UpgradeHandler\\' => 26 'WP_Forge\\UpgradeHandler\\' => 27 27 array ( 28 28 0 => __DIR__ . '/..' . '/wp-forge/wp-upgrade-handler/includes', 29 29 ), 30 'WP_Forge\\Container\\' => 30 'WP_Forge\\Container\\' => 31 31 array ( 32 32 0 => __DIR__ . '/..' . '/wp-forge/container/includes', 33 33 ), 34 'Psr\\Container\\' => 34 'Psr\\Container\\' => 35 35 array ( 36 36 0 => __DIR__ . '/..' . '/psr/container/src', 37 37 ), 38 'HideFromSearch\\' => 38 'HideFromSearch\\' => 39 39 array ( 40 40 0 => __DIR__ . '/../..' . '/includes', -
mpress-hide-from-search/trunk/vendor/composer/installed.php
r3200473 r3473176 2 2 'root' => array( 3 3 'name' => 'wpscholar/mpress-hide-from-search', 4 'pretty_version' => '1.1. 7',5 'version' => '1.1. 7.0',6 'reference' => ' b430164a4247fc85d43126cf897d270551846190',4 'pretty_version' => '1.1.8', 5 'version' => '1.1.8.0', 6 'reference' => '40a40adba28dc4678be33c320020e6f1b21812e4', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 48 48 ), 49 49 'wpscholar/mpress-hide-from-search' => array( 50 'pretty_version' => '1.1. 7',51 'version' => '1.1. 7.0',52 'reference' => ' b430164a4247fc85d43126cf897d270551846190',50 'pretty_version' => '1.1.8', 51 'version' => '1.1.8.0', 52 'reference' => '40a40adba28dc4678be33c320020e6f1b21812e4', 53 53 'type' => 'wordpress-plugin', 54 54 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.