plugin installs
This commit is contained in:
7
wp/wp-content/plugins/wordpress-seo-premium/vendor/autoload.php
vendored
Normal file
7
wp/wp-content/plugins/wordpress-seo-premium/vendor/autoload.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit6a21570359fb0970a74d26d7d2ed77bc::getLoader();
|
||||
572
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/ClassLoader.php
vendored
Normal file
572
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/ClassLoader.php
vendored
Normal file
@@ -0,0 +1,572 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
/**
|
||||
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
|
||||
*
|
||||
* $loader = new \Composer\Autoload\ClassLoader();
|
||||
*
|
||||
* // register classes with namespaces
|
||||
* $loader->add('Symfony\Component', __DIR__.'/component');
|
||||
* $loader->add('Symfony', __DIR__.'/framework');
|
||||
*
|
||||
* // activate the autoloader
|
||||
* $loader->register();
|
||||
*
|
||||
* // to enable searching the include path (eg. for PEAR packages)
|
||||
* $loader->setUseIncludePath(true);
|
||||
*
|
||||
* In this example, if you try to use a class in the Symfony\Component
|
||||
* namespace or one of its children (Symfony\Component\Console for instance),
|
||||
* the autoloader will first look for the class under the component/
|
||||
* directory, and it will then fallback to the framework/ directory if not
|
||||
* found before giving up.
|
||||
*
|
||||
* This class is loosely based on the Symfony UniversalClassLoader.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||
* @see https://www.php-fig.org/psr/psr-0/
|
||||
* @see https://www.php-fig.org/psr/psr-4/
|
||||
*/
|
||||
class ClassLoader
|
||||
{
|
||||
/** @var ?string */
|
||||
private $vendorDir;
|
||||
|
||||
// PSR-4
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array<string, int>>
|
||||
*/
|
||||
private $prefixLengthsPsr4 = array();
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array<int, string>>
|
||||
*/
|
||||
private $prefixDirsPsr4 = array();
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, string>
|
||||
*/
|
||||
private $fallbackDirsPsr4 = array();
|
||||
|
||||
// PSR-0
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array<string, string[]>>
|
||||
*/
|
||||
private $prefixesPsr0 = array();
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, string>
|
||||
*/
|
||||
private $fallbackDirsPsr0 = array();
|
||||
|
||||
/** @var bool */
|
||||
private $useIncludePath = false;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
* @psalm-var array<string, string>
|
||||
*/
|
||||
private $classMap = array();
|
||||
|
||||
/** @var bool */
|
||||
private $classMapAuthoritative = false;
|
||||
|
||||
/**
|
||||
* @var bool[]
|
||||
* @psalm-var array<string, bool>
|
||||
*/
|
||||
private $missingClasses = array();
|
||||
|
||||
/** @var ?string */
|
||||
private $apcuPrefix;
|
||||
|
||||
/**
|
||||
* @var self[]
|
||||
*/
|
||||
private static $registeredLoaders = array();
|
||||
|
||||
/**
|
||||
* @param ?string $vendorDir
|
||||
*/
|
||||
public function __construct($vendorDir = null)
|
||||
{
|
||||
$this->vendorDir = $vendorDir;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPrefixes()
|
||||
{
|
||||
if (!empty($this->prefixesPsr0)) {
|
||||
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return array<string, array<int, string>>
|
||||
*/
|
||||
public function getPrefixesPsr4()
|
||||
{
|
||||
return $this->prefixDirsPsr4;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return array<string, string>
|
||||
*/
|
||||
public function getFallbackDirs()
|
||||
{
|
||||
return $this->fallbackDirsPsr0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return array<string, string>
|
||||
*/
|
||||
public function getFallbackDirsPsr4()
|
||||
{
|
||||
return $this->fallbackDirsPsr4;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[] Array of classname => path
|
||||
* @psalm-return array<string, string>
|
||||
*/
|
||||
public function getClassMap()
|
||||
{
|
||||
return $this->classMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string[] $classMap Class to filename map
|
||||
* @psalm-param array<string, string> $classMap
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addClassMap(array $classMap)
|
||||
{
|
||||
if ($this->classMap) {
|
||||
$this->classMap = array_merge($this->classMap, $classMap);
|
||||
} else {
|
||||
$this->classMap = $classMap;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-0 directories for a given prefix, either
|
||||
* appending or prepending to the ones previously set for this prefix.
|
||||
*
|
||||
* @param string $prefix The prefix
|
||||
* @param string[]|string $paths The PSR-0 root directories
|
||||
* @param bool $prepend Whether to prepend the directories
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function add($prefix, $paths, $prepend = false)
|
||||
{
|
||||
if (!$prefix) {
|
||||
if ($prepend) {
|
||||
$this->fallbackDirsPsr0 = array_merge(
|
||||
(array) $paths,
|
||||
$this->fallbackDirsPsr0
|
||||
);
|
||||
} else {
|
||||
$this->fallbackDirsPsr0 = array_merge(
|
||||
$this->fallbackDirsPsr0,
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$first = $prefix[0];
|
||||
if (!isset($this->prefixesPsr0[$first][$prefix])) {
|
||||
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
|
||||
|
||||
return;
|
||||
}
|
||||
if ($prepend) {
|
||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||
(array) $paths,
|
||||
$this->prefixesPsr0[$first][$prefix]
|
||||
);
|
||||
} else {
|
||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||
$this->prefixesPsr0[$first][$prefix],
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-4 directories for a given namespace, either
|
||||
* appending or prepending to the ones previously set for this namespace.
|
||||
*
|
||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||
* @param string[]|string $paths The PSR-4 base directories
|
||||
* @param bool $prepend Whether to prepend the directories
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addPsr4($prefix, $paths, $prepend = false)
|
||||
{
|
||||
if (!$prefix) {
|
||||
// Register directories for the root namespace.
|
||||
if ($prepend) {
|
||||
$this->fallbackDirsPsr4 = array_merge(
|
||||
(array) $paths,
|
||||
$this->fallbackDirsPsr4
|
||||
);
|
||||
} else {
|
||||
$this->fallbackDirsPsr4 = array_merge(
|
||||
$this->fallbackDirsPsr4,
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
|
||||
// Register directories for a new namespace.
|
||||
$length = strlen($prefix);
|
||||
if ('\\' !== $prefix[$length - 1]) {
|
||||
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
||||
}
|
||||
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
||||
} elseif ($prepend) {
|
||||
// Prepend directories for an already registered namespace.
|
||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||
(array) $paths,
|
||||
$this->prefixDirsPsr4[$prefix]
|
||||
);
|
||||
} else {
|
||||
// Append directories for an already registered namespace.
|
||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||
$this->prefixDirsPsr4[$prefix],
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-0 directories for a given prefix,
|
||||
* replacing any others previously set for this prefix.
|
||||
*
|
||||
* @param string $prefix The prefix
|
||||
* @param string[]|string $paths The PSR-0 base directories
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set($prefix, $paths)
|
||||
{
|
||||
if (!$prefix) {
|
||||
$this->fallbackDirsPsr0 = (array) $paths;
|
||||
} else {
|
||||
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-4 directories for a given namespace,
|
||||
* replacing any others previously set for this namespace.
|
||||
*
|
||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||
* @param string[]|string $paths The PSR-4 base directories
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setPsr4($prefix, $paths)
|
||||
{
|
||||
if (!$prefix) {
|
||||
$this->fallbackDirsPsr4 = (array) $paths;
|
||||
} else {
|
||||
$length = strlen($prefix);
|
||||
if ('\\' !== $prefix[$length - 1]) {
|
||||
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
||||
}
|
||||
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns on searching the include path for class files.
|
||||
*
|
||||
* @param bool $useIncludePath
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setUseIncludePath($useIncludePath)
|
||||
{
|
||||
$this->useIncludePath = $useIncludePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be used to check if the autoloader uses the include path to check
|
||||
* for classes.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getUseIncludePath()
|
||||
{
|
||||
return $this->useIncludePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns off searching the prefix and fallback directories for classes
|
||||
* that have not been registered with the class map.
|
||||
*
|
||||
* @param bool $classMapAuthoritative
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setClassMapAuthoritative($classMapAuthoritative)
|
||||
{
|
||||
$this->classMapAuthoritative = $classMapAuthoritative;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should class lookup fail if not found in the current class map?
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isClassMapAuthoritative()
|
||||
{
|
||||
return $this->classMapAuthoritative;
|
||||
}
|
||||
|
||||
/**
|
||||
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
||||
*
|
||||
* @param string|null $apcuPrefix
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setApcuPrefix($apcuPrefix)
|
||||
{
|
||||
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The APCu prefix in use, or null if APCu caching is not enabled.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getApcuPrefix()
|
||||
{
|
||||
return $this->apcuPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers this instance as an autoloader.
|
||||
*
|
||||
* @param bool $prepend Whether to prepend the autoloader or not
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register($prepend = false)
|
||||
{
|
||||
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
|
||||
|
||||
if (null === $this->vendorDir) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($prepend) {
|
||||
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
|
||||
} else {
|
||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||
self::$registeredLoaders[$this->vendorDir] = $this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregisters this instance as an autoloader.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function unregister()
|
||||
{
|
||||
spl_autoload_unregister(array($this, 'loadClass'));
|
||||
|
||||
if (null !== $this->vendorDir) {
|
||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the given class or interface.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
* @return true|null True if loaded, null otherwise
|
||||
*/
|
||||
public function loadClass($class)
|
||||
{
|
||||
if ($file = $this->findFile($class)) {
|
||||
includeFile($file);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the path to the file where the class is defined.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
*
|
||||
* @return string|false The path if found, false otherwise
|
||||
*/
|
||||
public function findFile($class)
|
||||
{
|
||||
// class map lookup
|
||||
if (isset($this->classMap[$class])) {
|
||||
return $this->classMap[$class];
|
||||
}
|
||||
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
||||
return false;
|
||||
}
|
||||
if (null !== $this->apcuPrefix) {
|
||||
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
|
||||
if ($hit) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
$file = $this->findFileWithExtension($class, '.php');
|
||||
|
||||
// Search for Hack files if we are running on HHVM
|
||||
if (false === $file && defined('HHVM_VERSION')) {
|
||||
$file = $this->findFileWithExtension($class, '.hh');
|
||||
}
|
||||
|
||||
if (null !== $this->apcuPrefix) {
|
||||
apcu_add($this->apcuPrefix.$class, $file);
|
||||
}
|
||||
|
||||
if (false === $file) {
|
||||
// Remember that this class does not exist.
|
||||
$this->missingClasses[$class] = true;
|
||||
}
|
||||
|
||||
return $file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the currently registered loaders indexed by their corresponding vendor directories.
|
||||
*
|
||||
* @return self[]
|
||||
*/
|
||||
public static function getRegisteredLoaders()
|
||||
{
|
||||
return self::$registeredLoaders;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $class
|
||||
* @param string $ext
|
||||
* @return string|false
|
||||
*/
|
||||
private function findFileWithExtension($class, $ext)
|
||||
{
|
||||
// PSR-4 lookup
|
||||
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
|
||||
|
||||
$first = $class[0];
|
||||
if (isset($this->prefixLengthsPsr4[$first])) {
|
||||
$subPath = $class;
|
||||
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
||||
$subPath = substr($subPath, 0, $lastPos);
|
||||
$search = $subPath . '\\';
|
||||
if (isset($this->prefixDirsPsr4[$search])) {
|
||||
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
||||
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
||||
if (file_exists($file = $dir . $pathEnd)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-4 fallback dirs
|
||||
foreach ($this->fallbackDirsPsr4 as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 lookup
|
||||
if (false !== $pos = strrpos($class, '\\')) {
|
||||
// namespaced class name
|
||||
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
|
||||
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
||||
} else {
|
||||
// PEAR-like class name
|
||||
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
|
||||
}
|
||||
|
||||
if (isset($this->prefixesPsr0[$first])) {
|
||||
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
|
||||
if (0 === strpos($class, $prefix)) {
|
||||
foreach ($dirs as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 fallback dirs
|
||||
foreach ($this->fallbackDirsPsr0 as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 include paths.
|
||||
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope isolated include.
|
||||
*
|
||||
* Prevents access to $this/self from included files.
|
||||
*
|
||||
* @param string $file
|
||||
* @return void
|
||||
* @private
|
||||
*/
|
||||
function includeFile($file)
|
||||
{
|
||||
include $file;
|
||||
}
|
||||
357
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/InstalledVersions.php
vendored
Normal file
357
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/InstalledVersions.php
vendored
Normal file
@@ -0,0 +1,357 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer;
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Composer\Semver\VersionParser;
|
||||
|
||||
/**
|
||||
* This class is copied in every Composer installed project and available to all
|
||||
*
|
||||
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
||||
*
|
||||
* To require its presence, you can require `composer-runtime-api ^2.0`
|
||||
*/
|
||||
class InstalledVersions
|
||||
{
|
||||
/**
|
||||
* @var mixed[]|null
|
||||
* @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
|
||||
*/
|
||||
private static $installed;
|
||||
|
||||
/**
|
||||
* @var bool|null
|
||||
*/
|
||||
private static $canGetVendors;
|
||||
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
||||
*/
|
||||
private static $installedByVendor = array();
|
||||
|
||||
/**
|
||||
* Returns a list of all package names which are present, either by being installed, replaced or provided
|
||||
*
|
||||
* @return string[]
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public static function getInstalledPackages()
|
||||
{
|
||||
$packages = array();
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
$packages[] = array_keys($installed['versions']);
|
||||
}
|
||||
|
||||
if (1 === \count($packages)) {
|
||||
return $packages[0];
|
||||
}
|
||||
|
||||
return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all package names with a specific type e.g. 'library'
|
||||
*
|
||||
* @param string $type
|
||||
* @return string[]
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public static function getInstalledPackagesByType($type)
|
||||
{
|
||||
$packagesByType = array();
|
||||
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
foreach ($installed['versions'] as $name => $package) {
|
||||
if (isset($package['type']) && $package['type'] === $type) {
|
||||
$packagesByType[] = $name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $packagesByType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the given package is installed
|
||||
*
|
||||
* This also returns true if the package name is provided or replaced by another package
|
||||
*
|
||||
* @param string $packageName
|
||||
* @param bool $includeDevRequirements
|
||||
* @return bool
|
||||
*/
|
||||
public static function isInstalled($packageName, $includeDevRequirements = true)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (isset($installed['versions'][$packageName])) {
|
||||
return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the given package satisfies a version constraint
|
||||
*
|
||||
* e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
|
||||
*
|
||||
* Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
|
||||
*
|
||||
* @param VersionParser $parser Install composer/semver to have access to this class and functionality
|
||||
* @param string $packageName
|
||||
* @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
|
||||
* @return bool
|
||||
*/
|
||||
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
||||
{
|
||||
$constraint = $parser->parseConstraints($constraint);
|
||||
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
||||
|
||||
return $provided->matches($constraint);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a version constraint representing all the range(s) which are installed for a given package
|
||||
*
|
||||
* It is easier to use this via isInstalled() with the $constraint argument if you need to check
|
||||
* whether a given version of a package is installed, and not just whether it exists
|
||||
*
|
||||
* @param string $packageName
|
||||
* @return string Version constraint usable with composer/semver
|
||||
*/
|
||||
public static function getVersionRanges($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$ranges = array();
|
||||
if (isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
|
||||
}
|
||||
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
|
||||
}
|
||||
if (array_key_exists('provided', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
|
||||
}
|
||||
|
||||
return implode(' || ', $ranges);
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||
*/
|
||||
public static function getVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||
*/
|
||||
public static function getPrettyVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
|
||||
*/
|
||||
public static function getReference($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['reference'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['reference'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
|
||||
*/
|
||||
public static function getInstallPath($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
|
||||
*/
|
||||
public static function getRootPackage()
|
||||
{
|
||||
$installed = self::getInstalled();
|
||||
|
||||
return $installed[0]['root'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw installed.php data for custom implementations
|
||||
*
|
||||
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
||||
* @return array[]
|
||||
* @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
|
||||
*/
|
||||
public static function getRawData()
|
||||
{
|
||||
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
|
||||
|
||||
if (null === self::$installed) {
|
||||
// only require the installed.php file if this file is loaded from its dumped location,
|
||||
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||
if (substr(__DIR__, -8, 1) !== 'C') {
|
||||
self::$installed = include __DIR__ . '/installed.php';
|
||||
} else {
|
||||
self::$installed = array();
|
||||
}
|
||||
}
|
||||
|
||||
return self::$installed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
||||
*
|
||||
* @return array[]
|
||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
||||
*/
|
||||
public static function getAllRawData()
|
||||
{
|
||||
return self::getInstalled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Lets you reload the static array from another file
|
||||
*
|
||||
* This is only useful for complex integrations in which a project needs to use
|
||||
* this class but then also needs to execute another project's autoloader in process,
|
||||
* and wants to ensure both projects have access to their version of installed.php.
|
||||
*
|
||||
* A typical case would be PHPUnit, where it would need to make sure it reads all
|
||||
* the data it needs from this class, then call reload() with
|
||||
* `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
|
||||
* the project in which it runs can then also use this class safely, without
|
||||
* interference between PHPUnit's dependencies and the project's dependencies.
|
||||
*
|
||||
* @param array[] $data A vendor/composer/installed.php data set
|
||||
* @return void
|
||||
*
|
||||
* @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
|
||||
*/
|
||||
public static function reload($data)
|
||||
{
|
||||
self::$installed = $data;
|
||||
self::$installedByVendor = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
||||
*/
|
||||
private static function getInstalled()
|
||||
{
|
||||
if (null === self::$canGetVendors) {
|
||||
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
|
||||
}
|
||||
|
||||
$installed = array();
|
||||
|
||||
if (self::$canGetVendors) {
|
||||
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
||||
if (isset(self::$installedByVendor[$vendorDir])) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir];
|
||||
} elseif (is_file($vendorDir.'/composer/installed.php')) {
|
||||
/** @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 */
|
||||
$required = require $vendorDir.'/composer/installed.php';
|
||||
$installed[] = self::$installedByVendor[$vendorDir] = $required;
|
||||
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
|
||||
self::$installed = $installed[count($installed) - 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null === self::$installed) {
|
||||
// only require the installed.php file if this file is loaded from its dumped location,
|
||||
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||
if (substr(__DIR__, -8, 1) !== 'C') {
|
||||
/** @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 */
|
||||
$required = require __DIR__ . '/installed.php';
|
||||
self::$installed = $required;
|
||||
} else {
|
||||
self::$installed = array();
|
||||
}
|
||||
}
|
||||
|
||||
if (self::$installed !== array()) {
|
||||
$installed[] = self::$installed;
|
||||
}
|
||||
|
||||
return $installed;
|
||||
}
|
||||
}
|
||||
21
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/LICENSE
vendored
Normal file
21
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
Copyright (c) Nils Adermann, Jordi Boggiano
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
240
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_classmap.php
vendored
Normal file
240
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_classmap.php
vendored
Normal file
@@ -0,0 +1,240 @@
|
||||
<?php
|
||||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||
'WPSEO_CLI_Premium_Requirement' => $baseDir . '/cli/cli-premium-requirement.php',
|
||||
'WPSEO_CLI_Redirect_Base_Command' => $baseDir . '/cli/cli-redirect-base-command.php',
|
||||
'WPSEO_CLI_Redirect_Command_Namespace' => $baseDir . '/cli/cli-redirect-command-namespace.php',
|
||||
'WPSEO_CLI_Redirect_Create_Command' => $baseDir . '/cli/cli-redirect-create-command.php',
|
||||
'WPSEO_CLI_Redirect_Delete_Command' => $baseDir . '/cli/cli-redirect-delete-command.php',
|
||||
'WPSEO_CLI_Redirect_Follow_Command' => $baseDir . '/cli/cli-redirect-follow-command.php',
|
||||
'WPSEO_CLI_Redirect_Has_Command' => $baseDir . '/cli/cli-redirect-has-command.php',
|
||||
'WPSEO_CLI_Redirect_List_Command' => $baseDir . '/cli/cli-redirect-list-command.php',
|
||||
'WPSEO_CLI_Redirect_Update_Command' => $baseDir . '/cli/cli-redirect-update-command.php',
|
||||
'WPSEO_Custom_Fields_Plugin' => $baseDir . '/classes/custom-fields-plugin.php',
|
||||
'WPSEO_Executable_Redirect' => $baseDir . '/classes/redirect/executable-redirect.php',
|
||||
'WPSEO_Export_Keywords_CSV' => $baseDir . '/classes/export/export-keywords-csv.php',
|
||||
'WPSEO_Export_Keywords_Post_Presenter' => $baseDir . '/classes/export/export-keywords-post-presenter.php',
|
||||
'WPSEO_Export_Keywords_Post_Query' => $baseDir . '/classes/export/export-keywords-post-query.php',
|
||||
'WPSEO_Export_Keywords_Presenter' => $baseDir . '/classes/export/export-keywords-presenter-interface.php',
|
||||
'WPSEO_Export_Keywords_Query' => $baseDir . '/classes/export/export-keywords-query-interface.php',
|
||||
'WPSEO_Export_Keywords_Term_Presenter' => $baseDir . '/classes/export/export-keywords-term-presenter.php',
|
||||
'WPSEO_Export_Keywords_Term_Query' => $baseDir . '/classes/export/export-keywords-term-query.php',
|
||||
'WPSEO_Metabox_Link_Suggestions' => $baseDir . '/classes/metabox-link-suggestions.php',
|
||||
'WPSEO_Multi_Keyword' => $baseDir . '/classes/multi-keyword.php',
|
||||
'WPSEO_Post_Watcher' => $baseDir . '/classes/post-watcher.php',
|
||||
'WPSEO_Premium' => $baseDir . '/premium.php',
|
||||
'WPSEO_Premium_Asset_JS_L10n' => $baseDir . '/classes/premium-asset-js-l10n.php',
|
||||
'WPSEO_Premium_Assets' => $baseDir . '/classes/premium-assets.php',
|
||||
'WPSEO_Premium_Expose_Shortlinks' => $baseDir . '/classes/premium-expose-shortlinks.php',
|
||||
'WPSEO_Premium_Import_Manager' => $baseDir . '/classes/premium-import-manager.php',
|
||||
'WPSEO_Premium_Javascript_Strings' => $baseDir . '/classes/premium-javascript-strings.php',
|
||||
'WPSEO_Premium_Keyword_Export_Manager' => $baseDir . '/classes/premium-keyword-export-manager.php',
|
||||
'WPSEO_Premium_Metabox' => $baseDir . '/classes/premium-metabox.php',
|
||||
'WPSEO_Premium_Option' => $baseDir . '/classes/premium-option.php',
|
||||
'WPSEO_Premium_Orphaned_Content_Support' => $baseDir . '/classes/premium-orphaned-content-support.php',
|
||||
'WPSEO_Premium_Orphaned_Content_Utils' => $baseDir . '/classes/premium-orphaned-content-utils.php',
|
||||
'WPSEO_Premium_Orphaned_Post_Filter' => $baseDir . '/classes/premium-orphaned-post-filter.php',
|
||||
'WPSEO_Premium_Orphaned_Post_Query' => $baseDir . '/classes/premium-orphaned-post-query.php',
|
||||
'WPSEO_Premium_Prominent_Words_Support' => $baseDir . '/classes/premium-prominent-words-support.php',
|
||||
'WPSEO_Premium_Prominent_Words_Unindexed_Post_Query' => $baseDir . '/classes/premium-prominent-words-unindexed-post-query.php',
|
||||
'WPSEO_Premium_Prominent_Words_Versioning' => $baseDir . '/classes/premium-prominent-words-versioning.php',
|
||||
'WPSEO_Premium_Redirect_EndPoint' => $baseDir . '/classes/premium-redirect-endpoint.php',
|
||||
'WPSEO_Premium_Redirect_Export_Manager' => $baseDir . '/classes/premium-redirect-export-manager.php',
|
||||
'WPSEO_Premium_Redirect_Option' => $baseDir . '/classes/premium-redirect-option.php',
|
||||
'WPSEO_Premium_Redirect_Service' => $baseDir . '/classes/premium-redirect-service.php',
|
||||
'WPSEO_Premium_Redirect_Undo_EndPoint' => $baseDir . '/classes/redirect-undo-endpoint.php',
|
||||
'WPSEO_Premium_Register_Capabilities' => $baseDir . '/classes/premium-register-capabilities.php',
|
||||
'WPSEO_Premium_Stale_Cornerstone_Content_Filter' => $baseDir . '/classes/premium-stale-cornerstone-content-filter.php',
|
||||
'WPSEO_Product_Premium' => $baseDir . '/classes/product-premium.php',
|
||||
'WPSEO_Redirect' => $baseDir . '/classes/redirect/redirect.php',
|
||||
'WPSEO_Redirect_Abstract_Loader' => $baseDir . '/classes/redirect/loaders/redirect-abstract-loader.php',
|
||||
'WPSEO_Redirect_Abstract_Validation' => $baseDir . '/classes/redirect/validation/redirect-abstract-validation.php',
|
||||
'WPSEO_Redirect_Accessible_Validation' => $baseDir . '/classes/redirect/validation/redirect-accessible-validation.php',
|
||||
'WPSEO_Redirect_Ajax' => $baseDir . '/classes/redirect/redirect-ajax.php',
|
||||
'WPSEO_Redirect_Apache_Exporter' => $baseDir . '/classes/redirect/exporters/redirect-apache-exporter.php',
|
||||
'WPSEO_Redirect_CSV_Exporter' => $baseDir . '/classes/redirect/exporters/redirect-csv-exporter.php',
|
||||
'WPSEO_Redirect_CSV_Loader' => $baseDir . '/classes/redirect/loaders/redirect-csv-loader.php',
|
||||
'WPSEO_Redirect_Endpoint_Validation' => $baseDir . '/classes/redirect/validation/redirect-endpoint-validation.php',
|
||||
'WPSEO_Redirect_Exporter' => $baseDir . '/classes/redirect/exporters/redirect-exporter-interface.php',
|
||||
'WPSEO_Redirect_File_Exporter' => $baseDir . '/classes/redirect/exporters/redirect-file-exporter.php',
|
||||
'WPSEO_Redirect_File_Util' => $baseDir . '/classes/redirect/redirect-file-util.php',
|
||||
'WPSEO_Redirect_Form_Presenter' => $baseDir . '/classes/redirect/presenters/redirect-form-presenter.php',
|
||||
'WPSEO_Redirect_Formats' => $baseDir . '/classes/redirect/redirect-formats.php',
|
||||
'WPSEO_Redirect_Formatter' => $baseDir . '/classes/redirect/redirect-formatter.php',
|
||||
'WPSEO_Redirect_HTAccess_Loader' => $baseDir . '/classes/redirect/loaders/redirect-htaccess-loader.php',
|
||||
'WPSEO_Redirect_Htaccess_Exporter' => $baseDir . '/classes/redirect/exporters/redirect-htaccess-exporter.php',
|
||||
'WPSEO_Redirect_Htaccess_Util' => $baseDir . '/classes/redirect/redirect-htaccess-util.php',
|
||||
'WPSEO_Redirect_Import_Exception' => $baseDir . '/classes/redirect/redirect-import-exception.php',
|
||||
'WPSEO_Redirect_Importer' => $baseDir . '/classes/redirect/redirect-importer.php',
|
||||
'WPSEO_Redirect_Loader' => $baseDir . '/classes/redirect/loaders/redirect-loader-interface.php',
|
||||
'WPSEO_Redirect_Manager' => $baseDir . '/classes/redirect/redirect-manager.php',
|
||||
'WPSEO_Redirect_Nginx_Exporter' => $baseDir . '/classes/redirect/exporters/redirect-nginx-exporter.php',
|
||||
'WPSEO_Redirect_Option' => $baseDir . '/classes/redirect/redirect-option.php',
|
||||
'WPSEO_Redirect_Option_Exporter' => $baseDir . '/classes/redirect/exporters/redirect-option-exporter.php',
|
||||
'WPSEO_Redirect_Page' => $baseDir . '/classes/redirect/redirect-page.php',
|
||||
'WPSEO_Redirect_Page_Presenter' => $baseDir . '/classes/redirect/presenters/redirect-page-presenter.php',
|
||||
'WPSEO_Redirect_Presence_Validation' => $baseDir . '/classes/redirect/validation/redirect-presence-validation.php',
|
||||
'WPSEO_Redirect_Presenter' => $baseDir . '/classes/redirect/presenters/redirect-presenter-interface.php',
|
||||
'WPSEO_Redirect_Quick_Edit_Presenter' => $baseDir . '/classes/redirect/presenters/redirect-quick-edit-presenter.php',
|
||||
'WPSEO_Redirect_Redirection_Loader' => $baseDir . '/classes/redirect/loaders/redirect-redirection-loader.php',
|
||||
'WPSEO_Redirect_Relative_Origin_Validation' => $baseDir . '/classes/redirect/validation/redirect-relative-origin-validation.php',
|
||||
'WPSEO_Redirect_Safe_Redirect_Loader' => $baseDir . '/classes/redirect/loaders/redirect-safe-redirect-loader.php',
|
||||
'WPSEO_Redirect_Self_Redirect_Validation' => $baseDir . '/classes/redirect/validation/redirect-self-redirect-validation.php',
|
||||
'WPSEO_Redirect_Settings_Presenter' => $baseDir . '/classes/redirect/presenters/redirect-settings-presenter.php',
|
||||
'WPSEO_Redirect_Simple_301_Redirect_Loader' => $baseDir . '/classes/redirect/loaders/redirect-simple-301-redirect-loader.php',
|
||||
'WPSEO_Redirect_Sitemap_Filter' => $baseDir . '/classes/redirect/redirect-sitemap-filter.php',
|
||||
'WPSEO_Redirect_Subdirectory_Validation' => $baseDir . '/classes/redirect/validation/redirect-subdirectory-validation.php',
|
||||
'WPSEO_Redirect_Tab_Presenter' => $baseDir . '/classes/redirect/presenters/redirect-tab-presenter.php',
|
||||
'WPSEO_Redirect_Table' => $baseDir . '/classes/redirect/redirect-table.php',
|
||||
'WPSEO_Redirect_Table_Presenter' => $baseDir . '/classes/redirect/presenters/redirect-table-presenter.php',
|
||||
'WPSEO_Redirect_Types' => $baseDir . '/classes/redirect/redirect-types.php',
|
||||
'WPSEO_Redirect_Uniqueness_Validation' => $baseDir . '/classes/redirect/validation/redirect-uniqueness-validation.php',
|
||||
'WPSEO_Redirect_Upgrade' => $baseDir . '/classes/redirect/redirect-upgrade.php',
|
||||
'WPSEO_Redirect_Url_Formatter' => $baseDir . '/classes/redirect/redirect-url-formatter.php',
|
||||
'WPSEO_Redirect_Util' => $baseDir . '/classes/redirect/redirect-util.php',
|
||||
'WPSEO_Redirect_Validation' => $baseDir . '/classes/redirect/validation/redirect-validation-interface.php',
|
||||
'WPSEO_Redirect_Validator' => $baseDir . '/classes/redirect/redirect-validator.php',
|
||||
'WPSEO_Social_Previews' => $baseDir . '/classes/social-previews.php',
|
||||
'WPSEO_Term_Watcher' => $baseDir . '/classes/term-watcher.php',
|
||||
'WPSEO_Upgrade_Manager' => $baseDir . '/classes/upgrade-manager.php',
|
||||
'WPSEO_Validation_Error' => $baseDir . '/classes/validation-error.php',
|
||||
'WPSEO_Validation_Result' => $baseDir . '/classes/validation-result.php',
|
||||
'WPSEO_Validation_Warning' => $baseDir . '/classes/validation-warning.php',
|
||||
'WPSEO_Watcher' => $baseDir . '/classes/watcher.php',
|
||||
'Yoast\\WHIPv2\\Configuration' => $vendorDir . '/yoast/whip/src/Configuration.php',
|
||||
'Yoast\\WHIPv2\\Exceptions\\EmptyProperty' => $vendorDir . '/yoast/whip/src/Exceptions/EmptyProperty.php',
|
||||
'Yoast\\WHIPv2\\Exceptions\\InvalidOperatorType' => $vendorDir . '/yoast/whip/src/Exceptions/InvalidOperatorType.php',
|
||||
'Yoast\\WHIPv2\\Exceptions\\InvalidType' => $vendorDir . '/yoast/whip/src/Exceptions/InvalidType.php',
|
||||
'Yoast\\WHIPv2\\Exceptions\\InvalidVersionComparisonString' => $vendorDir . '/yoast/whip/src/Exceptions/InvalidVersionComparisonString.php',
|
||||
'Yoast\\WHIPv2\\Host' => $vendorDir . '/yoast/whip/src/Host.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\DismissStorage' => $vendorDir . '/yoast/whip/src/Interfaces/DismissStorage.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\Listener' => $vendorDir . '/yoast/whip/src/Interfaces/Listener.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\Message' => $vendorDir . '/yoast/whip/src/Interfaces/Message.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\MessagePresenter' => $vendorDir . '/yoast/whip/src/Interfaces/MessagePresenter.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\Requirement' => $vendorDir . '/yoast/whip/src/Interfaces/Requirement.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\VersionDetector' => $vendorDir . '/yoast/whip/src/Interfaces/VersionDetector.php',
|
||||
'Yoast\\WHIPv2\\MessageDismisser' => $vendorDir . '/yoast/whip/src/MessageDismisser.php',
|
||||
'Yoast\\WHIPv2\\MessageFormatter' => $vendorDir . '/yoast/whip/src/MessageFormatter.php',
|
||||
'Yoast\\WHIPv2\\MessagesManager' => $vendorDir . '/yoast/whip/src/MessagesManager.php',
|
||||
'Yoast\\WHIPv2\\Messages\\BasicMessage' => $vendorDir . '/yoast/whip/src/Messages/BasicMessage.php',
|
||||
'Yoast\\WHIPv2\\Messages\\HostMessage' => $vendorDir . '/yoast/whip/src/Messages/HostMessage.php',
|
||||
'Yoast\\WHIPv2\\Messages\\InvalidVersionRequirementMessage' => $vendorDir . '/yoast/whip/src/Messages/InvalidVersionRequirementMessage.php',
|
||||
'Yoast\\WHIPv2\\Messages\\NullMessage' => $vendorDir . '/yoast/whip/src/Messages/NullMessage.php',
|
||||
'Yoast\\WHIPv2\\Messages\\UpgradePhpMessage' => $vendorDir . '/yoast/whip/src/Messages/UpgradePhpMessage.php',
|
||||
'Yoast\\WHIPv2\\Presenters\\WPMessagePresenter' => $vendorDir . '/yoast/whip/src/Presenters/WPMessagePresenter.php',
|
||||
'Yoast\\WHIPv2\\RequirementsChecker' => $vendorDir . '/yoast/whip/src/RequirementsChecker.php',
|
||||
'Yoast\\WHIPv2\\VersionRequirement' => $vendorDir . '/yoast/whip/src/VersionRequirement.php',
|
||||
'Yoast\\WHIPv2\\WPDismissOption' => $vendorDir . '/yoast/whip/src/WPDismissOption.php',
|
||||
'Yoast\\WHIPv2\\WPMessageDismissListener' => $vendorDir . '/yoast/whip/src/WPMessageDismissListener.php',
|
||||
'Yoast\\WP\\SEO\\Config\\Migrations\\WpYoastPremiumImprovedInternalLinking' => $baseDir . '/src/config/migrations/20190715101200_WpYoastPremiumImprovedInternalLinking.php',
|
||||
'Yoast\\WP\\SEO\\Integrations\\Blocks\\Siblings_Block' => $baseDir . '/classes/blocks/siblings-block.php',
|
||||
'Yoast\\WP\\SEO\\Integrations\\Blocks\\Subpages_Block' => $baseDir . '/classes/blocks/subpages-block.php',
|
||||
'Yoast\\WP\\SEO\\Integrations\\Third_Party\\TranslationsPress' => $baseDir . '/src/integrations/third-party/translationspress.php',
|
||||
'Yoast\\WP\\SEO\\Integrations\\Third_Party\\Wincher_Keyphrases' => $baseDir . '/src/integrations/third-party/wincher-keyphrases.php',
|
||||
'Yoast\\WP\\SEO\\Models\\Prominent_Words' => $baseDir . '/src/models/prominent-words.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\AI_Generator_Action' => $baseDir . '/src/actions/ai-generator-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\Link_Suggestions_Action' => $baseDir . '/src/actions/link-suggestions-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\Prominent_Words\\Complete_Action' => $baseDir . '/src/actions/prominent-words/complete-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\Prominent_Words\\Content_Action' => $baseDir . '/src/actions/prominent-words/content-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\Prominent_Words\\Save_Action' => $baseDir . '/src/actions/prominent-words/save-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Addon_Installer' => $baseDir . '/src/addon-installer.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Ai_Editor_Conditional' => $baseDir . '/src/conditionals/ai-editor-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Algolia_Enabled_Conditional' => $baseDir . '/src/conditionals/algolia-enabled-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Cornerstone_Enabled_Conditional' => $baseDir . '/src/conditionals/cornerstone-enabled-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\EDD_Conditional' => $baseDir . '/src/conditionals/edd-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Inclusive_Language_Enabled_Conditional' => $baseDir . '/src/conditionals/inclusive-language-enabled-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Term_Overview_Or_Ajax_Conditional' => $baseDir . '/src/conditionals/term-overview-or-ajax-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Yoast_Admin_Or_Introductions_Route_Conditional' => $baseDir . '/src/conditionals/yoast-admin-or-introductions-route-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Config\\Badge_Group_Names' => $baseDir . '/src/config/badge-group-names.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Config\\Migrations\\AddIndexOnIndexableIdAndStem' => $baseDir . '/src/config/migrations/20210827093024_AddIndexOnIndexableIdAndStem.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Database\\Migration_Runner_Premium' => $baseDir . '/src/database/migration-runner-premium.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Forbidden_Property_Mutation_Exception' => $baseDir . '/src/exceptions/forbidden-property-mutation-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Bad_Request_Exception' => $baseDir . '/src/exceptions/remote-request/bad-request-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Forbidden_Exception' => $baseDir . '/src/exceptions/remote-request/forbidden-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Internal_Server_Error_Exception' => $baseDir . '/src/exceptions/remote-request/internal-server-error-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Not_Found_Exception' => $baseDir . '/src/exceptions/remote-request/not-found-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Payment_Required_Exception' => $baseDir . '/src/exceptions/remote-request/payment-required-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Remote_Request_Exception' => $baseDir . '/src/exceptions/remote-request/remote-request-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Request_Timeout_Exception' => $baseDir . '/src/exceptions/remote-request/request-timeout-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Service_Unavailable_Exception' => $baseDir . '/src/exceptions/remote-request/service-unavailable-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Too_Many_Requests_Exception' => $baseDir . '/src/exceptions/remote-request/too-many-requests-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Unauthorized_Exception' => $baseDir . '/src/exceptions/remote-request/unauthorized-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\WP_Request_Exception' => $baseDir . '/src/exceptions/remote-request/wp-request-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Generated\\Cached_Container' => $baseDir . '/src/generated/container.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Helpers\\AI_Generator_Helper' => $baseDir . '/src/helpers/ai-generator-helper.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Helpers\\Current_Page_Helper' => $baseDir . '/src/helpers/current-page-helper.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Helpers\\Prominent_Words_Helper' => $baseDir . '/src/helpers/prominent-words-helper.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Helpers\\Version_Helper' => $baseDir . '/src/helpers/version-helper.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Index_Now_Key' => $baseDir . '/src/initializers/index-now-key.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Introductions_Initializer' => $baseDir . '/src/initializers/introductions-initializer.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Plugin' => $baseDir . '/src/initializers/plugin.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Redirect_Handler' => $baseDir . '/src/initializers/redirect-handler.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Woocommerce' => $baseDir . '/src/initializers/woocommerce.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Wp_Cli_Initializer' => $baseDir . '/src/initializers/wp-cli-initializer.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Abstract_OpenGraph_Integration' => $baseDir . '/src/integrations/abstract-opengraph-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Ai_Consent_Integration' => $baseDir . '/src/integrations/admin/ai-consent-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Ai_Generator_Integration' => $baseDir . '/src/integrations/admin/ai-generator-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Cornerstone_Column_Integration' => $baseDir . '/src/integrations/admin/cornerstone-column-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Cornerstone_Taxonomy_Column_Integration' => $baseDir . '/src/integrations/admin/cornerstone-taxonomy-column-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Inclusive_Language_Column_Integration' => $baseDir . '/src/integrations/admin/inclusive-language-column-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Inclusive_Language_Filter_Integration' => $baseDir . '/src/integrations/admin/inclusive-language-filter-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Inclusive_Language_Taxonomy_Column_Integration' => $baseDir . '/src/integrations/admin/inclusive-language-taxonomy-column-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Keyword_Integration' => $baseDir . '/src/integrations/admin/keyword-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Metabox_Formatter_Integration' => $baseDir . '/src/integrations/admin/metabox-formatter-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Plugin_Links_Integration' => $baseDir . '/src/integrations/admin/plugin-links-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Prominent_Words\\Indexing_Integration' => $baseDir . '/src/integrations/admin/prominent-words/indexing-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Prominent_Words\\Metabox_Integration' => $baseDir . '/src/integrations/admin/prominent-words/metabox-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Related_Keyphrase_Filter_Integration' => $baseDir . '/src/integrations/admin/related-keyphrase-filter-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Replacement_Variables_Integration' => $baseDir . '/src/integrations/admin/replacement-variables-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Settings_Integration' => $baseDir . '/src/integrations/admin/settings-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Thank_You_Page_Integration' => $baseDir . '/src/integrations/admin/thank-you-page-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Update_Premium_Notification' => $baseDir . '/src/integrations/admin/update-premium-notification.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\User_Profile_Integration' => $baseDir . '/src/integrations/admin/user-profile-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Workouts_Integration' => $baseDir . '/src/integrations/admin/workouts-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Alerts\\Ai_Generator_Tip_Notification' => $baseDir . '/src/integrations/alerts/ai-generator-tip-notification.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Blocks\\Estimated_Reading_Time_Block' => $baseDir . '/src/integrations/blocks/estimated-reading-time-block.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Blocks\\Related_Links_Block' => $baseDir . '/src/integrations/blocks/related-links-block.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Cleanup_Integration' => $baseDir . '/src/integrations/cleanup-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Front_End\\Robots_Txt_Integration' => $baseDir . '/src/integrations/front-end/robots-txt-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Frontend_Inspector' => $baseDir . '/src/integrations/frontend-inspector.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Index_Now_Ping' => $baseDir . '/src/integrations/index-now-ping.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Missing_Indexables_Count_Integration' => $baseDir . '/src/integrations/missing-indexables-count-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_Author_Archive' => $baseDir . '/src/integrations/opengraph-author-archive.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_Date_Archive' => $baseDir . '/src/integrations/opengraph-date-archive.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_PostType_Archive' => $baseDir . '/src/integrations/opengraph-posttype-archive.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_Post_Type' => $baseDir . '/src/integrations/opengraph-post-type.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_Term_Archive' => $baseDir . '/src/integrations/opengraph-term-archive.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Organization_Schema_Integration' => $baseDir . '/src/integrations/organization-schema-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Publishing_Principles_Schema_Integration' => $baseDir . '/src/integrations/publishing-principles-schema-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Routes\\AI_Generator_Route' => $baseDir . '/src/integrations/routes/ai-generator-route.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Routes\\Workouts_Routes_Integration' => $baseDir . '/src/integrations/routes/workouts-routes-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\Algolia' => $baseDir . '/src/integrations/third-party/algolia.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\EDD' => $baseDir . '/src/integrations/third-party/edd.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\Elementor_Premium' => $baseDir . '/src/integrations/third-party/elementor-premium.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\Elementor_Preview' => $baseDir . '/src/integrations/third-party/elementor-preview.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\Mastodon' => $baseDir . '/src/integrations/third-party/mastodon.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Upgrade_Integration' => $baseDir . '/src/integrations/upgrade-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\User_Profile_Integration' => $baseDir . '/src/integrations/user-profile-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Watchers\\Prominent_Words_Watcher' => $baseDir . '/src/integrations/watchers/prominent-words-watcher.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Watchers\\Stale_Cornerstone_Content_Watcher' => $baseDir . '/src/integrations/watchers/stale-cornerstone-content-watcher.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Introductions\\Application\\Ai_Generate_Titles_And_Descriptions_Introduction' => $baseDir . '/src/introductions/application/ai-generate-titles-and-descriptions-introduction.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Main' => $baseDir . '/src/main.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Presenters\\Icons\\Checkmark_Icon_Presenter' => $baseDir . '/src/presenters/icons/checkmark-icon-presenter.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Presenters\\Icons\\Cross_Icon_Presenter' => $baseDir . '/src/presenters/icons/cross-icon-presenter.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Presenters\\Icons\\Icon_Presenter' => $baseDir . '/src/presenters/icons/icon-presenter.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Presenters\\Mastodon_Link_Presenter' => $baseDir . '/src/presenters/mastodon-link-presenter.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Repositories\\Prominent_Words_Repository' => $baseDir . '/src/repositories/prominent-words-repository.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Routes\\Link_Suggestions_Route' => $baseDir . '/src/routes/link-suggestions-route.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Routes\\Prominent_Words_Route' => $baseDir . '/src/routes/prominent-words-route.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Routes\\Workouts_Route' => $baseDir . '/src/routes/workouts-route.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Surfaces\\Helpers_Surface' => $baseDir . '/src/surfaces/helpers-surface.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\User_Meta\\Framework\\Additional_Contactmethods\\Mastodon' => $baseDir . '/src/user-meta/framework/additional-contactmethods/mastodon.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\User_Meta\\User_Interface\\Additional_Contactmethods_Integration' => $baseDir . '/src/user-meta/user-interface/additional-contactmethods-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\WordPress\\Wrapper' => $baseDir . '/src/wordpress/wrapper.php',
|
||||
);
|
||||
10
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_files.php
vendored
Normal file
10
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_files.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
// autoload_files.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'81db02b30f563b92907e271b66bd7559' => $vendorDir . '/yoast/whip/src/Facades/wordpress.php',
|
||||
);
|
||||
9
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_namespaces.php
vendored
Normal file
9
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_namespaces.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// autoload_namespaces.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
);
|
||||
11
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_psr4.php
vendored
Normal file
11
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_psr4.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// autoload_psr4.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'Yoast\\WHIPv2\\' => array($vendorDir . '/yoast/whip/src'),
|
||||
'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
|
||||
);
|
||||
71
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_real.php
vendored
Normal file
71
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_real.php
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit6a21570359fb0970a74d26d7d2ed77bc
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
public static function loadClassLoader($class)
|
||||
{
|
||||
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||
require __DIR__ . '/ClassLoader.php';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Composer\Autoload\ClassLoader
|
||||
*/
|
||||
public static function getLoader()
|
||||
{
|
||||
if (null !== self::$loader) {
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
require __DIR__ . '/platform_check.php';
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit6a21570359fb0970a74d26d7d2ed77bc', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit6a21570359fb0970a74d26d7d2ed77bc', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit6a21570359fb0970a74d26d7d2ed77bc::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
$loader->addClassMap($classMap);
|
||||
}
|
||||
}
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit6a21570359fb0970a74d26d7d2ed77bc::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire6a21570359fb0970a74d26d7d2ed77bc($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $fileIdentifier
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire6a21570359fb0970a74d26d7d2ed77bc($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
||||
require $file;
|
||||
}
|
||||
}
|
||||
278
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_static.php
vendored
Normal file
278
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_static.php
vendored
Normal file
@@ -0,0 +1,278 @@
|
||||
<?php
|
||||
|
||||
// autoload_static.php @generated by Composer
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit6a21570359fb0970a74d26d7d2ed77bc
|
||||
{
|
||||
public static $files = array (
|
||||
'81db02b30f563b92907e271b66bd7559' => __DIR__ . '/..' . '/yoast/whip/src/Facades/wordpress.php',
|
||||
);
|
||||
|
||||
public static $prefixLengthsPsr4 = array (
|
||||
'Y' =>
|
||||
array (
|
||||
'Yoast\\WHIPv2\\' => 13,
|
||||
),
|
||||
'C' =>
|
||||
array (
|
||||
'Composer\\Installers\\' => 20,
|
||||
),
|
||||
);
|
||||
|
||||
public static $prefixDirsPsr4 = array (
|
||||
'Yoast\\WHIPv2\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/yoast/whip/src',
|
||||
),
|
||||
'Composer\\Installers\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
|
||||
),
|
||||
);
|
||||
|
||||
public static $classMap = array (
|
||||
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||
'WPSEO_CLI_Premium_Requirement' => __DIR__ . '/../..' . '/cli/cli-premium-requirement.php',
|
||||
'WPSEO_CLI_Redirect_Base_Command' => __DIR__ . '/../..' . '/cli/cli-redirect-base-command.php',
|
||||
'WPSEO_CLI_Redirect_Command_Namespace' => __DIR__ . '/../..' . '/cli/cli-redirect-command-namespace.php',
|
||||
'WPSEO_CLI_Redirect_Create_Command' => __DIR__ . '/../..' . '/cli/cli-redirect-create-command.php',
|
||||
'WPSEO_CLI_Redirect_Delete_Command' => __DIR__ . '/../..' . '/cli/cli-redirect-delete-command.php',
|
||||
'WPSEO_CLI_Redirect_Follow_Command' => __DIR__ . '/../..' . '/cli/cli-redirect-follow-command.php',
|
||||
'WPSEO_CLI_Redirect_Has_Command' => __DIR__ . '/../..' . '/cli/cli-redirect-has-command.php',
|
||||
'WPSEO_CLI_Redirect_List_Command' => __DIR__ . '/../..' . '/cli/cli-redirect-list-command.php',
|
||||
'WPSEO_CLI_Redirect_Update_Command' => __DIR__ . '/../..' . '/cli/cli-redirect-update-command.php',
|
||||
'WPSEO_Custom_Fields_Plugin' => __DIR__ . '/../..' . '/classes/custom-fields-plugin.php',
|
||||
'WPSEO_Executable_Redirect' => __DIR__ . '/../..' . '/classes/redirect/executable-redirect.php',
|
||||
'WPSEO_Export_Keywords_CSV' => __DIR__ . '/../..' . '/classes/export/export-keywords-csv.php',
|
||||
'WPSEO_Export_Keywords_Post_Presenter' => __DIR__ . '/../..' . '/classes/export/export-keywords-post-presenter.php',
|
||||
'WPSEO_Export_Keywords_Post_Query' => __DIR__ . '/../..' . '/classes/export/export-keywords-post-query.php',
|
||||
'WPSEO_Export_Keywords_Presenter' => __DIR__ . '/../..' . '/classes/export/export-keywords-presenter-interface.php',
|
||||
'WPSEO_Export_Keywords_Query' => __DIR__ . '/../..' . '/classes/export/export-keywords-query-interface.php',
|
||||
'WPSEO_Export_Keywords_Term_Presenter' => __DIR__ . '/../..' . '/classes/export/export-keywords-term-presenter.php',
|
||||
'WPSEO_Export_Keywords_Term_Query' => __DIR__ . '/../..' . '/classes/export/export-keywords-term-query.php',
|
||||
'WPSEO_Metabox_Link_Suggestions' => __DIR__ . '/../..' . '/classes/metabox-link-suggestions.php',
|
||||
'WPSEO_Multi_Keyword' => __DIR__ . '/../..' . '/classes/multi-keyword.php',
|
||||
'WPSEO_Post_Watcher' => __DIR__ . '/../..' . '/classes/post-watcher.php',
|
||||
'WPSEO_Premium' => __DIR__ . '/../..' . '/premium.php',
|
||||
'WPSEO_Premium_Asset_JS_L10n' => __DIR__ . '/../..' . '/classes/premium-asset-js-l10n.php',
|
||||
'WPSEO_Premium_Assets' => __DIR__ . '/../..' . '/classes/premium-assets.php',
|
||||
'WPSEO_Premium_Expose_Shortlinks' => __DIR__ . '/../..' . '/classes/premium-expose-shortlinks.php',
|
||||
'WPSEO_Premium_Import_Manager' => __DIR__ . '/../..' . '/classes/premium-import-manager.php',
|
||||
'WPSEO_Premium_Javascript_Strings' => __DIR__ . '/../..' . '/classes/premium-javascript-strings.php',
|
||||
'WPSEO_Premium_Keyword_Export_Manager' => __DIR__ . '/../..' . '/classes/premium-keyword-export-manager.php',
|
||||
'WPSEO_Premium_Metabox' => __DIR__ . '/../..' . '/classes/premium-metabox.php',
|
||||
'WPSEO_Premium_Option' => __DIR__ . '/../..' . '/classes/premium-option.php',
|
||||
'WPSEO_Premium_Orphaned_Content_Support' => __DIR__ . '/../..' . '/classes/premium-orphaned-content-support.php',
|
||||
'WPSEO_Premium_Orphaned_Content_Utils' => __DIR__ . '/../..' . '/classes/premium-orphaned-content-utils.php',
|
||||
'WPSEO_Premium_Orphaned_Post_Filter' => __DIR__ . '/../..' . '/classes/premium-orphaned-post-filter.php',
|
||||
'WPSEO_Premium_Orphaned_Post_Query' => __DIR__ . '/../..' . '/classes/premium-orphaned-post-query.php',
|
||||
'WPSEO_Premium_Prominent_Words_Support' => __DIR__ . '/../..' . '/classes/premium-prominent-words-support.php',
|
||||
'WPSEO_Premium_Prominent_Words_Unindexed_Post_Query' => __DIR__ . '/../..' . '/classes/premium-prominent-words-unindexed-post-query.php',
|
||||
'WPSEO_Premium_Prominent_Words_Versioning' => __DIR__ . '/../..' . '/classes/premium-prominent-words-versioning.php',
|
||||
'WPSEO_Premium_Redirect_EndPoint' => __DIR__ . '/../..' . '/classes/premium-redirect-endpoint.php',
|
||||
'WPSEO_Premium_Redirect_Export_Manager' => __DIR__ . '/../..' . '/classes/premium-redirect-export-manager.php',
|
||||
'WPSEO_Premium_Redirect_Option' => __DIR__ . '/../..' . '/classes/premium-redirect-option.php',
|
||||
'WPSEO_Premium_Redirect_Service' => __DIR__ . '/../..' . '/classes/premium-redirect-service.php',
|
||||
'WPSEO_Premium_Redirect_Undo_EndPoint' => __DIR__ . '/../..' . '/classes/redirect-undo-endpoint.php',
|
||||
'WPSEO_Premium_Register_Capabilities' => __DIR__ . '/../..' . '/classes/premium-register-capabilities.php',
|
||||
'WPSEO_Premium_Stale_Cornerstone_Content_Filter' => __DIR__ . '/../..' . '/classes/premium-stale-cornerstone-content-filter.php',
|
||||
'WPSEO_Product_Premium' => __DIR__ . '/../..' . '/classes/product-premium.php',
|
||||
'WPSEO_Redirect' => __DIR__ . '/../..' . '/classes/redirect/redirect.php',
|
||||
'WPSEO_Redirect_Abstract_Loader' => __DIR__ . '/../..' . '/classes/redirect/loaders/redirect-abstract-loader.php',
|
||||
'WPSEO_Redirect_Abstract_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-abstract-validation.php',
|
||||
'WPSEO_Redirect_Accessible_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-accessible-validation.php',
|
||||
'WPSEO_Redirect_Ajax' => __DIR__ . '/../..' . '/classes/redirect/redirect-ajax.php',
|
||||
'WPSEO_Redirect_Apache_Exporter' => __DIR__ . '/../..' . '/classes/redirect/exporters/redirect-apache-exporter.php',
|
||||
'WPSEO_Redirect_CSV_Exporter' => __DIR__ . '/../..' . '/classes/redirect/exporters/redirect-csv-exporter.php',
|
||||
'WPSEO_Redirect_CSV_Loader' => __DIR__ . '/../..' . '/classes/redirect/loaders/redirect-csv-loader.php',
|
||||
'WPSEO_Redirect_Endpoint_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-endpoint-validation.php',
|
||||
'WPSEO_Redirect_Exporter' => __DIR__ . '/../..' . '/classes/redirect/exporters/redirect-exporter-interface.php',
|
||||
'WPSEO_Redirect_File_Exporter' => __DIR__ . '/../..' . '/classes/redirect/exporters/redirect-file-exporter.php',
|
||||
'WPSEO_Redirect_File_Util' => __DIR__ . '/../..' . '/classes/redirect/redirect-file-util.php',
|
||||
'WPSEO_Redirect_Form_Presenter' => __DIR__ . '/../..' . '/classes/redirect/presenters/redirect-form-presenter.php',
|
||||
'WPSEO_Redirect_Formats' => __DIR__ . '/../..' . '/classes/redirect/redirect-formats.php',
|
||||
'WPSEO_Redirect_Formatter' => __DIR__ . '/../..' . '/classes/redirect/redirect-formatter.php',
|
||||
'WPSEO_Redirect_HTAccess_Loader' => __DIR__ . '/../..' . '/classes/redirect/loaders/redirect-htaccess-loader.php',
|
||||
'WPSEO_Redirect_Htaccess_Exporter' => __DIR__ . '/../..' . '/classes/redirect/exporters/redirect-htaccess-exporter.php',
|
||||
'WPSEO_Redirect_Htaccess_Util' => __DIR__ . '/../..' . '/classes/redirect/redirect-htaccess-util.php',
|
||||
'WPSEO_Redirect_Import_Exception' => __DIR__ . '/../..' . '/classes/redirect/redirect-import-exception.php',
|
||||
'WPSEO_Redirect_Importer' => __DIR__ . '/../..' . '/classes/redirect/redirect-importer.php',
|
||||
'WPSEO_Redirect_Loader' => __DIR__ . '/../..' . '/classes/redirect/loaders/redirect-loader-interface.php',
|
||||
'WPSEO_Redirect_Manager' => __DIR__ . '/../..' . '/classes/redirect/redirect-manager.php',
|
||||
'WPSEO_Redirect_Nginx_Exporter' => __DIR__ . '/../..' . '/classes/redirect/exporters/redirect-nginx-exporter.php',
|
||||
'WPSEO_Redirect_Option' => __DIR__ . '/../..' . '/classes/redirect/redirect-option.php',
|
||||
'WPSEO_Redirect_Option_Exporter' => __DIR__ . '/../..' . '/classes/redirect/exporters/redirect-option-exporter.php',
|
||||
'WPSEO_Redirect_Page' => __DIR__ . '/../..' . '/classes/redirect/redirect-page.php',
|
||||
'WPSEO_Redirect_Page_Presenter' => __DIR__ . '/../..' . '/classes/redirect/presenters/redirect-page-presenter.php',
|
||||
'WPSEO_Redirect_Presence_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-presence-validation.php',
|
||||
'WPSEO_Redirect_Presenter' => __DIR__ . '/../..' . '/classes/redirect/presenters/redirect-presenter-interface.php',
|
||||
'WPSEO_Redirect_Quick_Edit_Presenter' => __DIR__ . '/../..' . '/classes/redirect/presenters/redirect-quick-edit-presenter.php',
|
||||
'WPSEO_Redirect_Redirection_Loader' => __DIR__ . '/../..' . '/classes/redirect/loaders/redirect-redirection-loader.php',
|
||||
'WPSEO_Redirect_Relative_Origin_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-relative-origin-validation.php',
|
||||
'WPSEO_Redirect_Safe_Redirect_Loader' => __DIR__ . '/../..' . '/classes/redirect/loaders/redirect-safe-redirect-loader.php',
|
||||
'WPSEO_Redirect_Self_Redirect_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-self-redirect-validation.php',
|
||||
'WPSEO_Redirect_Settings_Presenter' => __DIR__ . '/../..' . '/classes/redirect/presenters/redirect-settings-presenter.php',
|
||||
'WPSEO_Redirect_Simple_301_Redirect_Loader' => __DIR__ . '/../..' . '/classes/redirect/loaders/redirect-simple-301-redirect-loader.php',
|
||||
'WPSEO_Redirect_Sitemap_Filter' => __DIR__ . '/../..' . '/classes/redirect/redirect-sitemap-filter.php',
|
||||
'WPSEO_Redirect_Subdirectory_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-subdirectory-validation.php',
|
||||
'WPSEO_Redirect_Tab_Presenter' => __DIR__ . '/../..' . '/classes/redirect/presenters/redirect-tab-presenter.php',
|
||||
'WPSEO_Redirect_Table' => __DIR__ . '/../..' . '/classes/redirect/redirect-table.php',
|
||||
'WPSEO_Redirect_Table_Presenter' => __DIR__ . '/../..' . '/classes/redirect/presenters/redirect-table-presenter.php',
|
||||
'WPSEO_Redirect_Types' => __DIR__ . '/../..' . '/classes/redirect/redirect-types.php',
|
||||
'WPSEO_Redirect_Uniqueness_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-uniqueness-validation.php',
|
||||
'WPSEO_Redirect_Upgrade' => __DIR__ . '/../..' . '/classes/redirect/redirect-upgrade.php',
|
||||
'WPSEO_Redirect_Url_Formatter' => __DIR__ . '/../..' . '/classes/redirect/redirect-url-formatter.php',
|
||||
'WPSEO_Redirect_Util' => __DIR__ . '/../..' . '/classes/redirect/redirect-util.php',
|
||||
'WPSEO_Redirect_Validation' => __DIR__ . '/../..' . '/classes/redirect/validation/redirect-validation-interface.php',
|
||||
'WPSEO_Redirect_Validator' => __DIR__ . '/../..' . '/classes/redirect/redirect-validator.php',
|
||||
'WPSEO_Social_Previews' => __DIR__ . '/../..' . '/classes/social-previews.php',
|
||||
'WPSEO_Term_Watcher' => __DIR__ . '/../..' . '/classes/term-watcher.php',
|
||||
'WPSEO_Upgrade_Manager' => __DIR__ . '/../..' . '/classes/upgrade-manager.php',
|
||||
'WPSEO_Validation_Error' => __DIR__ . '/../..' . '/classes/validation-error.php',
|
||||
'WPSEO_Validation_Result' => __DIR__ . '/../..' . '/classes/validation-result.php',
|
||||
'WPSEO_Validation_Warning' => __DIR__ . '/../..' . '/classes/validation-warning.php',
|
||||
'WPSEO_Watcher' => __DIR__ . '/../..' . '/classes/watcher.php',
|
||||
'Yoast\\WHIPv2\\Configuration' => __DIR__ . '/..' . '/yoast/whip/src/Configuration.php',
|
||||
'Yoast\\WHIPv2\\Exceptions\\EmptyProperty' => __DIR__ . '/..' . '/yoast/whip/src/Exceptions/EmptyProperty.php',
|
||||
'Yoast\\WHIPv2\\Exceptions\\InvalidOperatorType' => __DIR__ . '/..' . '/yoast/whip/src/Exceptions/InvalidOperatorType.php',
|
||||
'Yoast\\WHIPv2\\Exceptions\\InvalidType' => __DIR__ . '/..' . '/yoast/whip/src/Exceptions/InvalidType.php',
|
||||
'Yoast\\WHIPv2\\Exceptions\\InvalidVersionComparisonString' => __DIR__ . '/..' . '/yoast/whip/src/Exceptions/InvalidVersionComparisonString.php',
|
||||
'Yoast\\WHIPv2\\Host' => __DIR__ . '/..' . '/yoast/whip/src/Host.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\DismissStorage' => __DIR__ . '/..' . '/yoast/whip/src/Interfaces/DismissStorage.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\Listener' => __DIR__ . '/..' . '/yoast/whip/src/Interfaces/Listener.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\Message' => __DIR__ . '/..' . '/yoast/whip/src/Interfaces/Message.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\MessagePresenter' => __DIR__ . '/..' . '/yoast/whip/src/Interfaces/MessagePresenter.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\Requirement' => __DIR__ . '/..' . '/yoast/whip/src/Interfaces/Requirement.php',
|
||||
'Yoast\\WHIPv2\\Interfaces\\VersionDetector' => __DIR__ . '/..' . '/yoast/whip/src/Interfaces/VersionDetector.php',
|
||||
'Yoast\\WHIPv2\\MessageDismisser' => __DIR__ . '/..' . '/yoast/whip/src/MessageDismisser.php',
|
||||
'Yoast\\WHIPv2\\MessageFormatter' => __DIR__ . '/..' . '/yoast/whip/src/MessageFormatter.php',
|
||||
'Yoast\\WHIPv2\\MessagesManager' => __DIR__ . '/..' . '/yoast/whip/src/MessagesManager.php',
|
||||
'Yoast\\WHIPv2\\Messages\\BasicMessage' => __DIR__ . '/..' . '/yoast/whip/src/Messages/BasicMessage.php',
|
||||
'Yoast\\WHIPv2\\Messages\\HostMessage' => __DIR__ . '/..' . '/yoast/whip/src/Messages/HostMessage.php',
|
||||
'Yoast\\WHIPv2\\Messages\\InvalidVersionRequirementMessage' => __DIR__ . '/..' . '/yoast/whip/src/Messages/InvalidVersionRequirementMessage.php',
|
||||
'Yoast\\WHIPv2\\Messages\\NullMessage' => __DIR__ . '/..' . '/yoast/whip/src/Messages/NullMessage.php',
|
||||
'Yoast\\WHIPv2\\Messages\\UpgradePhpMessage' => __DIR__ . '/..' . '/yoast/whip/src/Messages/UpgradePhpMessage.php',
|
||||
'Yoast\\WHIPv2\\Presenters\\WPMessagePresenter' => __DIR__ . '/..' . '/yoast/whip/src/Presenters/WPMessagePresenter.php',
|
||||
'Yoast\\WHIPv2\\RequirementsChecker' => __DIR__ . '/..' . '/yoast/whip/src/RequirementsChecker.php',
|
||||
'Yoast\\WHIPv2\\VersionRequirement' => __DIR__ . '/..' . '/yoast/whip/src/VersionRequirement.php',
|
||||
'Yoast\\WHIPv2\\WPDismissOption' => __DIR__ . '/..' . '/yoast/whip/src/WPDismissOption.php',
|
||||
'Yoast\\WHIPv2\\WPMessageDismissListener' => __DIR__ . '/..' . '/yoast/whip/src/WPMessageDismissListener.php',
|
||||
'Yoast\\WP\\SEO\\Config\\Migrations\\WpYoastPremiumImprovedInternalLinking' => __DIR__ . '/../..' . '/src/config/migrations/20190715101200_WpYoastPremiumImprovedInternalLinking.php',
|
||||
'Yoast\\WP\\SEO\\Integrations\\Blocks\\Siblings_Block' => __DIR__ . '/../..' . '/classes/blocks/siblings-block.php',
|
||||
'Yoast\\WP\\SEO\\Integrations\\Blocks\\Subpages_Block' => __DIR__ . '/../..' . '/classes/blocks/subpages-block.php',
|
||||
'Yoast\\WP\\SEO\\Integrations\\Third_Party\\TranslationsPress' => __DIR__ . '/../..' . '/src/integrations/third-party/translationspress.php',
|
||||
'Yoast\\WP\\SEO\\Integrations\\Third_Party\\Wincher_Keyphrases' => __DIR__ . '/../..' . '/src/integrations/third-party/wincher-keyphrases.php',
|
||||
'Yoast\\WP\\SEO\\Models\\Prominent_Words' => __DIR__ . '/../..' . '/src/models/prominent-words.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\AI_Generator_Action' => __DIR__ . '/../..' . '/src/actions/ai-generator-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\Link_Suggestions_Action' => __DIR__ . '/../..' . '/src/actions/link-suggestions-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\Prominent_Words\\Complete_Action' => __DIR__ . '/../..' . '/src/actions/prominent-words/complete-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\Prominent_Words\\Content_Action' => __DIR__ . '/../..' . '/src/actions/prominent-words/content-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Actions\\Prominent_Words\\Save_Action' => __DIR__ . '/../..' . '/src/actions/prominent-words/save-action.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Addon_Installer' => __DIR__ . '/../..' . '/src/addon-installer.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Ai_Editor_Conditional' => __DIR__ . '/../..' . '/src/conditionals/ai-editor-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Algolia_Enabled_Conditional' => __DIR__ . '/../..' . '/src/conditionals/algolia-enabled-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Cornerstone_Enabled_Conditional' => __DIR__ . '/../..' . '/src/conditionals/cornerstone-enabled-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\EDD_Conditional' => __DIR__ . '/../..' . '/src/conditionals/edd-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Inclusive_Language_Enabled_Conditional' => __DIR__ . '/../..' . '/src/conditionals/inclusive-language-enabled-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Term_Overview_Or_Ajax_Conditional' => __DIR__ . '/../..' . '/src/conditionals/term-overview-or-ajax-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Conditionals\\Yoast_Admin_Or_Introductions_Route_Conditional' => __DIR__ . '/../..' . '/src/conditionals/yoast-admin-or-introductions-route-conditional.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Config\\Badge_Group_Names' => __DIR__ . '/../..' . '/src/config/badge-group-names.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Config\\Migrations\\AddIndexOnIndexableIdAndStem' => __DIR__ . '/../..' . '/src/config/migrations/20210827093024_AddIndexOnIndexableIdAndStem.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Database\\Migration_Runner_Premium' => __DIR__ . '/../..' . '/src/database/migration-runner-premium.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Forbidden_Property_Mutation_Exception' => __DIR__ . '/../..' . '/src/exceptions/forbidden-property-mutation-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Bad_Request_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/bad-request-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Forbidden_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/forbidden-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Internal_Server_Error_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/internal-server-error-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Not_Found_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/not-found-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Payment_Required_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/payment-required-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Remote_Request_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/remote-request-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Request_Timeout_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/request-timeout-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Service_Unavailable_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/service-unavailable-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Too_Many_Requests_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/too-many-requests-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\Unauthorized_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/unauthorized-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Exceptions\\Remote_Request\\WP_Request_Exception' => __DIR__ . '/../..' . '/src/exceptions/remote-request/wp-request-exception.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Generated\\Cached_Container' => __DIR__ . '/../..' . '/src/generated/container.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Helpers\\AI_Generator_Helper' => __DIR__ . '/../..' . '/src/helpers/ai-generator-helper.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Helpers\\Current_Page_Helper' => __DIR__ . '/../..' . '/src/helpers/current-page-helper.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Helpers\\Prominent_Words_Helper' => __DIR__ . '/../..' . '/src/helpers/prominent-words-helper.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Helpers\\Version_Helper' => __DIR__ . '/../..' . '/src/helpers/version-helper.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Index_Now_Key' => __DIR__ . '/../..' . '/src/initializers/index-now-key.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Introductions_Initializer' => __DIR__ . '/../..' . '/src/initializers/introductions-initializer.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Plugin' => __DIR__ . '/../..' . '/src/initializers/plugin.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Redirect_Handler' => __DIR__ . '/../..' . '/src/initializers/redirect-handler.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Woocommerce' => __DIR__ . '/../..' . '/src/initializers/woocommerce.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Initializers\\Wp_Cli_Initializer' => __DIR__ . '/../..' . '/src/initializers/wp-cli-initializer.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Abstract_OpenGraph_Integration' => __DIR__ . '/../..' . '/src/integrations/abstract-opengraph-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Ai_Consent_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/ai-consent-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Ai_Generator_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/ai-generator-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Cornerstone_Column_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/cornerstone-column-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Cornerstone_Taxonomy_Column_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/cornerstone-taxonomy-column-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Inclusive_Language_Column_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/inclusive-language-column-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Inclusive_Language_Filter_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/inclusive-language-filter-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Inclusive_Language_Taxonomy_Column_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/inclusive-language-taxonomy-column-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Keyword_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/keyword-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Metabox_Formatter_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/metabox-formatter-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Plugin_Links_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/plugin-links-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Prominent_Words\\Indexing_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/prominent-words/indexing-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Prominent_Words\\Metabox_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/prominent-words/metabox-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Related_Keyphrase_Filter_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/related-keyphrase-filter-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Replacement_Variables_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/replacement-variables-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Settings_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/settings-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Thank_You_Page_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/thank-you-page-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Update_Premium_Notification' => __DIR__ . '/../..' . '/src/integrations/admin/update-premium-notification.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\User_Profile_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/user-profile-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Admin\\Workouts_Integration' => __DIR__ . '/../..' . '/src/integrations/admin/workouts-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Alerts\\Ai_Generator_Tip_Notification' => __DIR__ . '/../..' . '/src/integrations/alerts/ai-generator-tip-notification.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Blocks\\Estimated_Reading_Time_Block' => __DIR__ . '/../..' . '/src/integrations/blocks/estimated-reading-time-block.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Blocks\\Related_Links_Block' => __DIR__ . '/../..' . '/src/integrations/blocks/related-links-block.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Cleanup_Integration' => __DIR__ . '/../..' . '/src/integrations/cleanup-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Front_End\\Robots_Txt_Integration' => __DIR__ . '/../..' . '/src/integrations/front-end/robots-txt-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Frontend_Inspector' => __DIR__ . '/../..' . '/src/integrations/frontend-inspector.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Index_Now_Ping' => __DIR__ . '/../..' . '/src/integrations/index-now-ping.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Missing_Indexables_Count_Integration' => __DIR__ . '/../..' . '/src/integrations/missing-indexables-count-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_Author_Archive' => __DIR__ . '/../..' . '/src/integrations/opengraph-author-archive.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_Date_Archive' => __DIR__ . '/../..' . '/src/integrations/opengraph-date-archive.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_PostType_Archive' => __DIR__ . '/../..' . '/src/integrations/opengraph-posttype-archive.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_Post_Type' => __DIR__ . '/../..' . '/src/integrations/opengraph-post-type.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\OpenGraph_Term_Archive' => __DIR__ . '/../..' . '/src/integrations/opengraph-term-archive.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Organization_Schema_Integration' => __DIR__ . '/../..' . '/src/integrations/organization-schema-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Publishing_Principles_Schema_Integration' => __DIR__ . '/../..' . '/src/integrations/publishing-principles-schema-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Routes\\AI_Generator_Route' => __DIR__ . '/../..' . '/src/integrations/routes/ai-generator-route.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Routes\\Workouts_Routes_Integration' => __DIR__ . '/../..' . '/src/integrations/routes/workouts-routes-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\Algolia' => __DIR__ . '/../..' . '/src/integrations/third-party/algolia.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\EDD' => __DIR__ . '/../..' . '/src/integrations/third-party/edd.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\Elementor_Premium' => __DIR__ . '/../..' . '/src/integrations/third-party/elementor-premium.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\Elementor_Preview' => __DIR__ . '/../..' . '/src/integrations/third-party/elementor-preview.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Third_Party\\Mastodon' => __DIR__ . '/../..' . '/src/integrations/third-party/mastodon.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Upgrade_Integration' => __DIR__ . '/../..' . '/src/integrations/upgrade-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\User_Profile_Integration' => __DIR__ . '/../..' . '/src/integrations/user-profile-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Watchers\\Prominent_Words_Watcher' => __DIR__ . '/../..' . '/src/integrations/watchers/prominent-words-watcher.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Integrations\\Watchers\\Stale_Cornerstone_Content_Watcher' => __DIR__ . '/../..' . '/src/integrations/watchers/stale-cornerstone-content-watcher.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Introductions\\Application\\Ai_Generate_Titles_And_Descriptions_Introduction' => __DIR__ . '/../..' . '/src/introductions/application/ai-generate-titles-and-descriptions-introduction.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Main' => __DIR__ . '/../..' . '/src/main.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Presenters\\Icons\\Checkmark_Icon_Presenter' => __DIR__ . '/../..' . '/src/presenters/icons/checkmark-icon-presenter.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Presenters\\Icons\\Cross_Icon_Presenter' => __DIR__ . '/../..' . '/src/presenters/icons/cross-icon-presenter.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Presenters\\Icons\\Icon_Presenter' => __DIR__ . '/../..' . '/src/presenters/icons/icon-presenter.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Presenters\\Mastodon_Link_Presenter' => __DIR__ . '/../..' . '/src/presenters/mastodon-link-presenter.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Repositories\\Prominent_Words_Repository' => __DIR__ . '/../..' . '/src/repositories/prominent-words-repository.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Routes\\Link_Suggestions_Route' => __DIR__ . '/../..' . '/src/routes/link-suggestions-route.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Routes\\Prominent_Words_Route' => __DIR__ . '/../..' . '/src/routes/prominent-words-route.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Routes\\Workouts_Route' => __DIR__ . '/../..' . '/src/routes/workouts-route.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\Surfaces\\Helpers_Surface' => __DIR__ . '/../..' . '/src/surfaces/helpers-surface.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\User_Meta\\Framework\\Additional_Contactmethods\\Mastodon' => __DIR__ . '/../..' . '/src/user-meta/framework/additional-contactmethods/mastodon.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\User_Meta\\User_Interface\\Additional_Contactmethods_Integration' => __DIR__ . '/../..' . '/src/user-meta/user-interface/additional-contactmethods-integration.php',
|
||||
'Yoast\\WP\\SEO\\Premium\\WordPress\\Wrapper' => __DIR__ . '/../..' . '/src/wordpress/wrapper.php',
|
||||
);
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit6a21570359fb0970a74d26d7d2ed77bc::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit6a21570359fb0970a74d26d7d2ed77bc::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit6a21570359fb0970a74d26d7d2ed77bc::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
}
|
||||
605
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/installed.php
vendored
Normal file
605
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/installed.php
vendored
Normal file
@@ -0,0 +1,605 @@
|
||||
<?php return array(
|
||||
'root' => array(
|
||||
'pretty_version' => 'dev-main',
|
||||
'version' => 'dev-main',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'reference' => '871a7e723bab02fbf59e0969adc85cd94d6f0203',
|
||||
'name' => 'yoast/wordpress-seo-premium',
|
||||
'dev' => true,
|
||||
),
|
||||
'versions' => array(
|
||||
'antecedent/patchwork' => array(
|
||||
'pretty_version' => '2.1.28',
|
||||
'version' => '2.1.28.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../antecedent/patchwork',
|
||||
'aliases' => array(),
|
||||
'reference' => '6b30aff81ebadf0f2feb9268d3e08385cebcc08d',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'automattic/vipwpcs' => array(
|
||||
'pretty_version' => '3.0.0',
|
||||
'version' => '3.0.0.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../automattic/vipwpcs',
|
||||
'aliases' => array(),
|
||||
'reference' => '1b8960ebff9ea3eb482258a906ece4d1ee1e25fd',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'brain/monkey' => array(
|
||||
'pretty_version' => '2.6.1',
|
||||
'version' => '2.6.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../brain/monkey',
|
||||
'aliases' => array(),
|
||||
'reference' => 'a31c84515bb0d49be9310f52ef1733980ea8ffbb',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'composer/installers' => array(
|
||||
'pretty_version' => 'v2.2.0',
|
||||
'version' => '2.2.0.0',
|
||||
'type' => 'composer-plugin',
|
||||
'install_path' => __DIR__ . '/./installers',
|
||||
'aliases' => array(),
|
||||
'reference' => 'c29dc4b93137acb82734f672c37e029dfbd95b35',
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'cordoval/hamcrest-php' => array(
|
||||
'dev_requirement' => true,
|
||||
'replaced' => array(
|
||||
0 => '*',
|
||||
),
|
||||
),
|
||||
'davedevelopment/hamcrest-php' => array(
|
||||
'dev_requirement' => true,
|
||||
'replaced' => array(
|
||||
0 => '*',
|
||||
),
|
||||
),
|
||||
'dealerdirect/phpcodesniffer-composer-installer' => array(
|
||||
'pretty_version' => 'v1.0.0',
|
||||
'version' => '1.0.0.0',
|
||||
'type' => 'composer-plugin',
|
||||
'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer',
|
||||
'aliases' => array(),
|
||||
'reference' => '4be43904336affa5c2f70744a348312336afd0da',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'doctrine/instantiator' => array(
|
||||
'pretty_version' => '1.5.0',
|
||||
'version' => '1.5.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../doctrine/instantiator',
|
||||
'aliases' => array(),
|
||||
'reference' => '0a0fa9780f5d4e507415a065172d26a98d02047b',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'eftec/bladeone' => array(
|
||||
'pretty_version' => '3.52',
|
||||
'version' => '3.52.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../eftec/bladeone',
|
||||
'aliases' => array(),
|
||||
'reference' => 'a19bf66917de0b29836983db87a455a4f6e32148',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'gettext/gettext' => array(
|
||||
'pretty_version' => 'v4.8.11',
|
||||
'version' => '4.8.11.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../gettext/gettext',
|
||||
'aliases' => array(),
|
||||
'reference' => 'b632aaf5e4579d0b2ae8bc61785e238bff4c5156',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'gettext/languages' => array(
|
||||
'pretty_version' => '2.10.0',
|
||||
'version' => '2.10.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../gettext/languages',
|
||||
'aliases' => array(),
|
||||
'reference' => '4d61d67fe83a2ad85959fe6133d6d9ba7dddd1ab',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'grogy/php-parallel-lint' => array(
|
||||
'dev_requirement' => true,
|
||||
'replaced' => array(
|
||||
0 => '*',
|
||||
),
|
||||
),
|
||||
'hamcrest/hamcrest-php' => array(
|
||||
'pretty_version' => 'v2.0.1',
|
||||
'version' => '2.0.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../hamcrest/hamcrest-php',
|
||||
'aliases' => array(),
|
||||
'reference' => '8c3d0a3f6af734494ad8f6fbbee0ba92422859f3',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'jakub-onderka/php-console-color' => array(
|
||||
'dev_requirement' => true,
|
||||
'replaced' => array(
|
||||
0 => '*',
|
||||
),
|
||||
),
|
||||
'jakub-onderka/php-console-highlighter' => array(
|
||||
'dev_requirement' => true,
|
||||
'replaced' => array(
|
||||
0 => '*',
|
||||
),
|
||||
),
|
||||
'jakub-onderka/php-parallel-lint' => array(
|
||||
'dev_requirement' => true,
|
||||
'replaced' => array(
|
||||
0 => '*',
|
||||
),
|
||||
),
|
||||
'kodova/hamcrest-php' => array(
|
||||
'dev_requirement' => true,
|
||||
'replaced' => array(
|
||||
0 => '*',
|
||||
),
|
||||
),
|
||||
'mck89/peast' => array(
|
||||
'pretty_version' => 'v1.16.2',
|
||||
'version' => '1.16.2.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../mck89/peast',
|
||||
'aliases' => array(),
|
||||
'reference' => '2791b08ffcc1862fe18eef85675da3aa58c406fe',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'mockery/mockery' => array(
|
||||
'pretty_version' => '1.3.6',
|
||||
'version' => '1.3.6.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../mockery/mockery',
|
||||
'aliases' => array(),
|
||||
'reference' => 'dc206df4fa314a50bbb81cf72239a305c5bbd5c0',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'mustache/mustache' => array(
|
||||
'pretty_version' => 'v2.14.2',
|
||||
'version' => '2.14.2.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../mustache/mustache',
|
||||
'aliases' => array(),
|
||||
'reference' => 'e62b7c3849d22ec55f3ec425507bf7968193a6cb',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'myclabs/deep-copy' => array(
|
||||
'pretty_version' => '1.11.1',
|
||||
'version' => '1.11.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../myclabs/deep-copy',
|
||||
'aliases' => array(),
|
||||
'reference' => '7284c22080590fb39f2ffa3e9057f10a4ddd0e0c',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phar-io/manifest' => array(
|
||||
'pretty_version' => '2.0.4',
|
||||
'version' => '2.0.4.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phar-io/manifest',
|
||||
'aliases' => array(),
|
||||
'reference' => '54750ef60c58e43759730615a392c31c80e23176',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phar-io/version' => array(
|
||||
'pretty_version' => '3.2.1',
|
||||
'version' => '3.2.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phar-io/version',
|
||||
'aliases' => array(),
|
||||
'reference' => '4f7fd7836c6f332bb2933569e566a0d6c4cbed74',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'php-parallel-lint/php-console-color' => array(
|
||||
'pretty_version' => 'v1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../php-parallel-lint/php-console-color',
|
||||
'aliases' => array(),
|
||||
'reference' => '7adfefd530aa2d7570ba87100a99e2483a543b88',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'php-parallel-lint/php-console-highlighter' => array(
|
||||
'pretty_version' => 'v1.0.0',
|
||||
'version' => '1.0.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../php-parallel-lint/php-console-highlighter',
|
||||
'aliases' => array(),
|
||||
'reference' => '5b4803384d3303cf8e84141039ef56c8a123138d',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'php-parallel-lint/php-parallel-lint' => array(
|
||||
'pretty_version' => 'v1.4.0',
|
||||
'version' => '1.4.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../php-parallel-lint/php-parallel-lint',
|
||||
'aliases' => array(),
|
||||
'reference' => '6db563514f27e19595a19f45a4bf757b6401194e',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpcompatibility/php-compatibility' => array(
|
||||
'pretty_version' => '9.3.5',
|
||||
'version' => '9.3.5.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../phpcompatibility/php-compatibility',
|
||||
'aliases' => array(),
|
||||
'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpcompatibility/phpcompatibility-paragonie' => array(
|
||||
'pretty_version' => '1.3.2',
|
||||
'version' => '1.3.2.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-paragonie',
|
||||
'aliases' => array(),
|
||||
'reference' => 'bba5a9dfec7fcfbd679cfaf611d86b4d3759da26',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpcompatibility/phpcompatibility-wp' => array(
|
||||
'pretty_version' => '2.1.4',
|
||||
'version' => '2.1.4.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-wp',
|
||||
'aliases' => array(),
|
||||
'reference' => 'b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpcsstandards/phpcsextra' => array(
|
||||
'pretty_version' => '1.2.1',
|
||||
'version' => '1.2.1.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../phpcsstandards/phpcsextra',
|
||||
'aliases' => array(),
|
||||
'reference' => '11d387c6642b6e4acaf0bd9bf5203b8cca1ec489',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpcsstandards/phpcsutils' => array(
|
||||
'pretty_version' => '1.0.10',
|
||||
'version' => '1.0.10.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../phpcsstandards/phpcsutils',
|
||||
'aliases' => array(),
|
||||
'reference' => '51609a5b89f928e0c463d6df80eb38eff1eaf544',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpstan/phpdoc-parser' => array(
|
||||
'pretty_version' => '1.28.0',
|
||||
'version' => '1.28.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpstan/phpdoc-parser',
|
||||
'aliases' => array(),
|
||||
'reference' => 'cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpunit/php-code-coverage' => array(
|
||||
'pretty_version' => '7.0.17',
|
||||
'version' => '7.0.17.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpunit/php-code-coverage',
|
||||
'aliases' => array(),
|
||||
'reference' => '40a4ed114a4aea5afd6df8d0f0c9cd3033097f66',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpunit/php-file-iterator' => array(
|
||||
'pretty_version' => '2.0.6',
|
||||
'version' => '2.0.6.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpunit/php-file-iterator',
|
||||
'aliases' => array(),
|
||||
'reference' => '69deeb8664f611f156a924154985fbd4911eb36b',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpunit/php-text-template' => array(
|
||||
'pretty_version' => '1.2.1',
|
||||
'version' => '1.2.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpunit/php-text-template',
|
||||
'aliases' => array(),
|
||||
'reference' => '31f8b717e51d9a2afca6c9f046f5d69fc27c8686',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpunit/php-timer' => array(
|
||||
'pretty_version' => '2.1.4',
|
||||
'version' => '2.1.4.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpunit/php-timer',
|
||||
'aliases' => array(),
|
||||
'reference' => 'a691211e94ff39a34811abd521c31bd5b305b0bb',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpunit/php-token-stream' => array(
|
||||
'pretty_version' => '3.1.3',
|
||||
'version' => '3.1.3.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpunit/php-token-stream',
|
||||
'aliases' => array(),
|
||||
'reference' => '9c1da83261628cb24b6a6df371b6e312b3954768',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpunit/phpunit' => array(
|
||||
'pretty_version' => '8.5.38',
|
||||
'version' => '8.5.38.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpunit/phpunit',
|
||||
'aliases' => array(),
|
||||
'reference' => '1ecad678646c817a29e55a32c930f3601c3f5a8c',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/code-unit-reverse-lookup' => array(
|
||||
'pretty_version' => '1.0.3',
|
||||
'version' => '1.0.3.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/code-unit-reverse-lookup',
|
||||
'aliases' => array(),
|
||||
'reference' => '92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/comparator' => array(
|
||||
'pretty_version' => '3.0.5',
|
||||
'version' => '3.0.5.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/comparator',
|
||||
'aliases' => array(),
|
||||
'reference' => '1dc7ceb4a24aede938c7af2a9ed1de09609ca770',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/diff' => array(
|
||||
'pretty_version' => '3.0.6',
|
||||
'version' => '3.0.6.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/diff',
|
||||
'aliases' => array(),
|
||||
'reference' => '98ff311ca519c3aa73ccd3de053bdb377171d7b6',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/environment' => array(
|
||||
'pretty_version' => '4.2.5',
|
||||
'version' => '4.2.5.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/environment',
|
||||
'aliases' => array(),
|
||||
'reference' => '56932f6049a0482853056ffd617c91ffcc754205',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/exporter' => array(
|
||||
'pretty_version' => '3.1.6',
|
||||
'version' => '3.1.6.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/exporter',
|
||||
'aliases' => array(),
|
||||
'reference' => '1939bc8fd1d39adcfa88c5b35335910869214c56',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/global-state' => array(
|
||||
'pretty_version' => '3.0.5',
|
||||
'version' => '3.0.5.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/global-state',
|
||||
'aliases' => array(),
|
||||
'reference' => '91c7c47047a971f02de57ed6f040087ef110c5d9',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/object-enumerator' => array(
|
||||
'pretty_version' => '3.0.5',
|
||||
'version' => '3.0.5.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/object-enumerator',
|
||||
'aliases' => array(),
|
||||
'reference' => 'ac5b293dba925751b808e02923399fb44ff0d541',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/object-reflector' => array(
|
||||
'pretty_version' => '1.1.3',
|
||||
'version' => '1.1.3.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/object-reflector',
|
||||
'aliases' => array(),
|
||||
'reference' => '1d439c229e61f244ff1f211e5c99737f90c67def',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/recursion-context' => array(
|
||||
'pretty_version' => '3.0.2',
|
||||
'version' => '3.0.2.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/recursion-context',
|
||||
'aliases' => array(),
|
||||
'reference' => '9bfd3c6f1f08c026f542032dfb42813544f7d64c',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/resource-operations' => array(
|
||||
'pretty_version' => '2.0.3',
|
||||
'version' => '2.0.3.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/resource-operations',
|
||||
'aliases' => array(),
|
||||
'reference' => '72a7f7674d053d548003b16ff5a106e7e0e06eee',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/type' => array(
|
||||
'pretty_version' => '1.1.5',
|
||||
'version' => '1.1.5.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/type',
|
||||
'aliases' => array(),
|
||||
'reference' => '18f071c3a29892b037d35e6b20ddf3ea39b42874',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/version' => array(
|
||||
'pretty_version' => '2.0.1',
|
||||
'version' => '2.0.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/version',
|
||||
'aliases' => array(),
|
||||
'reference' => '99732be0ddb3361e16ad77b68ba41efc8e979019',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sirbrillig/phpcs-variable-analysis' => array(
|
||||
'pretty_version' => 'v2.11.17',
|
||||
'version' => '2.11.17.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../sirbrillig/phpcs-variable-analysis',
|
||||
'aliases' => array(),
|
||||
'reference' => '3b71162a6bf0cde2bff1752e40a1788d8273d049',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'slevomat/coding-standard' => array(
|
||||
'pretty_version' => '8.15.0',
|
||||
'version' => '8.15.0.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../slevomat/coding-standard',
|
||||
'aliases' => array(),
|
||||
'reference' => '7d1d957421618a3803b593ec31ace470177d7817',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'squizlabs/php_codesniffer' => array(
|
||||
'pretty_version' => '3.9.1',
|
||||
'version' => '3.9.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
|
||||
'aliases' => array(),
|
||||
'reference' => '267a4405fff1d9c847134db3a3c92f1ab7f77909',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'symfony/deprecation-contracts' => array(
|
||||
'pretty_version' => 'v2.5.3',
|
||||
'version' => '2.5.3.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
|
||||
'aliases' => array(),
|
||||
'reference' => '80d075412b557d41002320b96a096ca65aa2c98d',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'symfony/finder' => array(
|
||||
'pretty_version' => 'v5.4.35',
|
||||
'version' => '5.4.35.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/finder',
|
||||
'aliases' => array(),
|
||||
'reference' => 'abe6d6f77d9465fed3cd2d029b29d03b56b56435',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'symfony/polyfill-php80' => array(
|
||||
'pretty_version' => 'v1.29.0',
|
||||
'version' => '1.29.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/polyfill-php80',
|
||||
'aliases' => array(),
|
||||
'reference' => '87b68208d5c1188808dd7839ee1e6c8ec3b02f1b',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'theseer/tokenizer' => array(
|
||||
'pretty_version' => '1.2.3',
|
||||
'version' => '1.2.3.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../theseer/tokenizer',
|
||||
'aliases' => array(),
|
||||
'reference' => '737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'wp-cli/i18n-command' => array(
|
||||
'pretty_version' => '2.6.1',
|
||||
'version' => '2.6.1.0',
|
||||
'type' => 'wp-cli-package',
|
||||
'install_path' => __DIR__ . '/../wp-cli/i18n-command',
|
||||
'aliases' => array(),
|
||||
'reference' => '7538d684d4f06b0e10c8a0166ce4e6d9e1687aa1',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'wp-cli/mustangostang-spyc' => array(
|
||||
'pretty_version' => '0.6.3',
|
||||
'version' => '0.6.3.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../wp-cli/mustangostang-spyc',
|
||||
'aliases' => array(),
|
||||
'reference' => '6aa0b4da69ce9e9a2c8402dab8d43cf32c581cc7',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'wp-cli/php-cli-tools' => array(
|
||||
'pretty_version' => 'v0.11.22',
|
||||
'version' => '0.11.22.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../wp-cli/php-cli-tools',
|
||||
'aliases' => array(),
|
||||
'reference' => 'a6bb94664ca36d0962f9c2ff25591c315a550c51',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'wp-cli/wp-cli' => array(
|
||||
'pretty_version' => 'v2.10.0',
|
||||
'version' => '2.10.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../wp-cli/wp-cli',
|
||||
'aliases' => array(),
|
||||
'reference' => 'a339dca576df73c31af4b4d8054efc2dab9a0685',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'wp-coding-standards/wpcs' => array(
|
||||
'pretty_version' => '3.1.0',
|
||||
'version' => '3.1.0.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../wp-coding-standards/wpcs',
|
||||
'aliases' => array(),
|
||||
'reference' => '9333efcbff231f10dfd9c56bb7b65818b4733ca7',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'yoast/phpunit-polyfills' => array(
|
||||
'pretty_version' => '1.1.1',
|
||||
'version' => '1.1.1.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../yoast/phpunit-polyfills',
|
||||
'aliases' => array(),
|
||||
'reference' => 'a0f7d708794a738f328d7b6c94380fd1d6c40446',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'yoast/whip' => array(
|
||||
'pretty_version' => '2.0.0',
|
||||
'version' => '2.0.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../yoast/whip',
|
||||
'aliases' => array(),
|
||||
'reference' => '5cfd9c3b433774548ec231fe896d5e85d17ed0d1',
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'yoast/wordpress-seo' => array(
|
||||
'pretty_version' => '22.9',
|
||||
'version' => '22.9.0.0',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../yoast/wordpress-seo',
|
||||
'aliases' => array(),
|
||||
'reference' => 'bc74e92e863eda4a7a74a70a783331a7a9bd4a6f',
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'yoast/wordpress-seo-premium' => array(
|
||||
'pretty_version' => 'dev-main',
|
||||
'version' => 'dev-main',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'reference' => '871a7e723bab02fbf59e0969adc85cd94d6f0203',
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'yoast/wp-test-utils' => array(
|
||||
'pretty_version' => '1.2.0',
|
||||
'version' => '1.2.0.0',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../yoast/wp-test-utils',
|
||||
'aliases' => array(),
|
||||
'reference' => '2e0f62e0281e4859707c5f13b7da1422aa1c8f7b',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'yoast/yoastcs' => array(
|
||||
'pretty_version' => '3.1.0',
|
||||
'version' => '3.1.0.0',
|
||||
'type' => 'phpcodesniffer-standard',
|
||||
'install_path' => __DIR__ . '/../yoast/yoastcs',
|
||||
'aliases' => array(),
|
||||
'reference' => '533b74e4ce234fb6ff1b02c87f84f227b5a95554',
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
26
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/platform_check.php
vendored
Normal file
26
wp/wp-content/plugins/wordpress-seo-premium/vendor/composer/platform_check.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// platform_check.php @generated by Composer
|
||||
|
||||
$issues = array();
|
||||
|
||||
if (!(PHP_VERSION_ID >= 70205)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.5". You are running ' . PHP_VERSION . '.';
|
||||
}
|
||||
|
||||
if ($issues) {
|
||||
if (!headers_sent()) {
|
||||
header('HTTP/1.1 500 Internal Server Error');
|
||||
}
|
||||
if (!ini_get('display_errors')) {
|
||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
||||
} elseif (!headers_sent()) {
|
||||
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
|
||||
}
|
||||
}
|
||||
trigger_error(
|
||||
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
||||
E_USER_ERROR
|
||||
);
|
||||
}
|
||||
21
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/LICENSE
vendored
Normal file
21
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 Yoast
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
10
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Configs/default.php
vendored
Normal file
10
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Configs/default.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* WHIP libary file.
|
||||
*
|
||||
* @package Yoast\WHIP
|
||||
*/
|
||||
|
||||
return array(
|
||||
'php' => PHP_VERSION,
|
||||
);
|
||||
8
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Configs/version.php
vendored
Normal file
8
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Configs/version.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* WHIP libary file.
|
||||
*
|
||||
* @package Yoast\WHIP
|
||||
*/
|
||||
|
||||
return '1.0.1';
|
||||
61
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Configuration.php
vendored
Normal file
61
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Configuration.php
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
use Yoast\WHIPv2\Exceptions\InvalidType;
|
||||
use Yoast\WHIPv2\Interfaces\Requirement;
|
||||
|
||||
/**
|
||||
* Class Configuration.
|
||||
*/
|
||||
class Configuration {
|
||||
|
||||
/**
|
||||
* The configuration to use.
|
||||
*
|
||||
* @var array<string>
|
||||
*/
|
||||
private $configuration;
|
||||
|
||||
/**
|
||||
* Configuration constructor.
|
||||
*
|
||||
* @param array<string, string> $configuration The configuration to use.
|
||||
*
|
||||
* @throws InvalidType When the $configuration parameter is not of the expected type.
|
||||
*/
|
||||
public function __construct( $configuration = array() ) {
|
||||
if ( ! \is_array( $configuration ) ) {
|
||||
throw new InvalidType( 'Configuration', $configuration, 'array' );
|
||||
}
|
||||
|
||||
$this->configuration = $configuration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the configured version of a particular requirement.
|
||||
*
|
||||
* @param Requirement $requirement The requirement to check.
|
||||
*
|
||||
* @return string|int The version of the passed requirement that was detected as a string.
|
||||
* If the requirement does not exist, this returns int -1.
|
||||
*/
|
||||
public function configuredVersion( Requirement $requirement ) {
|
||||
if ( ! $this->hasRequirementConfigured( $requirement ) ) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return $this->configuration[ $requirement->component() ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether the passed requirement is present in the configuration.
|
||||
*
|
||||
* @param Requirement $requirement The requirement to check.
|
||||
*
|
||||
* @return bool Whether or not the requirement is present in the configuration.
|
||||
*/
|
||||
public function hasRequirementConfigured( Requirement $requirement ) {
|
||||
return \array_key_exists( $requirement->component(), $this->configuration );
|
||||
}
|
||||
}
|
||||
20
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Exceptions/EmptyProperty.php
vendored
Normal file
20
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Exceptions/EmptyProperty.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Class EmptyProperty.
|
||||
*/
|
||||
class EmptyProperty extends Exception {
|
||||
|
||||
/**
|
||||
* EmptyProperty constructor.
|
||||
*
|
||||
* @param string $property Property name.
|
||||
*/
|
||||
public function __construct( $property ) {
|
||||
parent::__construct( \sprintf( '%s cannot be empty.', (string) $property ) );
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Class InvalidOperatorType.
|
||||
*/
|
||||
class InvalidOperatorType extends Exception {
|
||||
|
||||
/**
|
||||
* InvalidOperatorType constructor.
|
||||
*
|
||||
* @param string $value Invalid operator.
|
||||
* @param string[] $validOperators Valid operators.
|
||||
*/
|
||||
public function __construct( $value, $validOperators = array( '=', '==', '===', '<', '>', '<=', '>=' ) ) {
|
||||
parent::__construct(
|
||||
\sprintf(
|
||||
'Invalid operator of %s used. Please use one of the following operators: %s',
|
||||
$value,
|
||||
\implode( ', ', $validOperators )
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
22
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Exceptions/InvalidType.php
vendored
Normal file
22
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Exceptions/InvalidType.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Class InvalidType.
|
||||
*/
|
||||
class InvalidType extends Exception {
|
||||
|
||||
/**
|
||||
* InvalidType constructor.
|
||||
*
|
||||
* @param string $property Property name.
|
||||
* @param string $value Property value.
|
||||
* @param string $expectedType Expected property type.
|
||||
*/
|
||||
public function __construct( $property, $value, $expectedType ) {
|
||||
parent::__construct( \sprintf( '%s should be of type %s. Found %s.', $property, $expectedType, \gettype( $value ) ) );
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Exception for an invalid version comparison string.
|
||||
*
|
||||
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded -- Name should be descriptive and was historically (before namespacing) already set to this.
|
||||
*/
|
||||
class InvalidVersionComparisonString extends Exception {
|
||||
|
||||
/**
|
||||
* InvalidVersionComparisonString constructor.
|
||||
*
|
||||
* @param string $value The passed version comparison string.
|
||||
*/
|
||||
public function __construct( $value ) {
|
||||
parent::__construct(
|
||||
\sprintf(
|
||||
'Invalid version comparison string. Example of a valid version comparison string: >=5.3. Passed version comparison string: %s',
|
||||
$value
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
60
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Facades/wordpress.php
vendored
Normal file
60
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Facades/wordpress.php
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* WHIP libary file.
|
||||
*
|
||||
* @package Yoast\WHIP
|
||||
*/
|
||||
|
||||
use Yoast\WHIPv2\MessageDismisser;
|
||||
use Yoast\WHIPv2\Presenters\WPMessagePresenter;
|
||||
use Yoast\WHIPv2\RequirementsChecker;
|
||||
use Yoast\WHIPv2\VersionRequirement;
|
||||
use Yoast\WHIPv2\WPDismissOption;
|
||||
|
||||
if ( ! function_exists( 'whip_wp_check_versions' ) ) {
|
||||
/**
|
||||
* Facade to quickly check if version requirements are met.
|
||||
*
|
||||
* @param array<string> $requirements The requirements to check.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function whip_wp_check_versions( $requirements ) {
|
||||
// Only show for admin users.
|
||||
if ( ! is_array( $requirements ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$config = include __DIR__ . '/../Configs/default.php';
|
||||
$checker = new RequirementsChecker( $config );
|
||||
|
||||
foreach ( $requirements as $component => $versionComparison ) {
|
||||
$checker->addRequirement( VersionRequirement::fromCompareString( $component, $versionComparison ) );
|
||||
}
|
||||
|
||||
$checker->check();
|
||||
|
||||
if ( ! $checker->hasMessages() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$dismissThreshold = ( WEEK_IN_SECONDS * 4 );
|
||||
$dismissMessage = __( 'Remind me again in 4 weeks.', 'default' );
|
||||
|
||||
$dismisser = new MessageDismisser( time(), $dismissThreshold, new WPDismissOption() );
|
||||
|
||||
$presenter = new WPMessagePresenter( $checker->getMostRecentMessage(), $dismisser, $dismissMessage );
|
||||
|
||||
// Prevent duplicate notices across multiple implementing plugins.
|
||||
if ( ! has_action( 'whip_register_hooks' ) ) {
|
||||
add_action( 'whip_register_hooks', array( $presenter, 'registerHooks' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Fires during hooks registration for the message presenter.
|
||||
*
|
||||
* @param WPMessagePresenter $presenter Message presenter instance.
|
||||
*/
|
||||
do_action( 'whip_register_hooks', $presenter );
|
||||
}
|
||||
}
|
||||
107
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Host.php
vendored
Normal file
107
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Host.php
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
/**
|
||||
* Represents a host.
|
||||
*/
|
||||
class Host {
|
||||
|
||||
/**
|
||||
* Key to an environment variable which should be set to the name of the host.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const HOST_NAME_KEY = 'WHIP_NAME_OF_HOST';
|
||||
|
||||
/**
|
||||
* Filter name for the filter which allows for pointing to the WP hosting page instead of the Yoast version.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const HOSTING_PAGE_FILTER_KEY = 'whip_hosting_page_url_wordpress';
|
||||
|
||||
/**
|
||||
* Retrieves the name of the host if set.
|
||||
*
|
||||
* @return string The name of the host.
|
||||
*/
|
||||
public static function name() {
|
||||
$name = (string) \getenv( self::HOST_NAME_KEY );
|
||||
|
||||
return self::filterName( $name );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the name if we are in a WordPress context.
|
||||
* In a non-WordPress content this function just returns the passed name.
|
||||
*
|
||||
* @param string $name The current name of the host.
|
||||
*
|
||||
* @return string The filtered name of the host.
|
||||
*/
|
||||
private static function filterName( $name ) {
|
||||
if ( \function_exists( 'apply_filters' ) ) {
|
||||
return (string) \apply_filters( \strtolower( self::HOST_NAME_KEY ), $name );
|
||||
}
|
||||
|
||||
return $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the message from the host if set.
|
||||
*
|
||||
* @param string $messageKey The key to use as the environment variable.
|
||||
*
|
||||
* @return string The message as set by the host.
|
||||
*/
|
||||
public static function message( $messageKey ) {
|
||||
$message = (string) \getenv( $messageKey );
|
||||
|
||||
return self::filterMessage( $messageKey, $message );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the message if we are in a WordPress context.
|
||||
* In a non-WordPress content this function just returns the passed message.
|
||||
*
|
||||
* @param string $messageKey The key used for the environment variable.
|
||||
* @param string $message The current message from the host.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function filterMessage( $messageKey, $message ) {
|
||||
if ( \function_exists( 'apply_filters' ) ) {
|
||||
return (string) \apply_filters( \strtolower( $messageKey ), $message );
|
||||
}
|
||||
|
||||
return $message;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the URL for the hosting page.
|
||||
*
|
||||
* @return string The URL to the hosting overview page.
|
||||
*/
|
||||
public static function hostingPageUrl() {
|
||||
$url = 'https://yoa.st/w3';
|
||||
|
||||
return self::filterHostingPageUrl( $url );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the hosting page url if we are in a WordPress context.
|
||||
* In a non-WordPress context this function just returns a link to the Yoast hosting page.
|
||||
*
|
||||
* @param string $url The previous URL.
|
||||
*
|
||||
* @return string The new URL to the hosting overview page.
|
||||
*/
|
||||
private static function filterHostingPageUrl( $url ) {
|
||||
if ( \function_exists( 'apply_filters' ) && \apply_filters( self::HOSTING_PAGE_FILTER_KEY, false ) ) {
|
||||
return 'https://wordpress.org/hosting/';
|
||||
}
|
||||
|
||||
return $url;
|
||||
}
|
||||
}
|
||||
25
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/DismissStorage.php
vendored
Normal file
25
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/DismissStorage.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface DismissStorage.
|
||||
*/
|
||||
interface DismissStorage {
|
||||
|
||||
/**
|
||||
* Saves the value.
|
||||
*
|
||||
* @param int $dismissedValue The value to save.
|
||||
*
|
||||
* @return bool True when successful.
|
||||
*/
|
||||
public function set( $dismissedValue );
|
||||
|
||||
/**
|
||||
* Returns the value.
|
||||
*
|
||||
* @return int The stored value.
|
||||
*/
|
||||
public function get();
|
||||
}
|
||||
16
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/Listener.php
vendored
Normal file
16
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/Listener.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface Listener.
|
||||
*/
|
||||
interface Listener {
|
||||
|
||||
/**
|
||||
* Method that should implement the listen functionality.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function listen();
|
||||
}
|
||||
16
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/Message.php
vendored
Normal file
16
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/Message.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface Message.
|
||||
*/
|
||||
interface Message {
|
||||
|
||||
/**
|
||||
* Retrieves the message body.
|
||||
*
|
||||
* @return string Message.
|
||||
*/
|
||||
public function body();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface MessagePresenter.
|
||||
*/
|
||||
interface MessagePresenter {
|
||||
|
||||
/**
|
||||
* Renders the message.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function renderMessage();
|
||||
}
|
||||
30
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/Requirement.php
vendored
Normal file
30
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/Requirement.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Interfaces;
|
||||
|
||||
/**
|
||||
* Interface Requirement.
|
||||
*/
|
||||
interface Requirement {
|
||||
|
||||
/**
|
||||
* Retrieves the component name defined for the requirement.
|
||||
*
|
||||
* @return string The component name.
|
||||
*/
|
||||
public function component();
|
||||
|
||||
/**
|
||||
* Gets the components version defined for the requirement.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function version();
|
||||
|
||||
/**
|
||||
* Gets the operator to use when comparing version numbers.
|
||||
*
|
||||
* @return string The comparison operator.
|
||||
*/
|
||||
public function operator();
|
||||
}
|
||||
23
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/VersionDetector.php
vendored
Normal file
23
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Interfaces/VersionDetector.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Interfaces;
|
||||
|
||||
/**
|
||||
* An interface that represents a version detector and message.
|
||||
*/
|
||||
interface VersionDetector {
|
||||
|
||||
/**
|
||||
* Detects the version of the installed software.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function detect();
|
||||
|
||||
/**
|
||||
* Returns the message that should be shown if a version is not deemed appropriate by the implementation.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage();
|
||||
}
|
||||
75
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/MessageDismisser.php
vendored
Normal file
75
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/MessageDismisser.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
use Yoast\WHIPv2\Interfaces\DismissStorage;
|
||||
|
||||
/**
|
||||
* A class to dismiss messages.
|
||||
*/
|
||||
class MessageDismisser {
|
||||
|
||||
/**
|
||||
* Storage object to manage the dismissal state.
|
||||
*
|
||||
* @var DismissStorage
|
||||
*/
|
||||
protected $storage;
|
||||
|
||||
/**
|
||||
* The current time.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $currentTime;
|
||||
|
||||
/**
|
||||
* The number of seconds the message will be dismissed.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $threshold;
|
||||
|
||||
/**
|
||||
* MessageDismisser constructor.
|
||||
*
|
||||
* @param int $currentTime The current time.
|
||||
* @param int $threshold The number of seconds the message will be dismissed.
|
||||
* @param DismissStorage $storage Storage object to manage the dismissal state.
|
||||
*/
|
||||
public function __construct( $currentTime, $threshold, DismissStorage $storage ) {
|
||||
$this->currentTime = $currentTime;
|
||||
$this->threshold = $threshold;
|
||||
$this->storage = $storage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves the version number to the storage to indicate the message as being dismissed.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function dismiss() {
|
||||
$this->storage->set( $this->currentTime );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the current time is lower than the stored time extended by the threshold.
|
||||
*
|
||||
* @return bool True when current time is lower than stored value + threshold.
|
||||
*/
|
||||
public function isDismissed() {
|
||||
return ( $this->currentTime <= ( $this->storage->get() + $this->threshold ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the nonce.
|
||||
*
|
||||
* @param string $nonce The nonce to check.
|
||||
* @param string $action The action to check.
|
||||
*
|
||||
* @return bool True when the nonce is valid.
|
||||
*/
|
||||
public function verifyNonce( $nonce, $action ) {
|
||||
return (bool) \wp_verify_nonce( $nonce, $action );
|
||||
}
|
||||
}
|
||||
42
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/MessageFormatter.php
vendored
Normal file
42
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/MessageFormatter.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
/**
|
||||
* A helper class to format messages.
|
||||
*/
|
||||
final class MessageFormatter {
|
||||
|
||||
/**
|
||||
* Wraps a piece of text in HTML strong tags.
|
||||
*
|
||||
* @param string $toWrap The text to wrap.
|
||||
*
|
||||
* @return string The wrapped text.
|
||||
*/
|
||||
public static function strong( $toWrap ) {
|
||||
return '<strong>' . $toWrap . '</strong>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Wraps a piece of text in HTML p tags.
|
||||
*
|
||||
* @param string $toWrap The text to wrap.
|
||||
*
|
||||
* @return string The wrapped text.
|
||||
*/
|
||||
public static function paragraph( $toWrap ) {
|
||||
return '<p>' . $toWrap . '</p>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Wraps a piece of text in HTML p and strong tags.
|
||||
*
|
||||
* @param string $toWrap The text to wrap.
|
||||
*
|
||||
* @return string The wrapped text.
|
||||
*/
|
||||
public static function strongParagraph( $toWrap ) {
|
||||
return self::paragraph( self::strong( $toWrap ) );
|
||||
}
|
||||
}
|
||||
60
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Messages/BasicMessage.php
vendored
Normal file
60
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Messages/BasicMessage.php
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Messages;
|
||||
|
||||
use Yoast\WHIPv2\Exceptions\EmptyProperty;
|
||||
use Yoast\WHIPv2\Exceptions\InvalidType;
|
||||
use Yoast\WHIPv2\Interfaces\Message;
|
||||
|
||||
/**
|
||||
* Class BasicMessage.
|
||||
*/
|
||||
class BasicMessage implements Message {
|
||||
|
||||
/**
|
||||
* Message body.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Message constructor.
|
||||
*
|
||||
* @param string $body Message body.
|
||||
*/
|
||||
public function __construct( $body ) {
|
||||
$this->validateParameters( $body );
|
||||
|
||||
$this->body = $body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the message body.
|
||||
*
|
||||
* @return string Message.
|
||||
*/
|
||||
public function body() {
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the parameters passed to the constructor of this class.
|
||||
*
|
||||
* @param string $body Message body.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws EmptyProperty When the $body parameter is empty.
|
||||
* @throws InvalidType When the $body parameter is not of the expected type.
|
||||
*/
|
||||
private function validateParameters( $body ) {
|
||||
if ( empty( $body ) ) {
|
||||
throw new EmptyProperty( 'Message body' );
|
||||
}
|
||||
|
||||
if ( ! \is_string( $body ) ) {
|
||||
throw new InvalidType( 'Message body', $body, 'string' );
|
||||
}
|
||||
}
|
||||
}
|
||||
62
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Messages/HostMessage.php
vendored
Normal file
62
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Messages/HostMessage.php
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Messages;
|
||||
|
||||
use Yoast\WHIPv2\Host;
|
||||
use Yoast\WHIPv2\Interfaces\Message;
|
||||
use Yoast\WHIPv2\MessageFormatter;
|
||||
|
||||
/**
|
||||
* Class HostMessage.
|
||||
*/
|
||||
class HostMessage implements Message {
|
||||
|
||||
/**
|
||||
* Text domain to use for translations.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $textdomain;
|
||||
|
||||
/**
|
||||
* The environment key to use to retrieve the message from.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $messageKey;
|
||||
|
||||
/**
|
||||
* Message constructor.
|
||||
*
|
||||
* @param string $messageKey The environment key to use to retrieve the message from.
|
||||
* @param string $textdomain The text domain to use for translations.
|
||||
*/
|
||||
public function __construct( $messageKey, $textdomain ) {
|
||||
$this->textdomain = $textdomain;
|
||||
$this->messageKey = $messageKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the message body.
|
||||
*
|
||||
* @return string The message body.
|
||||
*/
|
||||
public function body() {
|
||||
$message = array();
|
||||
|
||||
$message[] = MessageFormatter::strong( $this->title() ) . '<br />';
|
||||
$message[] = MessageFormatter::paragraph( Host::message( $this->messageKey ) );
|
||||
|
||||
return \implode( "\n", $message );
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the message title.
|
||||
*
|
||||
* @return string The message title.
|
||||
*/
|
||||
public function title() {
|
||||
/* translators: 1: name. */
|
||||
return \sprintf( \__( 'A message from %1$s', $this->textdomain ), Host::name() );
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Messages;
|
||||
|
||||
use Yoast\WHIPv2\Interfaces\Message;
|
||||
use Yoast\WHIPv2\VersionRequirement;
|
||||
|
||||
/**
|
||||
* Class Whip_InvalidVersionMessage.
|
||||
*
|
||||
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded -- Name should be descriptive and was historically (before namespacing) already set to this.
|
||||
*/
|
||||
class InvalidVersionRequirementMessage implements Message {
|
||||
|
||||
/**
|
||||
* Object containing the version requirement for a component.
|
||||
*
|
||||
* @var VersionRequirement
|
||||
*/
|
||||
private $requirement;
|
||||
|
||||
/**
|
||||
* Detected version requirement or -1 if not found.
|
||||
*
|
||||
* @var string|int
|
||||
*/
|
||||
private $detected;
|
||||
|
||||
/**
|
||||
* InvalidVersionRequirementMessage constructor.
|
||||
*
|
||||
* @param VersionRequirement $requirement Object containing the version requirement for a component.
|
||||
* @param string|int $detected Detected version requirement or -1 if not found.
|
||||
*/
|
||||
public function __construct( VersionRequirement $requirement, $detected ) {
|
||||
$this->requirement = $requirement;
|
||||
$this->detected = $detected;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the message body.
|
||||
*
|
||||
* @return string Message.
|
||||
*/
|
||||
public function body() {
|
||||
return \sprintf(
|
||||
'Invalid version detected for %s. Found %s but expected %s.',
|
||||
$this->requirement->component(),
|
||||
$this->detected,
|
||||
$this->requirement->version()
|
||||
);
|
||||
}
|
||||
}
|
||||
20
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Messages/NullMessage.php
vendored
Normal file
20
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Messages/NullMessage.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Messages;
|
||||
|
||||
use Yoast\WHIPv2\Interfaces\Message;
|
||||
|
||||
/**
|
||||
* Class NullMessage.
|
||||
*/
|
||||
class NullMessage implements Message {
|
||||
|
||||
/**
|
||||
* Retrieves the message body.
|
||||
*
|
||||
* @return string Message.
|
||||
*/
|
||||
public function body() {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
87
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Messages/UpgradePhpMessage.php
vendored
Normal file
87
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Messages/UpgradePhpMessage.php
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Messages;
|
||||
|
||||
use Yoast\WHIPv2\Host;
|
||||
use Yoast\WHIPv2\Interfaces\Message;
|
||||
use Yoast\WHIPv2\MessageFormatter;
|
||||
|
||||
/**
|
||||
* Class UpgradePhpMessage
|
||||
*/
|
||||
class UpgradePhpMessage implements Message {
|
||||
|
||||
/**
|
||||
* The text domain to use for the translations.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $textdomain;
|
||||
|
||||
/**
|
||||
* UpgradePhpMessage constructor.
|
||||
*
|
||||
* @param string $textdomain The text domain to use for the translations.
|
||||
*/
|
||||
public function __construct( $textdomain ) {
|
||||
$this->textdomain = $textdomain;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the message body to display.
|
||||
*
|
||||
* @return string The message to display.
|
||||
*/
|
||||
public function body() {
|
||||
$textdomain = $this->textdomain;
|
||||
|
||||
$message = array();
|
||||
|
||||
$message[] = MessageFormatter::strongParagraph( \__( 'Your site could be faster and more secure with a newer PHP version.', $textdomain ) ) . '<br />';
|
||||
$message[] = MessageFormatter::paragraph( \__( 'Hey, we\'ve noticed that you\'re running an outdated version of PHP. PHP is the programming language that WordPress and all its plugins and themes are built on. The version that is currently used for your site is no longer supported. Newer versions of PHP are both faster and more secure. In fact, your version of PHP no longer receives security updates, which is why we\'re sending you to this notice.', $textdomain ) );
|
||||
$message[] = MessageFormatter::paragraph( \__( 'Hosts have the ability to update your PHP version, but sometimes they don\'t dare to do that because they\'re afraid they\'ll break your site.', $textdomain ) );
|
||||
$message[] = MessageFormatter::strongParagraph( \__( 'To which version should I update?', $textdomain ) ) . '<br />';
|
||||
$message[] = MessageFormatter::paragraph(
|
||||
\sprintf(
|
||||
/* translators: 1: link open tag; 2: link close tag. */
|
||||
\__( 'You should update your PHP version to either 5.6 or to 7.0 or 7.1. On a normal WordPress site, switching to PHP 5.6 should never cause issues. We would however actually recommend you switch to PHP7. There are some plugins that are not ready for PHP7 though, so do some testing first. We have an article on how to test whether that\'s an option for you %1$shere%2$s. PHP7 is much faster than PHP 5.6. It\'s also the only PHP version still in active development and therefore the better option for your site in the long run.', $textdomain ),
|
||||
'<a href="https://yoa.st/wg" target="_blank">',
|
||||
'</a>'
|
||||
)
|
||||
);
|
||||
|
||||
if ( Host::name() !== '' ) {
|
||||
$hostMessage = new HostMessage( 'WHIP_MESSAGE_FROM_HOST_ABOUT_PHP', $textdomain );
|
||||
$message[] = $hostMessage->body();
|
||||
}
|
||||
|
||||
$hostingPageUrl = Host::hostingPageUrl();
|
||||
|
||||
$message[] = MessageFormatter::strongParagraph( \__( 'Can\'t update? Ask your host!', $textdomain ) ) . '<br />';
|
||||
|
||||
if ( \function_exists( 'apply_filters' ) && \apply_filters( Host::HOSTING_PAGE_FILTER_KEY, false ) ) {
|
||||
$message[] = MessageFormatter::paragraph(
|
||||
\sprintf(
|
||||
/* translators: 1: link open tag; 2: link close tag; 3: link open tag. */
|
||||
\__( 'If you cannot upgrade your PHP version yourself, you can send an email to your host. We have %1$sexamples here%2$s. If they don\'t want to upgrade your PHP version, we would suggest you switch hosts. Have a look at one of the recommended %3$sWordPress hosting partners%2$s.', $textdomain ),
|
||||
'<a href="https://yoa.st/wh" target="_blank">',
|
||||
'</a>',
|
||||
\sprintf( '<a href="%1$s" target="_blank">', \esc_url( $hostingPageUrl ) )
|
||||
)
|
||||
);
|
||||
}
|
||||
else {
|
||||
$message[] = MessageFormatter::paragraph(
|
||||
\sprintf(
|
||||
/* translators: 1: link open tag; 2: link close tag; 3: link open tag. */
|
||||
\__( 'If you cannot upgrade your PHP version yourself, you can send an email to your host. We have %1$sexamples here%2$s. If they don\'t want to upgrade your PHP version, we would suggest you switch hosts. Have a look at one of our recommended %3$sWordPress hosting partners%2$s, they\'ve all been vetted by the Yoast support team and provide all the features a modern host should provide.', $textdomain ),
|
||||
'<a href="https://yoa.st/wh" target="_blank">',
|
||||
'</a>',
|
||||
\sprintf( '<a href="%1$s" target="_blank">', \esc_url( $hostingPageUrl ) )
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return \implode( "\n", $message );
|
||||
}
|
||||
}
|
||||
91
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/MessagesManager.php
vendored
Normal file
91
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/MessagesManager.php
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
use Yoast\WHIPv2\Interfaces\Message;
|
||||
use Yoast\WHIPv2\Messages\NullMessage;
|
||||
|
||||
/**
|
||||
* Manages messages using a global to prevent duplicate messages.
|
||||
*/
|
||||
class MessagesManager {
|
||||
|
||||
/**
|
||||
* MessagesManager constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
if ( ! \array_key_exists( 'whip_messages', $GLOBALS ) ) {
|
||||
$GLOBALS['whip_messages'] = array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a message to the Messages Manager.
|
||||
*
|
||||
* @param Message $message The message to add.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addMessage( Message $message ) {
|
||||
$whipVersion = require __DIR__ . '/Configs/version.php';
|
||||
|
||||
$GLOBALS['whip_messages'][ $whipVersion ] = $message;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether or not there are messages available.
|
||||
*
|
||||
* @return bool Whether or not there are messages available.
|
||||
*/
|
||||
public function hasMessages() {
|
||||
return isset( $GLOBALS['whip_messages'] ) && \count( $GLOBALS['whip_messages'] ) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists the messages that are currently available.
|
||||
*
|
||||
* @return array<Message> The messages that are currently set.
|
||||
*/
|
||||
public function listMessages() {
|
||||
return $GLOBALS['whip_messages'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes all messages.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function deleteMessages() {
|
||||
unset( $GLOBALS['whip_messages'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the latest message.
|
||||
*
|
||||
* @return Message The message. Returns a NullMessage if none is found.
|
||||
*/
|
||||
public function getLatestMessage() {
|
||||
if ( ! $this->hasMessages() ) {
|
||||
return new NullMessage();
|
||||
}
|
||||
|
||||
$messages = $this->sortByVersion( $this->listMessages() );
|
||||
|
||||
$this->deleteMessages();
|
||||
|
||||
return \array_pop( $messages );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list of messages based on the version number.
|
||||
*
|
||||
* @param array<Message> $messages The list of messages to sort.
|
||||
*
|
||||
* @return array<Message> The sorted list of messages.
|
||||
*/
|
||||
private function sortByVersion( array $messages ) {
|
||||
\uksort( $messages, 'version_compare' );
|
||||
|
||||
return $messages;
|
||||
}
|
||||
}
|
||||
112
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Presenters/WPMessagePresenter.php
vendored
Normal file
112
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/Presenters/WPMessagePresenter.php
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2\Presenters;
|
||||
|
||||
use Yoast\WHIPv2\Interfaces\Message;
|
||||
use Yoast\WHIPv2\Interfaces\MessagePresenter;
|
||||
use Yoast\WHIPv2\MessageDismisser;
|
||||
use Yoast\WHIPv2\WPMessageDismissListener;
|
||||
|
||||
/**
|
||||
* A message presenter to show a WordPress notice.
|
||||
*
|
||||
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded -- Sniff does not count acronyms correctly.
|
||||
*/
|
||||
class WPMessagePresenter implements MessagePresenter {
|
||||
|
||||
/**
|
||||
* The string to show to dismiss the message.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $dismissMessage;
|
||||
|
||||
/**
|
||||
* The message to be displayed.
|
||||
*
|
||||
* @var Message
|
||||
*/
|
||||
private $message;
|
||||
|
||||
/**
|
||||
* Dismisser object.
|
||||
*
|
||||
* @var MessageDismisser
|
||||
*/
|
||||
private $dismisser;
|
||||
|
||||
/**
|
||||
* WPMessagePresenter constructor.
|
||||
*
|
||||
* @param Message $message The message to use in the presenter.
|
||||
* @param MessageDismisser $dismisser Dismisser object.
|
||||
* @param string $dismissMessage The copy to show to dismiss the message.
|
||||
*/
|
||||
public function __construct( Message $message, MessageDismisser $dismisser, $dismissMessage ) {
|
||||
$this->message = $message;
|
||||
$this->dismisser = $dismisser;
|
||||
$this->dismissMessage = $dismissMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers hooks to WordPress.
|
||||
*
|
||||
* This is a separate function so you can control when the hooks are registered.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function registerHooks() {
|
||||
\add_action( 'admin_notices', array( $this, 'renderMessage' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the messages present in the global to notices.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function renderMessage() {
|
||||
$dismissListener = new WPMessageDismissListener( $this->dismisser );
|
||||
$dismissListener->listen();
|
||||
|
||||
if ( $this->dismisser->isDismissed() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$dismissButton = \sprintf(
|
||||
'<a href="%2$s">%1$s</a>',
|
||||
\esc_html( $this->dismissMessage ),
|
||||
\esc_url( $dismissListener->getDismissURL() )
|
||||
);
|
||||
|
||||
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped -- output correctly escaped directly above and in the `kses()` method.
|
||||
\printf(
|
||||
'<div class="error"><p>%1$s</p><p>%2$s</p></div>',
|
||||
$this->kses( $this->message->body() ),
|
||||
$dismissButton
|
||||
);
|
||||
// phpcs:enable
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes content from the message that we don't want to show.
|
||||
*
|
||||
* @param string $message The message to clean.
|
||||
*
|
||||
* @return string The cleaned message.
|
||||
*/
|
||||
public function kses( $message ) {
|
||||
return \wp_kses(
|
||||
$message,
|
||||
array(
|
||||
'a' => array(
|
||||
'href' => true,
|
||||
'target' => true,
|
||||
),
|
||||
'strong' => true,
|
||||
'p' => true,
|
||||
'ul' => true,
|
||||
'li' => true,
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
181
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/RequirementsChecker.php
vendored
Normal file
181
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/RequirementsChecker.php
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
use Yoast\WHIPv2\Exceptions\InvalidType;
|
||||
use Yoast\WHIPv2\Interfaces\Message;
|
||||
use Yoast\WHIPv2\Interfaces\Requirement;
|
||||
use Yoast\WHIPv2\Messages\InvalidVersionRequirementMessage;
|
||||
use Yoast\WHIPv2\Messages\UpgradePhpMessage;
|
||||
|
||||
/**
|
||||
* Main controller class to require a certain version of software.
|
||||
*/
|
||||
class RequirementsChecker {
|
||||
|
||||
/**
|
||||
* Requirements the environment should comply with.
|
||||
*
|
||||
* @var array<Requirement>
|
||||
*/
|
||||
private $requirements;
|
||||
|
||||
/**
|
||||
* The configuration to check.
|
||||
*
|
||||
* @var Configuration
|
||||
*/
|
||||
private $configuration;
|
||||
|
||||
/**
|
||||
* Message Manager.
|
||||
*
|
||||
* @var MessagesManager
|
||||
*/
|
||||
private $messageManager;
|
||||
|
||||
/**
|
||||
* The text domain to use for translations.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $textdomain;
|
||||
|
||||
/**
|
||||
* RequirementsChecker constructor.
|
||||
*
|
||||
* @param array<string, string> $configuration The configuration to check.
|
||||
* @param string $textdomain The text domain to use for translations.
|
||||
*
|
||||
* @throws InvalidType When the $configuration parameter is not of the expected type.
|
||||
*/
|
||||
public function __construct( $configuration = array(), $textdomain = 'default' ) {
|
||||
$this->requirements = array();
|
||||
$this->configuration = new Configuration( $configuration );
|
||||
$this->messageManager = new MessagesManager();
|
||||
$this->textdomain = $textdomain;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a requirement to the list of requirements if it doesn't already exist.
|
||||
*
|
||||
* @param Requirement $requirement The requirement to add.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addRequirement( Requirement $requirement ) {
|
||||
// Only allow unique entries to ensure we're not checking specific combinations multiple times.
|
||||
if ( $this->requirementExistsForComponent( $requirement->component() ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->requirements[] = $requirement;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether or not there are requirements available.
|
||||
*
|
||||
* @return bool Whether or not there are requirements.
|
||||
*/
|
||||
public function hasRequirements() {
|
||||
return $this->totalRequirements() > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the total amount of requirements.
|
||||
*
|
||||
* @return int The total amount of requirements.
|
||||
*/
|
||||
public function totalRequirements() {
|
||||
return \count( $this->requirements );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether or not a requirement exists for a particular component.
|
||||
*
|
||||
* @param string $component The component to check for.
|
||||
*
|
||||
* @return bool Whether or not the component has a requirement defined.
|
||||
*/
|
||||
public function requirementExistsForComponent( $component ) {
|
||||
foreach ( $this->requirements as $requirement ) {
|
||||
if ( $requirement->component() === $component ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether a requirement has been fulfilled.
|
||||
*
|
||||
* @param Requirement $requirement The requirement to check.
|
||||
*
|
||||
* @return bool Whether or not the requirement is fulfilled.
|
||||
*/
|
||||
private function requirementIsFulfilled( Requirement $requirement ) {
|
||||
$availableVersion = $this->configuration->configuredVersion( $requirement );
|
||||
$requiredVersion = $requirement->version();
|
||||
|
||||
if ( \in_array( $requirement->operator(), array( '=', '==', '===' ), true ) ) {
|
||||
return \version_compare( $availableVersion, $requiredVersion, '>=' );
|
||||
}
|
||||
|
||||
return \version_compare( $availableVersion, $requiredVersion, $requirement->operator() );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if all requirements are fulfilled and adds a message to the message manager if necessary.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function check() {
|
||||
foreach ( $this->requirements as $requirement ) {
|
||||
// Match against config.
|
||||
$requirementFulfilled = $this->requirementIsFulfilled( $requirement );
|
||||
|
||||
if ( $requirementFulfilled ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->addMissingRequirementMessage( $requirement );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a message to the message manager for requirements that cannot be fulfilled.
|
||||
*
|
||||
* @param Requirement $requirement The requirement that cannot be fulfilled.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function addMissingRequirementMessage( Requirement $requirement ) {
|
||||
switch ( $requirement->component() ) {
|
||||
case 'php':
|
||||
$this->messageManager->addMessage( new UpgradePhpMessage( $this->textdomain ) );
|
||||
break;
|
||||
default:
|
||||
$this->messageManager->addMessage( new InvalidVersionRequirementMessage( $requirement, $this->configuration->configuredVersion( $requirement ) ) );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether or not there are messages available.
|
||||
*
|
||||
* @return bool Whether or not there are messages to display.
|
||||
*/
|
||||
public function hasMessages() {
|
||||
return $this->messageManager->hasMessages();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the most recent message from the message manager.
|
||||
*
|
||||
* @return Message The latest message.
|
||||
*/
|
||||
public function getMostRecentMessage() {
|
||||
return $this->messageManager->getLatestMessage();
|
||||
}
|
||||
}
|
||||
153
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/VersionRequirement.php
vendored
Normal file
153
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/VersionRequirement.php
vendored
Normal file
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
use Yoast\WHIPv2\Exceptions\EmptyProperty;
|
||||
use Yoast\WHIPv2\Exceptions\InvalidOperatorType;
|
||||
use Yoast\WHIPv2\Exceptions\InvalidType;
|
||||
use Yoast\WHIPv2\Exceptions\InvalidVersionComparisonString;
|
||||
use Yoast\WHIPv2\Interfaces\Requirement;
|
||||
|
||||
/**
|
||||
* A value object containing a version requirement for a component version.
|
||||
*/
|
||||
class VersionRequirement implements Requirement {
|
||||
|
||||
/**
|
||||
* The component name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $component;
|
||||
|
||||
/**
|
||||
* The component version.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* The operator to use when comparing version.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $operator;
|
||||
|
||||
/**
|
||||
* Requirement constructor.
|
||||
*
|
||||
* @param string $component The component name.
|
||||
* @param string $version The component version.
|
||||
* @param string $operator The operator to use when comparing version.
|
||||
*/
|
||||
public function __construct( $component, $version, $operator = '=' ) {
|
||||
$this->validateParameters( $component, $version, $operator );
|
||||
|
||||
$this->component = $component;
|
||||
$this->version = $version;
|
||||
$this->operator = $operator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the component name defined for the requirement.
|
||||
*
|
||||
* @return string The component name.
|
||||
*/
|
||||
public function component() {
|
||||
return $this->component;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the components version defined for the requirement.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function version() {
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the operator to use when comparing version numbers.
|
||||
*
|
||||
* @return string The comparison operator.
|
||||
*/
|
||||
public function operator() {
|
||||
return $this->operator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new version requirement from a comparison string.
|
||||
*
|
||||
* @param string $component The component for this version requirement.
|
||||
* @param string $comparisonString The comparison string for this version requirement.
|
||||
*
|
||||
* @return VersionRequirement The parsed version requirement.
|
||||
*
|
||||
* @throws InvalidVersionComparisonString When an invalid version comparison string is passed.
|
||||
*/
|
||||
public static function fromCompareString( $component, $comparisonString ) {
|
||||
|
||||
$matcher = '`
|
||||
(
|
||||
>=? # Matches >= and >.
|
||||
|
|
||||
<=? # Matches <= and <.
|
||||
)
|
||||
([^>=<\s]+) # Matches anything except >, <, =, and whitespace.
|
||||
`x';
|
||||
|
||||
if ( ! \preg_match( $matcher, $comparisonString, $match ) ) {
|
||||
throw new InvalidVersionComparisonString( $comparisonString );
|
||||
}
|
||||
|
||||
$version = $match[2];
|
||||
$operator = $match[1];
|
||||
|
||||
return new VersionRequirement( $component, $version, $operator );
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the parameters passed to the requirement.
|
||||
*
|
||||
* @param string $component The component name.
|
||||
* @param string $version The component version.
|
||||
* @param string $operator The operator to use when comparing version.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws EmptyProperty When any of the parameters is empty.
|
||||
* @throws InvalidOperatorType When the $operator parameter is invalid.
|
||||
* @throws InvalidType When any of the parameters is not of the expected type.
|
||||
*/
|
||||
private function validateParameters( $component, $version, $operator ) {
|
||||
if ( empty( $component ) ) {
|
||||
throw new EmptyProperty( 'Component' );
|
||||
}
|
||||
|
||||
if ( ! \is_string( $component ) ) {
|
||||
throw new InvalidType( 'Component', $component, 'string' );
|
||||
}
|
||||
|
||||
if ( empty( $version ) ) {
|
||||
throw new EmptyProperty( 'Version' );
|
||||
}
|
||||
|
||||
if ( ! \is_string( $version ) ) {
|
||||
throw new InvalidType( 'Version', $version, 'string' );
|
||||
}
|
||||
|
||||
if ( empty( $operator ) ) {
|
||||
throw new EmptyProperty( 'Operator' );
|
||||
}
|
||||
|
||||
if ( ! \is_string( $operator ) ) {
|
||||
throw new InvalidType( 'Operator', $operator, 'string' );
|
||||
}
|
||||
|
||||
$validOperators = array( '=', '==', '===', '<', '>', '<=', '>=' );
|
||||
if ( ! \in_array( $operator, $validOperators, true ) ) {
|
||||
throw new InvalidOperatorType( $operator, $validOperators );
|
||||
}
|
||||
}
|
||||
}
|
||||
45
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/WPDismissOption.php
vendored
Normal file
45
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/WPDismissOption.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
use Yoast\WHIPv2\Interfaces\DismissStorage;
|
||||
|
||||
/**
|
||||
* Represents the WordPress option for saving the dismissed messages.
|
||||
*
|
||||
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded -- Sniff does not count acronyms correctly.
|
||||
*/
|
||||
class WPDismissOption implements DismissStorage {
|
||||
|
||||
/**
|
||||
* WordPress option name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $optionName = 'whip_dismiss_timestamp';
|
||||
|
||||
/**
|
||||
* Saves the value to the options.
|
||||
*
|
||||
* @param int $dismissedValue The value to save.
|
||||
*
|
||||
* @return bool True when successful.
|
||||
*/
|
||||
public function set( $dismissedValue ) {
|
||||
return \update_option( $this->optionName, $dismissedValue );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value of the whip_dismissed option.
|
||||
*
|
||||
* @return int Returns the value of the option or an empty string when not set.
|
||||
*/
|
||||
public function get() {
|
||||
$dismissedOption = \get_option( $this->optionName );
|
||||
if ( ! $dismissedOption ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return (int) $dismissedOption;
|
||||
}
|
||||
}
|
||||
66
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/WPMessageDismissListener.php
vendored
Normal file
66
wp/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/WPMessageDismissListener.php
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WHIPv2;
|
||||
|
||||
use Yoast\WHIPv2\Interfaces\Listener;
|
||||
|
||||
/**
|
||||
* Listener for dismissing a message.
|
||||
*
|
||||
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded -- Sniff does not count acronyms correctly.
|
||||
*/
|
||||
class WPMessageDismissListener implements Listener {
|
||||
|
||||
/**
|
||||
* The name of the dismiss action expected to be passed via $_GET.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const ACTION_NAME = 'whip_dismiss';
|
||||
|
||||
/**
|
||||
* The object for dismissing a message.
|
||||
*
|
||||
* @var MessageDismisser
|
||||
*/
|
||||
protected $dismisser;
|
||||
|
||||
/**
|
||||
* Sets the dismisser attribute.
|
||||
*
|
||||
* @param MessageDismisser $dismisser The object for dismissing a message.
|
||||
*/
|
||||
public function __construct( MessageDismisser $dismisser ) {
|
||||
$this->dismisser = $dismisser;
|
||||
}
|
||||
|
||||
/**
|
||||
* Listens to a GET request to fetch the required attributes.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function listen() {
|
||||
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce is verified in the dismisser.
|
||||
$action = ( isset( $_GET['action'] ) && \is_string( $_GET['action'] ) ) ? \sanitize_text_field( \wp_unslash( $_GET['action'] ) ) : null;
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce is verified in the dismisser.
|
||||
$nonce = ( isset( $_GET['nonce'] ) && \is_string( $_GET['nonce'] ) ) ? \sanitize_text_field( \wp_unslash( $_GET['nonce'] ) ) : '';
|
||||
|
||||
if ( $action === self::ACTION_NAME && $this->dismisser->verifyNonce( $nonce, self::ACTION_NAME ) ) {
|
||||
$this->dismisser->dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an url for dismissing the notice.
|
||||
*
|
||||
* @return string The url for dismissing the message.
|
||||
*/
|
||||
public function getDismissURL() {
|
||||
return \sprintf(
|
||||
\admin_url( 'index.php?action=%1$s&nonce=%2$s' ),
|
||||
self::ACTION_NAME,
|
||||
\wp_create_nonce( self::ACTION_NAME )
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user