Make WordPress Core

Ticket #36335: 36335.6.diff

File 36335.6.diff, 244.0 KB (added by wonderboymusic, 8 years ago)
  • composer.json

     
     1{
     2        "name": "wordpress/wordpress",
     3        "description": "WordPress is web software you can use to create a beautiful website or blog.",
     4        "keywords": [
     5                "blog",
     6                "cms"
     7        ],
     8        "type": "wordpress-core",
     9        "homepage": "https://wordpress.org/",
     10        "license": "GPL-2.0+",
     11        "authors": [
     12                {
     13                        "name": "WordPress Community",
     14                        "homepage": "https://wordpress.org/about/"
     15                }
     16        ],
     17        "support": {
     18                "issues": "https://core.trac.wordpress.org/",
     19                "forum": "https://wordpress.org/support/",
     20                "wiki": "https://codex.wordpress.org/",
     21                "irc": "irc://irc.freenode.net/wordpress",
     22                "source": "https://core.trac.wordpress.org/browser"
     23        },
     24        "require": {
     25                "xrstf/composer-php52": "1.*"
     26        },
     27        "scripts": {
     28                "post-install-cmd": [
     29                        "xrstf\\Composer52\\Generator::onPostInstallCmd"
     30                ],
     31                "post-update-cmd": [
     32                        "xrstf\\Composer52\\Generator::onPostInstallCmd"
     33                ],
     34                "post-autoload-dump": [
     35                        "xrstf\\Composer52\\Generator::onPostInstallCmd"
     36                ]
     37        },
     38        "autoload": {
     39                "classmap": [
     40                        "src/wp-includes/",
     41                        "src/wp-admin/"
     42                ],
     43                "files": [
     44                        "src/wp-includes/load.php",
     45                        "src/wp-includes/default-constants.php",
     46                        "src/wp-includes/plugin.php",
     47                        "src/wp-includes/functions.php",
     48                        "src/wp-includes/default-filters.php",
     49                        "src/wp-includes/formatting.php",
     50                        "src/wp-includes/capabilities.php",
     51                        "src/wp-includes/query.php",
     52                        "src/wp-includes/theme.php",
     53                        "src/wp-includes/template.php",
     54                        "src/wp-includes/user.php",
     55                        "src/wp-includes/meta.php",
     56                        "src/wp-includes/general-template.php",
     57                        "src/wp-includes/link-template.php",
     58                        "src/wp-includes/author-template.php",
     59                        "src/wp-includes/post.php",
     60                        "src/wp-includes/post-template.php",
     61                        "src/wp-includes/revision.php",
     62                        "src/wp-includes/post-formats.php",
     63                        "src/wp-includes/post-thumbnail-template.php",
     64                        "src/wp-includes/category.php",
     65                        "src/wp-includes/category-template.php",
     66                        "src/wp-includes/comment.php",
     67                        "src/wp-includes/comment-template.php",
     68                        "src/wp-includes/rewrite.php",
     69                        "src/wp-includes/feed.php",
     70                        "src/wp-includes/bookmark.php",
     71                        "src/wp-includes/bookmark-template.php",
     72                        "src/wp-includes/kses.php",
     73                        "src/wp-includes/cron.php",
     74                        "src/wp-includes/deprecated.php",
     75                        "src/wp-includes/script-loader.php",
     76                        "src/wp-includes/taxonomy.php",
     77                        "src/wp-includes/update.php",
     78                        "src/wp-includes/canonical.php",
     79                        "src/wp-includes/shortcodes.php",
     80                        "src/wp-includes/embed.php",
     81                        "src/wp-includes/media.php",
     82                        "src/wp-includes/http.php",
     83                        "src/wp-includes/class-http.php",
     84                        "src/wp-includes/widgets.php",
     85                        "src/wp-includes/nav-menu.php",
     86                        "src/wp-includes/nav-menu-template.php",
     87                        "src/wp-includes/admin-bar.php",
     88                        "src/wp-includes/rest-api.php",
     89                        "src/wp-includes/l10n.php"
     90                ]
     91        },
     92        "config": {
     93                "vendor-dir": "src/vendor"
     94        }
     95}
     96 No newline at end of file
  • src/vendor/autoload.php

     
     1<?php
     2
     3// autoload.php @generated by Composer
     4
     5require_once __DIR__ . '/composer' . '/autoload_real.php';
     6
     7return ComposerAutoloaderInit5f802e6773748e86f907e3d9bc7d98de::getLoader();
  • src/vendor/autoload_52.php

     
     1<?php
     2
     3// autoload_52.php generated by xrstf/composer-php52
     4
     5require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
     6
     7return ComposerAutoloaderInit859d6e4143f0b7a705932050735114ea::getLoader();
  • src/vendor/composer/ClassLoader.php

     
     1<?php
     2
     3/*
     4 * This file is part of Composer.
     5 *
     6 * (c) Nils Adermann <naderman@naderman.de>
     7 *     Jordi Boggiano <j.boggiano@seld.be>
     8 *
     9 * For the full copyright and license information, please view the LICENSE
     10 * file that was distributed with this source code.
     11 */
     12
     13namespace Composer\Autoload;
     14
     15/**
     16 * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
     17 *
     18 *     $loader = new \Composer\Autoload\ClassLoader();
     19 *
     20 *     // register classes with namespaces
     21 *     $loader->add('Symfony\Component', __DIR__.'/component');
     22 *     $loader->add('Symfony',           __DIR__.'/framework');
     23 *
     24 *     // activate the autoloader
     25 *     $loader->register();
     26 *
     27 *     // to enable searching the include path (eg. for PEAR packages)
     28 *     $loader->setUseIncludePath(true);
     29 *
     30 * In this example, if you try to use a class in the Symfony\Component
     31 * namespace or one of its children (Symfony\Component\Console for instance),
     32 * the autoloader will first look for the class under the component/
     33 * directory, and it will then fallback to the framework/ directory if not
     34 * found before giving up.
     35 *
     36 * This class is loosely based on the Symfony UniversalClassLoader.
     37 *
     38 * @author Fabien Potencier <fabien@symfony.com>
     39 * @author Jordi Boggiano <j.boggiano@seld.be>
     40 * @see    http://www.php-fig.org/psr/psr-0/
     41 * @see    http://www.php-fig.org/psr/psr-4/
     42 */
     43class ClassLoader
     44{
     45    // PSR-4
     46    private $prefixLengthsPsr4 = array();
     47    private $prefixDirsPsr4 = array();
     48    private $fallbackDirsPsr4 = array();
     49
     50    // PSR-0
     51    private $prefixesPsr0 = array();
     52    private $fallbackDirsPsr0 = array();
     53
     54    private $useIncludePath = false;
     55    private $classMap = array();
     56
     57    private $classMapAuthoritative = false;
     58
     59    public function getPrefixes()
     60    {
     61        if (!empty($this->prefixesPsr0)) {
     62            return call_user_func_array('array_merge', $this->prefixesPsr0);
     63        }
     64
     65        return array();
     66    }
     67
     68    public function getPrefixesPsr4()
     69    {
     70        return $this->prefixDirsPsr4;
     71    }
     72
     73    public function getFallbackDirs()
     74    {
     75        return $this->fallbackDirsPsr0;
     76    }
     77
     78    public function getFallbackDirsPsr4()
     79    {
     80        return $this->fallbackDirsPsr4;
     81    }
     82
     83    public function getClassMap()
     84    {
     85        return $this->classMap;
     86    }
     87
     88    /**
     89     * @param array $classMap Class to filename map
     90     */
     91    public function addClassMap(array $classMap)
     92    {
     93        if ($this->classMap) {
     94            $this->classMap = array_merge($this->classMap, $classMap);
     95        } else {
     96            $this->classMap = $classMap;
     97        }
     98    }
     99
     100    /**
     101     * Registers a set of PSR-0 directories for a given prefix, either
     102     * appending or prepending to the ones previously set for this prefix.
     103     *
     104     * @param string       $prefix  The prefix
     105     * @param array|string $paths   The PSR-0 root directories
     106     * @param bool         $prepend Whether to prepend the directories
     107     */
     108    public function add($prefix, $paths, $prepend = false)
     109    {
     110        if (!$prefix) {
     111            if ($prepend) {
     112                $this->fallbackDirsPsr0 = array_merge(
     113                    (array) $paths,
     114                    $this->fallbackDirsPsr0
     115                );
     116            } else {
     117                $this->fallbackDirsPsr0 = array_merge(
     118                    $this->fallbackDirsPsr0,
     119                    (array) $paths
     120                );
     121            }
     122
     123            return;
     124        }
     125
     126        $first = $prefix[0];
     127        if (!isset($this->prefixesPsr0[$first][$prefix])) {
     128            $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     129
     130            return;
     131        }
     132        if ($prepend) {
     133            $this->prefixesPsr0[$first][$prefix] = array_merge(
     134                (array) $paths,
     135                $this->prefixesPsr0[$first][$prefix]
     136            );
     137        } else {
     138            $this->prefixesPsr0[$first][$prefix] = array_merge(
     139                $this->prefixesPsr0[$first][$prefix],
     140                (array) $paths
     141            );
     142        }
     143    }
     144
     145    /**
     146     * Registers a set of PSR-4 directories for a given namespace, either
     147     * appending or prepending to the ones previously set for this namespace.
     148     *
     149     * @param string       $prefix  The prefix/namespace, with trailing '\\'
     150     * @param array|string $paths   The PSR-4 base directories
     151     * @param bool         $prepend Whether to prepend the directories
     152     *
     153     * @throws \InvalidArgumentException
     154     */
     155    public function addPsr4($prefix, $paths, $prepend = false)
     156    {
     157        if (!$prefix) {
     158            // Register directories for the root namespace.
     159            if ($prepend) {
     160                $this->fallbackDirsPsr4 = array_merge(
     161                    (array) $paths,
     162                    $this->fallbackDirsPsr4
     163                );
     164            } else {
     165                $this->fallbackDirsPsr4 = array_merge(
     166                    $this->fallbackDirsPsr4,
     167                    (array) $paths
     168                );
     169            }
     170        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
     171            // Register directories for a new namespace.
     172            $length = strlen($prefix);
     173            if ('\\' !== $prefix[$length - 1]) {
     174                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
     175            }
     176            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
     177            $this->prefixDirsPsr4[$prefix] = (array) $paths;
     178        } elseif ($prepend) {
     179            // Prepend directories for an already registered namespace.
     180            $this->prefixDirsPsr4[$prefix] = array_merge(
     181                (array) $paths,
     182                $this->prefixDirsPsr4[$prefix]
     183            );
     184        } else {
     185            // Append directories for an already registered namespace.
     186            $this->prefixDirsPsr4[$prefix] = array_merge(
     187                $this->prefixDirsPsr4[$prefix],
     188                (array) $paths
     189            );
     190        }
     191    }
     192
     193    /**
     194     * Registers a set of PSR-0 directories for a given prefix,
     195     * replacing any others previously set for this prefix.
     196     *
     197     * @param string       $prefix The prefix
     198     * @param array|string $paths  The PSR-0 base directories
     199     */
     200    public function set($prefix, $paths)
     201    {
     202        if (!$prefix) {
     203            $this->fallbackDirsPsr0 = (array) $paths;
     204        } else {
     205            $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
     206        }
     207    }
     208
     209    /**
     210     * Registers a set of PSR-4 directories for a given namespace,
     211     * replacing any others previously set for this namespace.
     212     *
     213     * @param string       $prefix The prefix/namespace, with trailing '\\'
     214     * @param array|string $paths  The PSR-4 base directories
     215     *
     216     * @throws \InvalidArgumentException
     217     */
     218    public function setPsr4($prefix, $paths)
     219    {
     220        if (!$prefix) {
     221            $this->fallbackDirsPsr4 = (array) $paths;
     222        } else {
     223            $length = strlen($prefix);
     224            if ('\\' !== $prefix[$length - 1]) {
     225                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
     226            }
     227            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
     228            $this->prefixDirsPsr4[$prefix] = (array) $paths;
     229        }
     230    }
     231
     232    /**
     233     * Turns on searching the include path for class files.
     234     *
     235     * @param bool $useIncludePath
     236     */
     237    public function setUseIncludePath($useIncludePath)
     238    {
     239        $this->useIncludePath = $useIncludePath;
     240    }
     241
     242    /**
     243     * Can be used to check if the autoloader uses the include path to check
     244     * for classes.
     245     *
     246     * @return bool
     247     */
     248    public function getUseIncludePath()
     249    {
     250        return $this->useIncludePath;
     251    }
     252
     253    /**
     254     * Turns off searching the prefix and fallback directories for classes
     255     * that have not been registered with the class map.
     256     *
     257     * @param bool $classMapAuthoritative
     258     */
     259    public function setClassMapAuthoritative($classMapAuthoritative)
     260    {
     261        $this->classMapAuthoritative = $classMapAuthoritative;
     262    }
     263
     264    /**
     265     * Should class lookup fail if not found in the current class map?
     266     *
     267     * @return bool
     268     */
     269    public function isClassMapAuthoritative()
     270    {
     271        return $this->classMapAuthoritative;
     272    }
     273
     274    /**
     275     * Registers this instance as an autoloader.
     276     *
     277     * @param bool $prepend Whether to prepend the autoloader or not
     278     */
     279    public function register($prepend = false)
     280    {
     281        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     282    }
     283
     284    /**
     285     * Unregisters this instance as an autoloader.
     286     */
     287    public function unregister()
     288    {
     289        spl_autoload_unregister(array($this, 'loadClass'));
     290    }
     291
     292    /**
     293     * Loads the given class or interface.
     294     *
     295     * @param  string    $class The name of the class
     296     * @return bool|null True if loaded, null otherwise
     297     */
     298    public function loadClass($class)
     299    {
     300        if ($file = $this->findFile($class)) {
     301            includeFile($file);
     302
     303            return true;
     304        }
     305    }
     306
     307    /**
     308     * Finds the path to the file where the class is defined.
     309     *
     310     * @param string $class The name of the class
     311     *
     312     * @return string|false The path if found, false otherwise
     313     */
     314    public function findFile($class)
     315    {
     316        // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
     317        if ('\\' == $class[0]) {
     318            $class = substr($class, 1);
     319        }
     320
     321        // class map lookup
     322        if (isset($this->classMap[$class])) {
     323            return $this->classMap[$class];
     324        }
     325        if ($this->classMapAuthoritative) {
     326            return false;
     327        }
     328
     329        $file = $this->findFileWithExtension($class, '.php');
     330
     331        // Search for Hack files if we are running on HHVM
     332        if ($file === null && defined('HHVM_VERSION')) {
     333            $file = $this->findFileWithExtension($class, '.hh');
     334        }
     335
     336        if ($file === null) {
     337            // Remember that this class does not exist.
     338            return $this->classMap[$class] = false;
     339        }
     340
     341        return $file;
     342    }
     343
     344    private function findFileWithExtension($class, $ext)
     345    {
     346        // PSR-4 lookup
     347        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
     348
     349        $first = $class[0];
     350        if (isset($this->prefixLengthsPsr4[$first])) {
     351            foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
     352                if (0 === strpos($class, $prefix)) {
     353                    foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
     354                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
     355                            return $file;
     356                        }
     357                    }
     358                }
     359            }
     360        }
     361
     362        // PSR-4 fallback dirs
     363        foreach ($this->fallbackDirsPsr4 as $dir) {
     364            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
     365                return $file;
     366            }
     367        }
     368
     369        // PSR-0 lookup
     370        if (false !== $pos = strrpos($class, '\\')) {
     371            // namespaced class name
     372            $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
     373                . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
     374        } else {
     375            // PEAR-like class name
     376            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
     377        }
     378
     379        if (isset($this->prefixesPsr0[$first])) {
     380            foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
     381                if (0 === strpos($class, $prefix)) {
     382                    foreach ($dirs as $dir) {
     383                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
     384                            return $file;
     385                        }
     386                    }
     387                }
     388            }
     389        }
     390
     391        // PSR-0 fallback dirs
     392        foreach ($this->fallbackDirsPsr0 as $dir) {
     393            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
     394                return $file;
     395            }
     396        }
     397
     398        // PSR-0 include paths.
     399        if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
     400            return $file;
     401        }
     402    }
     403}
     404
     405/**
     406 * Scope isolated include.
     407 *
     408 * Prevents access to $this/self from included files.
     409 */
     410function includeFile($file)
     411{
     412    include $file;
     413}
  • src/vendor/composer/ClassLoader52.php

     
     1<?php
     2/*
     3 * Copyright (c) 2013, Christoph Mewes, http://www.xrstf.de
     4 *
     5 * This file is released under the terms of the MIT license. You can find the
     6 * complete text in the attached LICENSE file or online at:
     7 *
     8 * http://www.opensource.org/licenses/mit-license.php
     9 *
     10 * --------------------------------------------------------------------------
     11 *
     12 * 99% of this is copied as-is from the original Composer source code and is
     13 * released under MIT license as well. Copyright goes to:
     14 *
     15 * - Fabien Potencier <fabien@symfony.com>
     16 * - Jordi Boggiano <j.boggiano@seld.be>
     17 */
     18
     19class xrstf_Composer52_ClassLoader {
     20        private $prefixes              = array();
     21        private $fallbackDirs          = array();
     22        private $useIncludePath        = false;
     23        private $classMap              = array();
     24        private $classMapAuthoratative = false;
     25        private $allowUnderscore       = false;
     26
     27        /**
     28         * @param boolean $flag  true to allow class names with a leading underscore, false to disable
     29         */
     30        public function setAllowUnderscore($flag) {
     31                $this->allowUnderscore = (boolean) $flag;
     32        }
     33
     34        /**
     35         * @return array
     36         */
     37        public function getPrefixes() {
     38                return $this->prefixes;
     39        }
     40
     41        /**
     42         * Turns off searching the prefix and fallback directories for classes
     43         * that have not been registered with the class map.
     44         *
     45         * @param bool $classMapAuthoratative
     46         */
     47        public function setClassMapAuthoritative($classMapAuthoratative) {
     48                $this->classMapAuthoratative = $classMapAuthoratative;
     49        }
     50
     51        /**
     52         * Should class lookup fail if not found in the current class map?
     53         *
     54         * @return bool
     55         */
     56        public function getClassMapAuthoratative() {
     57                return $this->classMapAuthoratative;
     58        }
     59
     60        /**
     61         * @return array
     62         */
     63        public function getFallbackDirs() {
     64                return $this->fallbackDirs;
     65        }
     66
     67        /**
     68         * @return array
     69         */
     70        public function getClassMap() {
     71                return $this->classMap;
     72        }
     73
     74        /**
     75         * @param array $classMap  class to filename map
     76         */
     77        public function addClassMap(array $classMap) {
     78                if ($this->classMap) {
     79                        $this->classMap = array_merge($this->classMap, $classMap);
     80                }
     81                else {
     82                        $this->classMap = $classMap;
     83                }
     84        }
     85
     86        /**
     87         * Registers a set of classes, merging with any others previously set.
     88         *
     89         * @param string       $prefix   the classes prefix
     90         * @param array|string $paths    the location(s) of the classes
     91         * @param bool         $prepend  prepend the location(s)
     92         */
     93        public function add($prefix, $paths, $prepend = false) {
     94                if (!$prefix) {
     95                        if ($prepend) {
     96                                $this->fallbackDirs = array_merge(
     97                                        (array) $paths,
     98                                        $this->fallbackDirs
     99                                );
     100                        }
     101                        else {
     102                                $this->fallbackDirs = array_merge(
     103                                        $this->fallbackDirs,
     104                                        (array) $paths
     105                                );
     106                        }
     107
     108                        return;
     109                }
     110
     111                if (!isset($this->prefixes[$prefix])) {
     112                        $this->prefixes[$prefix] = (array) $paths;
     113                        return;
     114                }
     115
     116                if ($prepend) {
     117                        $this->prefixes[$prefix] = array_merge(
     118                                (array) $paths,
     119                                $this->prefixes[$prefix]
     120                        );
     121                }
     122                else {
     123                        $this->prefixes[$prefix] = array_merge(
     124                                $this->prefixes[$prefix],
     125                                (array) $paths
     126                        );
     127                }
     128        }
     129
     130        /**
     131         * Registers a set of classes, replacing any others previously set.
     132         *
     133         * @param string       $prefix  the classes prefix
     134         * @param array|string $paths   the location(s) of the classes
     135         */
     136        public function set($prefix, $paths) {
     137                if (!$prefix) {
     138                        $this->fallbackDirs = (array) $paths;
     139                        return;
     140                }
     141
     142                $this->prefixes[$prefix] = (array) $paths;
     143        }
     144
     145        /**
     146         * Turns on searching the include path for class files.
     147         *
     148         * @param bool $useIncludePath
     149         */
     150        public function setUseIncludePath($useIncludePath) {
     151                $this->useIncludePath = $useIncludePath;
     152        }
     153
     154        /**
     155         * Can be used to check if the autoloader uses the include path to check
     156         * for classes.
     157         *
     158         * @return bool
     159         */
     160        public function getUseIncludePath() {
     161                return $this->useIncludePath;
     162        }
     163
     164        /**
     165         * Registers this instance as an autoloader.
     166         */
     167        public function register() {
     168                spl_autoload_register(array($this, 'loadClass'), true);
     169        }
     170
     171        /**
     172         * Unregisters this instance as an autoloader.
     173         */
     174        public function unregister() {
     175                spl_autoload_unregister(array($this, 'loadClass'));
     176        }
     177
     178        /**
     179         * Loads the given class or interface.
     180         *
     181         * @param  string $class  the name of the class
     182         * @return bool|null      true, if loaded
     183         */
     184        public function loadClass($class) {
     185                if ($file = $this->findFile($class)) {
     186                        include $file;
     187                        return true;
     188                }
     189        }
     190
     191        /**
     192         * Finds the path to the file where the class is defined.
     193         *
     194         * @param  string $class  the name of the class
     195         * @return string|null    the path, if found
     196         */
     197        public function findFile($class) {
     198                if ('\\' === $class[0]) {
     199                        $class = substr($class, 1);
     200                }
     201
     202                if (isset($this->classMap[$class])) {
     203                        return $this->classMap[$class];
     204                }
     205                elseif ($this->classMapAuthoratative) {
     206                        return false;
     207                }
     208
     209                $classPath = $this->getClassPath($class);
     210
     211                foreach ($this->prefixes as $prefix => $dirs) {
     212                        if (0 === strpos($class, $prefix)) {
     213                                foreach ($dirs as $dir) {
     214                                        if (file_exists($dir.DIRECTORY_SEPARATOR.$classPath)) {
     215                                                return $dir.DIRECTORY_SEPARATOR.$classPath;
     216                                        }
     217                                }
     218                        }
     219                }
     220
     221                foreach ($this->fallbackDirs as $dir) {
     222                        if (file_exists($dir.DIRECTORY_SEPARATOR.$classPath)) {
     223                                return $dir.DIRECTORY_SEPARATOR.$classPath;
     224                        }
     225                }
     226
     227                if ($this->useIncludePath && $file = self::resolveIncludePath($classPath)) {
     228                        return $file;
     229                }
     230
     231                return $this->classMap[$class] = false;
     232        }
     233
     234        private function getClassPath($class) {
     235                if (false !== $pos = strrpos($class, '\\')) {
     236                        // namespaced class name
     237                        $classPath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $pos)).DIRECTORY_SEPARATOR;
     238                        $className = substr($class, $pos + 1);
     239                }
     240                else {
     241                        // PEAR-like class name
     242                        $classPath = null;
     243                        $className = $class;
     244                }
     245
     246                $className = str_replace('_', DIRECTORY_SEPARATOR, $className);
     247
     248                // restore the prefix
     249                if ($this->allowUnderscore && DIRECTORY_SEPARATOR === $className[0]) {
     250                        $className[0] = '_';
     251                }
     252
     253                $classPath .= $className.'.php';
     254
     255                return $classPath;
     256        }
     257
     258        public static function resolveIncludePath($classPath) {
     259                $paths = explode(PATH_SEPARATOR, get_include_path());
     260
     261                foreach ($paths as $path) {
     262                        $path = rtrim($path, '/\\');
     263
     264                        if ($file = file_exists($path.DIRECTORY_SEPARATOR.$file)) {
     265                                return $file;
     266                        }
     267                }
     268
     269                return false;
     270        }
     271}
  • src/vendor/composer/LICENSE

     
     1
     2Copyright (c) 2016 Nils Adermann, Jordi Boggiano
     3
     4Permission is hereby granted, free of charge, to any person obtaining a copy
     5of this software and associated documentation files (the "Software"), to deal
     6in the Software without restriction, including without limitation the rights
     7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8copies of the Software, and to permit persons to whom the Software is furnished
     9to do so, subject to the following conditions:
     10
     11The above copyright notice and this permission notice shall be included in all
     12copies or substantial portions of the Software.
     13
     14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     20THE SOFTWARE.
     21
  • src/vendor/composer/autoload_classmap.php

     
     1<?php
     2
     3// autoload_classmap.php @generated by Composer
     4
     5$vendorDir = dirname(dirname(__FILE__));
     6$baseDir = dirname(dirname($vendorDir));
     7
     8return array(
     9    'AMFReader' => $baseDir . '/src/wp-includes/ID3/module.audio-video.flv.php',
     10    'AMFStream' => $baseDir . '/src/wp-includes/ID3/module.audio-video.flv.php',
     11    'AVCSequenceParameterSetReader' => $baseDir . '/src/wp-includes/ID3/module.audio-video.flv.php',
     12    'AtomEntry' => $baseDir . '/src/wp-includes/atomlib.php',
     13    'AtomFeed' => $baseDir . '/src/wp-includes/atomlib.php',
     14    'AtomParser' => $baseDir . '/src/wp-includes/atomlib.php',
     15    'Automatic_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-automatic-upgrader-skin.php',
     16    'Bulk_Plugin_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php',
     17    'Bulk_Theme_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php',
     18    'Bulk_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-bulk-upgrader-skin.php',
     19    'Core_Upgrader' => $baseDir . '/src/wp-admin/includes/class-core-upgrader.php',
     20    'Custom_Background' => $baseDir . '/src/wp-admin/custom-background.php',
     21    'Custom_Image_Header' => $baseDir . '/src/wp-admin/custom-header.php',
     22    'Error' => $baseDir . '/src/wp-includes/random_compat/error_polyfill.php',
     23    'File_Upload_Upgrader' => $baseDir . '/src/wp-admin/includes/class-file-upload-upgrader.php',
     24    'Gettext_Translations' => $baseDir . '/src/wp-includes/pomo/translations.php',
     25    'IXR_Base64' => $baseDir . '/src/wp-includes/class-IXR.php',
     26    'IXR_Client' => $baseDir . '/src/wp-includes/class-IXR.php',
     27    'IXR_ClientMulticall' => $baseDir . '/src/wp-includes/class-IXR.php',
     28    'IXR_Date' => $baseDir . '/src/wp-includes/class-IXR.php',
     29    'IXR_Error' => $baseDir . '/src/wp-includes/class-IXR.php',
     30    'IXR_IntrospectionServer' => $baseDir . '/src/wp-includes/class-IXR.php',
     31    'IXR_Message' => $baseDir . '/src/wp-includes/class-IXR.php',
     32    'IXR_Request' => $baseDir . '/src/wp-includes/class-IXR.php',
     33    'IXR_Server' => $baseDir . '/src/wp-includes/class-IXR.php',
     34    'IXR_Value' => $baseDir . '/src/wp-includes/class-IXR.php',
     35    'JsonSerializable' => $baseDir . '/src/wp-includes/compat.php',
     36    'Language_Pack_Upgrader' => $baseDir . '/src/wp-admin/includes/class-language-pack-upgrader.php',
     37    'Language_Pack_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-language-pack-upgrader-skin.php',
     38    'MO' => $baseDir . '/src/wp-includes/pomo/mo.php',
     39    'MagpieRSS' => $baseDir . '/src/wp-includes/rss.php',
     40    'NOOP_Translations' => $baseDir . '/src/wp-includes/pomo/translations.php',
     41    'PHPMailer' => $baseDir . '/src/wp-includes/class-phpmailer.php',
     42    'PO' => $baseDir . '/src/wp-includes/pomo/po.php',
     43    'POMO_CachedFileReader' => $baseDir . '/src/wp-includes/pomo/streams.php',
     44    'POMO_CachedIntFileReader' => $baseDir . '/src/wp-includes/pomo/streams.php',
     45    'POMO_FileReader' => $baseDir . '/src/wp-includes/pomo/streams.php',
     46    'POMO_Reader' => $baseDir . '/src/wp-includes/pomo/streams.php',
     47    'POMO_StringReader' => $baseDir . '/src/wp-includes/pomo/streams.php',
     48    'POP3' => $baseDir . '/src/wp-includes/class-pop3.php',
     49    'PasswordHash' => $baseDir . '/src/wp-includes/class-phpass.php',
     50    'PclZip' => $baseDir . '/src/wp-admin/includes/class-pclzip.php',
     51    'Plugin_Installer_Skin' => $baseDir . '/src/wp-admin/includes/class-plugin-installer-skin.php',
     52    'Plugin_Upgrader' => $baseDir . '/src/wp-admin/includes/class-plugin-upgrader.php',
     53    'Plugin_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-plugin-upgrader-skin.php',
     54    'RSSCache' => $baseDir . '/src/wp-includes/rss.php',
     55    'Requests' => $baseDir . '/src/wp-includes/class-requests.php',
     56    'Requests_Auth' => $baseDir . '/src/wp-includes/Requests/Auth.php',
     57    'Requests_Auth_Basic' => $baseDir . '/src/wp-includes/Requests/Auth/Basic.php',
     58    'Requests_Cookie' => $baseDir . '/src/wp-includes/Requests/Cookie.php',
     59    'Requests_Cookie_Jar' => $baseDir . '/src/wp-includes/Requests/Cookie/Jar.php',
     60    'Requests_Exception' => $baseDir . '/src/wp-includes/Requests/Exception.php',
     61    'Requests_Exception_HTTP' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP.php',
     62    'Requests_Exception_HTTP_304' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/304.php',
     63    'Requests_Exception_HTTP_305' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/305.php',
     64    'Requests_Exception_HTTP_306' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/306.php',
     65    'Requests_Exception_HTTP_400' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/400.php',
     66    'Requests_Exception_HTTP_401' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/401.php',
     67    'Requests_Exception_HTTP_402' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/402.php',
     68    'Requests_Exception_HTTP_403' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/403.php',
     69    'Requests_Exception_HTTP_404' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/404.php',
     70    'Requests_Exception_HTTP_405' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/405.php',
     71    'Requests_Exception_HTTP_406' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/406.php',
     72    'Requests_Exception_HTTP_407' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/407.php',
     73    'Requests_Exception_HTTP_408' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/408.php',
     74    'Requests_Exception_HTTP_409' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/409.php',
     75    'Requests_Exception_HTTP_410' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/410.php',
     76    'Requests_Exception_HTTP_411' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/411.php',
     77    'Requests_Exception_HTTP_412' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/412.php',
     78    'Requests_Exception_HTTP_413' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/413.php',
     79    'Requests_Exception_HTTP_414' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/414.php',
     80    'Requests_Exception_HTTP_415' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/415.php',
     81    'Requests_Exception_HTTP_416' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/416.php',
     82    'Requests_Exception_HTTP_417' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/417.php',
     83    'Requests_Exception_HTTP_418' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/418.php',
     84    'Requests_Exception_HTTP_428' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/428.php',
     85    'Requests_Exception_HTTP_429' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/429.php',
     86    'Requests_Exception_HTTP_431' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/431.php',
     87    'Requests_Exception_HTTP_500' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/500.php',
     88    'Requests_Exception_HTTP_501' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/501.php',
     89    'Requests_Exception_HTTP_502' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/502.php',
     90    'Requests_Exception_HTTP_503' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/503.php',
     91    'Requests_Exception_HTTP_504' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/504.php',
     92    'Requests_Exception_HTTP_505' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/505.php',
     93    'Requests_Exception_HTTP_511' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/511.php',
     94    'Requests_Exception_HTTP_Unknown' => $baseDir . '/src/wp-includes/Requests/Exception/HTTP/Unknown.php',
     95    'Requests_Exception_Transport' => $baseDir . '/src/wp-includes/Requests/Exception/Transport.php',
     96    'Requests_Exception_Transport_cURL' => $baseDir . '/src/wp-includes/Requests/Exception/Transport/cURL.php',
     97    'Requests_Hooker' => $baseDir . '/src/wp-includes/Requests/Hooker.php',
     98    'Requests_Hooks' => $baseDir . '/src/wp-includes/Requests/Hooks.php',
     99    'Requests_IDNAEncoder' => $baseDir . '/src/wp-includes/Requests/IDNAEncoder.php',
     100    'Requests_IPv6' => $baseDir . '/src/wp-includes/Requests/IPv6.php',
     101    'Requests_IRI' => $baseDir . '/src/wp-includes/Requests/IRI.php',
     102    'Requests_Proxy' => $baseDir . '/src/wp-includes/Requests/Proxy.php',
     103    'Requests_Proxy_HTTP' => $baseDir . '/src/wp-includes/Requests/Proxy/HTTP.php',
     104    'Requests_Response' => $baseDir . '/src/wp-includes/Requests/Response.php',
     105    'Requests_Response_Headers' => $baseDir . '/src/wp-includes/Requests/Response/Headers.php',
     106    'Requests_SSL' => $baseDir . '/src/wp-includes/Requests/SSL.php',
     107    'Requests_Session' => $baseDir . '/src/wp-includes/Requests/Session.php',
     108    'Requests_Transport' => $baseDir . '/src/wp-includes/Requests/Transport.php',
     109    'Requests_Transport_cURL' => $baseDir . '/src/wp-includes/Requests/Transport/cURL.php',
     110    'Requests_Transport_fsockopen' => $baseDir . '/src/wp-includes/Requests/Transport/fsockopen.php',
     111    'Requests_Utility_CaseInsensitiveDictionary' => $baseDir . '/src/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php',
     112    'Requests_Utility_FilteredIterator' => $baseDir . '/src/wp-includes/Requests/Utility/FilteredIterator.php',
     113    'SMTP' => $baseDir . '/src/wp-includes/class-smtp.php',
     114    'Services_JSON' => $baseDir . '/src/wp-includes/class-json.php',
     115    'Services_JSON_Error' => $baseDir . '/src/wp-includes/class-json.php',
     116    'SimplePie' => $baseDir . '/src/wp-includes/class-simplepie.php',
     117    'SimplePie_Author' => $baseDir . '/src/wp-includes/SimplePie/Author.php',
     118    'SimplePie_Cache' => $baseDir . '/src/wp-includes/SimplePie/Cache.php',
     119    'SimplePie_Cache_Base' => $baseDir . '/src/wp-includes/SimplePie/Cache/Base.php',
     120    'SimplePie_Cache_DB' => $baseDir . '/src/wp-includes/SimplePie/Cache/DB.php',
     121    'SimplePie_Cache_File' => $baseDir . '/src/wp-includes/SimplePie/Cache/File.php',
     122    'SimplePie_Cache_Memcache' => $baseDir . '/src/wp-includes/SimplePie/Cache/Memcache.php',
     123    'SimplePie_Cache_MySQL' => $baseDir . '/src/wp-includes/SimplePie/Cache/MySQL.php',
     124    'SimplePie_Caption' => $baseDir . '/src/wp-includes/SimplePie/Caption.php',
     125    'SimplePie_Category' => $baseDir . '/src/wp-includes/SimplePie/Category.php',
     126    'SimplePie_Content_Type_Sniffer' => $baseDir . '/src/wp-includes/SimplePie/Content/Type/Sniffer.php',
     127    'SimplePie_Copyright' => $baseDir . '/src/wp-includes/SimplePie/Copyright.php',
     128    'SimplePie_Core' => $baseDir . '/src/wp-includes/SimplePie/Core.php',
     129    'SimplePie_Credit' => $baseDir . '/src/wp-includes/SimplePie/Credit.php',
     130    'SimplePie_Decode_HTML_Entities' => $baseDir . '/src/wp-includes/SimplePie/Decode/HTML/Entities.php',
     131    'SimplePie_Enclosure' => $baseDir . '/src/wp-includes/SimplePie/Enclosure.php',
     132    'SimplePie_Exception' => $baseDir . '/src/wp-includes/SimplePie/Exception.php',
     133    'SimplePie_File' => $baseDir . '/src/wp-includes/SimplePie/File.php',
     134    'SimplePie_HTTP_Parser' => $baseDir . '/src/wp-includes/SimplePie/HTTP/Parser.php',
     135    'SimplePie_IRI' => $baseDir . '/src/wp-includes/SimplePie/IRI.php',
     136    'SimplePie_Item' => $baseDir . '/src/wp-includes/SimplePie/Item.php',
     137    'SimplePie_Locator' => $baseDir . '/src/wp-includes/SimplePie/Locator.php',
     138    'SimplePie_Misc' => $baseDir . '/src/wp-includes/SimplePie/Misc.php',
     139    'SimplePie_Net_IPv6' => $baseDir . '/src/wp-includes/SimplePie/Net/IPv6.php',
     140    'SimplePie_Parse_Date' => $baseDir . '/src/wp-includes/SimplePie/Parse/Date.php',
     141    'SimplePie_Parser' => $baseDir . '/src/wp-includes/SimplePie/Parser.php',
     142    'SimplePie_Rating' => $baseDir . '/src/wp-includes/SimplePie/Rating.php',
     143    'SimplePie_Registry' => $baseDir . '/src/wp-includes/SimplePie/Registry.php',
     144    'SimplePie_Restriction' => $baseDir . '/src/wp-includes/SimplePie/Restriction.php',
     145    'SimplePie_Sanitize' => $baseDir . '/src/wp-includes/SimplePie/Sanitize.php',
     146    'SimplePie_Source' => $baseDir . '/src/wp-includes/SimplePie/Source.php',
     147    'SimplePie_XML_Declaration_Parser' => $baseDir . '/src/wp-includes/SimplePie/XML/Declaration/Parser.php',
     148    'SimplePie_gzdecode' => $baseDir . '/src/wp-includes/SimplePie/gzdecode.php',
     149    'Snoopy' => $baseDir . '/src/wp-includes/class-snoopy.php',
     150    'Text_Diff' => $baseDir . '/src/wp-includes/Text/Diff.php',
     151    'Text_Diff_Engine_native' => $baseDir . '/src/wp-includes/Text/Diff/Engine/native.php',
     152    'Text_Diff_Engine_shell' => $baseDir . '/src/wp-includes/Text/Diff/Engine/shell.php',
     153    'Text_Diff_Engine_string' => $baseDir . '/src/wp-includes/Text/Diff/Engine/string.php',
     154    'Text_Diff_Engine_xdiff' => $baseDir . '/src/wp-includes/Text/Diff/Engine/xdiff.php',
     155    'Text_Diff_Op' => $baseDir . '/src/wp-includes/Text/Diff.php',
     156    'Text_Diff_Op_add' => $baseDir . '/src/wp-includes/Text/Diff.php',
     157    'Text_Diff_Op_change' => $baseDir . '/src/wp-includes/Text/Diff.php',
     158    'Text_Diff_Op_copy' => $baseDir . '/src/wp-includes/Text/Diff.php',
     159    'Text_Diff_Op_delete' => $baseDir . '/src/wp-includes/Text/Diff.php',
     160    'Text_Diff_Renderer' => $baseDir . '/src/wp-includes/Text/Diff/Renderer.php',
     161    'Text_Diff_Renderer_inline' => $baseDir . '/src/wp-includes/Text/Diff/Renderer/inline.php',
     162    'Text_MappedDiff' => $baseDir . '/src/wp-includes/Text/Diff.php',
     163    'Theme_Installer_Skin' => $baseDir . '/src/wp-admin/includes/class-theme-installer-skin.php',
     164    'Theme_Upgrader' => $baseDir . '/src/wp-admin/includes/class-theme-upgrader.php',
     165    'Theme_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-theme-upgrader-skin.php',
     166    'Translation_Entry' => $baseDir . '/src/wp-includes/pomo/entry.php',
     167    'Translations' => $baseDir . '/src/wp-includes/pomo/translations.php',
     168    'TypeError' => $baseDir . '/src/wp-includes/random_compat/error_polyfill.php',
     169    'WP' => $baseDir . '/src/wp-includes/class-wp.php',
     170    'WP_Admin_Bar' => $baseDir . '/src/wp-includes/class-wp-admin-bar.php',
     171    'WP_Ajax_Response' => $baseDir . '/src/wp-includes/class-wp-ajax-response.php',
     172    'WP_Ajax_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-wp-ajax-upgrader-skin.php',
     173    'WP_Automatic_Updater' => $baseDir . '/src/wp-admin/includes/class-wp-automatic-updater.php',
     174    'WP_Comment' => $baseDir . '/src/wp-includes/class-wp-comment.php',
     175    'WP_Comment_Query' => $baseDir . '/src/wp-includes/class-wp-comment-query.php',
     176    'WP_Comments_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-comments-list-table.php',
     177    'WP_Customize_Background_Image_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-background-image-control.php',
     178    'WP_Customize_Background_Image_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-background-image-setting.php',
     179    'WP_Customize_Color_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-color-control.php',
     180    'WP_Customize_Control' => $baseDir . '/src/wp-includes/class-wp-customize-control.php',
     181    'WP_Customize_Cropped_Image_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-cropped-image-control.php',
     182    'WP_Customize_Filter_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-filter-setting.php',
     183    'WP_Customize_Header_Image_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-header-image-control.php',
     184    'WP_Customize_Header_Image_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-header-image-setting.php',
     185    'WP_Customize_Image_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-image-control.php',
     186    'WP_Customize_Manager' => $baseDir . '/src/wp-includes/class-wp-customize-manager.php',
     187    'WP_Customize_Media_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-media-control.php',
     188    'WP_Customize_Nav_Menu_Auto_Add_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php',
     189    'WP_Customize_Nav_Menu_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-control.php',
     190    'WP_Customize_Nav_Menu_Item_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php',
     191    'WP_Customize_Nav_Menu_Item_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php',
     192    'WP_Customize_Nav_Menu_Location_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php',
     193    'WP_Customize_Nav_Menu_Name_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-name-control.php',
     194    'WP_Customize_Nav_Menu_Section' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-section.php',
     195    'WP_Customize_Nav_Menu_Setting' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php',
     196    'WP_Customize_Nav_Menus' => $baseDir . '/src/wp-includes/class-wp-customize-nav-menus.php',
     197    'WP_Customize_Nav_Menus_Panel' => $baseDir . '/src/wp-includes/customize/class-wp-customize-nav-menus-panel.php',
     198    'WP_Customize_New_Menu_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-new-menu-control.php',
     199    'WP_Customize_New_Menu_Section' => $baseDir . '/src/wp-includes/customize/class-wp-customize-new-menu-section.php',
     200    'WP_Customize_Panel' => $baseDir . '/src/wp-includes/class-wp-customize-panel.php',
     201    'WP_Customize_Partial' => $baseDir . '/src/wp-includes/customize/class-wp-customize-partial.php',
     202    'WP_Customize_Section' => $baseDir . '/src/wp-includes/class-wp-customize-section.php',
     203    'WP_Customize_Selective_Refresh' => $baseDir . '/src/wp-includes/customize/class-wp-customize-selective-refresh.php',
     204    'WP_Customize_Setting' => $baseDir . '/src/wp-includes/class-wp-customize-setting.php',
     205    'WP_Customize_Sidebar_Section' => $baseDir . '/src/wp-includes/customize/class-wp-customize-sidebar-section.php',
     206    'WP_Customize_Site_Icon_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-site-icon-control.php',
     207    'WP_Customize_Theme_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-theme-control.php',
     208    'WP_Customize_Themes_Section' => $baseDir . '/src/wp-includes/customize/class-wp-customize-themes-section.php',
     209    'WP_Customize_Upload_Control' => $baseDir . '/src/wp-includes/customize/class-wp-customize-upload-control.php',
     210    'WP_Customize_Widgets' => $baseDir . '/src/wp-includes/class-wp-customize-widgets.php',
     211    'WP_Date_Query' => $baseDir . '/src/wp-includes/date.php',
     212    'WP_Dependencies' => $baseDir . '/src/wp-includes/class.wp-dependencies.php',
     213    'WP_Embed' => $baseDir . '/src/wp-includes/class-wp-embed.php',
     214    'WP_Error' => $baseDir . '/src/wp-includes/class-wp-error.php',
     215    'WP_Feed_Cache' => $baseDir . '/src/wp-includes/class-wp-feed-cache.php',
     216    'WP_Feed_Cache_Transient' => $baseDir . '/src/wp-includes/class-wp-feed-cache-transient.php',
     217    'WP_Filesystem_Base' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-base.php',
     218    'WP_Filesystem_Direct' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-direct.php',
     219    'WP_Filesystem_FTPext' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-ftpext.php',
     220    'WP_Filesystem_SSH2' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-ssh2.php',
     221    'WP_Filesystem_ftpsockets' => $baseDir . '/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php',
     222    'WP_HTTP_Fsockopen' => $baseDir . '/src/wp-includes/class-wp-http-streams.php',
     223    'WP_HTTP_IXR_Client' => $baseDir . '/src/wp-includes/class-wp-http-ixr-client.php',
     224    'WP_HTTP_Proxy' => $baseDir . '/src/wp-includes/class-wp-http-proxy.php',
     225    'WP_HTTP_Requests_Response' => $baseDir . '/src/wp-includes/class-wp-http-requests-response.php',
     226    'WP_HTTP_Response' => $baseDir . '/src/wp-includes/class-wp-http-response.php',
     227    'WP_Http' => $baseDir . '/src/wp-includes/class-http.php',
     228    'WP_Http_Cookie' => $baseDir . '/src/wp-includes/class-wp-http-cookie.php',
     229    'WP_Http_Curl' => $baseDir . '/src/wp-includes/class-wp-http-curl.php',
     230    'WP_Http_Encoding' => $baseDir . '/src/wp-includes/class-wp-http-encoding.php',
     231    'WP_Http_Streams' => $baseDir . '/src/wp-includes/class-wp-http-streams.php',
     232    'WP_Image_Editor' => $baseDir . '/src/wp-includes/class-wp-image-editor.php',
     233    'WP_Image_Editor_GD' => $baseDir . '/src/wp-includes/class-wp-image-editor-gd.php',
     234    'WP_Image_Editor_Imagick' => $baseDir . '/src/wp-includes/class-wp-image-editor-imagick.php',
     235    'WP_Importer' => $baseDir . '/src/wp-admin/includes/class-wp-importer.php',
     236    'WP_Internal_Pointers' => $baseDir . '/src/wp-admin/includes/class-wp-internal-pointers.php',
     237    'WP_Links_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-links-list-table.php',
     238    'WP_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-list-table.php',
     239    'WP_Locale' => $baseDir . '/src/wp-includes/class-wp-locale.php',
     240    'WP_MS_Sites_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-ms-sites-list-table.php',
     241    'WP_MS_Themes_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-ms-themes-list-table.php',
     242    'WP_MS_Users_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-ms-users-list-table.php',
     243    'WP_MatchesMapRegex' => $baseDir . '/src/wp-includes/class-wp.php',
     244    'WP_Media_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-media-list-table.php',
     245    'WP_Meta_Query' => $baseDir . '/src/wp-includes/class-wp-meta-query.php',
     246    'WP_Metadata_Lazyloader' => $baseDir . '/src/wp-includes/class-wp-metadata-lazyloader.php',
     247    'WP_Nav_Menu_Widget' => $baseDir . '/src/wp-includes/widgets/class-wp-nav-menu-widget.php',
     248    'WP_Network' => $baseDir . '/src/wp-includes/class-wp-network.php',
     249    'WP_Network_Query' => $baseDir . '/src/wp-includes/class-wp-network-query.php',
     250    'WP_Object_Cache' => $baseDir . '/src/wp-includes/cache.php',
     251    'WP_Plugin_Install_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-plugin-install-list-table.php',
     252    'WP_Plugins_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-plugins-list-table.php',
     253    'WP_Post' => $baseDir . '/src/wp-includes/class-wp-post.php',
     254    'WP_Post_Comments_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-post-comments-list-table.php',
     255    'WP_Post_Type' => $baseDir . '/src/wp-includes/class-wp-post-type.php',
     256    'WP_Posts_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-posts-list-table.php',
     257    'WP_Press_This' => $baseDir . '/src/wp-admin/includes/class-wp-press-this.php',
     258    'WP_Query' => $baseDir . '/src/wp-includes/class-wp-query.php',
     259    'WP_REST_Request' => $baseDir . '/src/wp-includes/rest-api/class-wp-rest-request.php',
     260    'WP_REST_Response' => $baseDir . '/src/wp-includes/rest-api/class-wp-rest-response.php',
     261    'WP_REST_Server' => $baseDir . '/src/wp-includes/rest-api/class-wp-rest-server.php',
     262    'WP_Rewrite' => $baseDir . '/src/wp-includes/class-wp-rewrite.php',
     263    'WP_Role' => $baseDir . '/src/wp-includes/class-wp-role.php',
     264    'WP_Roles' => $baseDir . '/src/wp-includes/class-wp-roles.php',
     265    'WP_Screen' => $baseDir . '/src/wp-admin/includes/class-wp-screen.php',
     266    'WP_Scripts' => $baseDir . '/src/wp-includes/class.wp-scripts.php',
     267    'WP_Session_Tokens' => $baseDir . '/src/wp-includes/class-wp-session-tokens.php',
     268    'WP_SimplePie_File' => $baseDir . '/src/wp-includes/class-wp-simplepie-file.php',
     269    'WP_SimplePie_Sanitize_KSES' => $baseDir . '/src/wp-includes/class-wp-simplepie-sanitize-kses.php',
     270    'WP_Site' => $baseDir . '/src/wp-includes/class-wp-site.php',
     271    'WP_Site_Icon' => $baseDir . '/src/wp-admin/includes/class-wp-site-icon.php',
     272    'WP_Site_Query' => $baseDir . '/src/wp-includes/class-wp-site-query.php',
     273    'WP_Styles' => $baseDir . '/src/wp-includes/class.wp-styles.php',
     274    'WP_Tax_Query' => $baseDir . '/src/wp-includes/class-wp-tax-query.php',
     275    'WP_Term' => $baseDir . '/src/wp-includes/class-wp-term.php',
     276    'WP_Term_Query' => $baseDir . '/src/wp-includes/class-wp-term-query.php',
     277    'WP_Terms_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-terms-list-table.php',
     278    'WP_Text_Diff_Renderer_Table' => $baseDir . '/src/wp-includes/class-wp-text-diff-renderer-table.php',
     279    'WP_Text_Diff_Renderer_inline' => $baseDir . '/src/wp-includes/class-wp-text-diff-renderer-inline.php',
     280    'WP_Theme' => $baseDir . '/src/wp-includes/class-wp-theme.php',
     281    'WP_Theme_Install_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-theme-install-list-table.php',
     282    'WP_Themes_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-themes-list-table.php',
     283    'WP_Upgrader' => $baseDir . '/src/wp-admin/includes/class-wp-upgrader.php',
     284    'WP_Upgrader_Skin' => $baseDir . '/src/wp-admin/includes/class-wp-upgrader-skin.php',
     285    'WP_User' => $baseDir . '/src/wp-includes/class-wp-user.php',
     286    'WP_User_Meta_Session_Tokens' => $baseDir . '/src/wp-includes/class-wp-user-meta-session-tokens.php',
     287    'WP_User_Query' => $baseDir . '/src/wp-includes/class-wp-user-query.php',
     288    'WP_User_Search' => $baseDir . '/src/wp-admin/includes/deprecated/class-wp-user-search.php',
     289    'WP_Users_List_Table' => $baseDir . '/src/wp-admin/includes/class-wp-users-list-table.php',
     290    'WP_Widget' => $baseDir . '/src/wp-includes/class-wp-widget.php',
     291    'WP_Widget_Archives' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-archives.php',
     292    'WP_Widget_Area_Customize_Control' => $baseDir . '/src/wp-includes/customize/class-wp-widget-area-customize-control.php',
     293    'WP_Widget_Calendar' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-calendar.php',
     294    'WP_Widget_Categories' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-categories.php',
     295    'WP_Widget_Factory' => $baseDir . '/src/wp-includes/class-wp-widget-factory.php',
     296    'WP_Widget_Form_Customize_Control' => $baseDir . '/src/wp-includes/customize/class-wp-widget-form-customize-control.php',
     297    'WP_Widget_Links' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-links.php',
     298    'WP_Widget_Meta' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-meta.php',
     299    'WP_Widget_Pages' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-pages.php',
     300    'WP_Widget_RSS' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-rss.php',
     301    'WP_Widget_Recent_Comments' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-recent-comments.php',
     302    'WP_Widget_Recent_Posts' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-recent-posts.php',
     303    'WP_Widget_Search' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-search.php',
     304    'WP_Widget_Tag_Cloud' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-tag-cloud.php',
     305    'WP_Widget_Text' => $baseDir . '/src/wp-includes/widgets/class-wp-widget-text.php',
     306    'WP_oEmbed' => $baseDir . '/src/wp-includes/class-oembed.php',
     307    'WP_oEmbed_Controller' => $baseDir . '/src/wp-includes/class-wp-oembed-controller.php',
     308    'Walker' => $baseDir . '/src/wp-includes/class-wp-walker.php',
     309    'Walker_Category' => $baseDir . '/src/wp-includes/class-walker-category.php',
     310    'Walker_CategoryDropdown' => $baseDir . '/src/wp-includes/class-walker-category-dropdown.php',
     311    'Walker_Category_Checklist' => $baseDir . '/src/wp-admin/includes/class-walker-category-checklist.php',
     312    'Walker_Comment' => $baseDir . '/src/wp-includes/class-walker-comment.php',
     313    'Walker_Nav_Menu' => $baseDir . '/src/wp-includes/class-walker-nav-menu.php',
     314    'Walker_Nav_Menu_Checklist' => $baseDir . '/src/wp-admin/includes/class-walker-nav-menu-checklist.php',
     315    'Walker_Nav_Menu_Edit' => $baseDir . '/src/wp-admin/includes/class-walker-nav-menu-edit.php',
     316    'Walker_Page' => $baseDir . '/src/wp-includes/class-walker-page.php',
     317    'Walker_PageDropdown' => $baseDir . '/src/wp-includes/class-walker-page-dropdown.php',
     318    '_WP_Dependency' => $baseDir . '/src/wp-includes/class.wp-dependencies.php',
     319    '_WP_Editors' => $baseDir . '/src/wp-includes/class-wp-editor.php',
     320    '_WP_List_Table_Compat' => $baseDir . '/src/wp-admin/includes/list-table.php',
     321    'ftp' => $baseDir . '/src/wp-admin/includes/class-ftp-pure.php',
     322    'ftp_base' => $baseDir . '/src/wp-admin/includes/class-ftp.php',
     323    'getID3' => $baseDir . '/src/wp-includes/ID3/getid3.php',
     324    'getid3_ac3' => $baseDir . '/src/wp-includes/ID3/module.audio.ac3.php',
     325    'getid3_apetag' => $baseDir . '/src/wp-includes/ID3/module.tag.apetag.php',
     326    'getid3_asf' => $baseDir . '/src/wp-includes/ID3/module.audio-video.asf.php',
     327    'getid3_dts' => $baseDir . '/src/wp-includes/ID3/module.audio.dts.php',
     328    'getid3_exception' => $baseDir . '/src/wp-includes/ID3/getid3.php',
     329    'getid3_flac' => $baseDir . '/src/wp-includes/ID3/module.audio.flac.php',
     330    'getid3_flv' => $baseDir . '/src/wp-includes/ID3/module.audio-video.flv.php',
     331    'getid3_handler' => $baseDir . '/src/wp-includes/ID3/getid3.php',
     332    'getid3_id3v1' => $baseDir . '/src/wp-includes/ID3/module.tag.id3v1.php',
     333    'getid3_id3v2' => $baseDir . '/src/wp-includes/ID3/module.tag.id3v2.php',
     334    'getid3_lib' => $baseDir . '/src/wp-includes/ID3/getid3.lib.php',
     335    'getid3_lyrics3' => $baseDir . '/src/wp-includes/ID3/module.tag.lyrics3.php',
     336    'getid3_matroska' => $baseDir . '/src/wp-includes/ID3/module.audio-video.matroska.php',
     337    'getid3_mp3' => $baseDir . '/src/wp-includes/ID3/module.audio.mp3.php',
     338    'getid3_ogg' => $baseDir . '/src/wp-includes/ID3/module.audio.ogg.php',
     339    'getid3_quicktime' => $baseDir . '/src/wp-includes/ID3/module.audio-video.quicktime.php',
     340    'getid3_riff' => $baseDir . '/src/wp-includes/ID3/module.audio-video.riff.php',
     341    'phpmailerException' => $baseDir . '/src/wp-includes/class-phpmailer.php',
     342    'wp_atom_server' => $baseDir . '/src/wp-includes/deprecated/class-wp-atom-server.php',
     343    'wp_xmlrpc_server' => $baseDir . '/src/wp-includes/class-wp-xmlrpc-server.php',
     344    'wpdb' => $baseDir . '/src/wp-includes/wp-db.php',
     345);
  • src/vendor/composer/autoload_files.php

     
     1<?php
     2
     3// autoload_files.php @generated by Composer
     4
     5$vendorDir = dirname(dirname(__FILE__));
     6$baseDir = dirname(dirname($vendorDir));
     7
     8return array(
     9    'cb6228b7c53f0598f326c1ebfaf7cb40' => $baseDir . '/src/wp-includes/load.php',
     10    '81454384d526fb0797c1b56b296dd56f' => $baseDir . '/src/wp-includes/default-constants.php',
     11    '4dc4c9ccdfb2ed81b6da2860d7af166d' => $baseDir . '/src/wp-includes/plugin.php',
     12    '9bb622bd6dd1bc15a4d83fc2393d896c' => $baseDir . '/src/wp-includes/functions.php',
     13    '83ccf2f2f33336a7285c284773816214' => $baseDir . '/src/wp-includes/default-filters.php',
     14    'eff1c456186ac33ca0bac4889284de21' => $baseDir . '/src/wp-includes/formatting.php',
     15    'e00abf88106f8ed0b416706025207f32' => $baseDir . '/src/wp-includes/capabilities.php',
     16    '184e8cafa4251584a3e6d51b17d2f6d4' => $baseDir . '/src/wp-includes/query.php',
     17    '54cdb1ecdba052ca31eb6fe6b26b5fa0' => $baseDir . '/src/wp-includes/theme.php',
     18    '2120a0ad608ca2e6e285a7602c774aea' => $baseDir . '/src/wp-includes/template.php',
     19    'ff48408a32ccdde7aed1cd697597d7a5' => $baseDir . '/src/wp-includes/user.php',
     20    '4df55d38d577f4ac32f3b7fbb93c0d41' => $baseDir . '/src/wp-includes/meta.php',
     21    '84d2858eaacb7d529cfd3cb9f0aae3f1' => $baseDir . '/src/wp-includes/general-template.php',
     22    '97b71049ed2ecd7932d694f09fe6ec87' => $baseDir . '/src/wp-includes/link-template.php',
     23    'd2f473b684affa5d4a7774ae73968b77' => $baseDir . '/src/wp-includes/author-template.php',
     24    '6e49526a1151cc242aa4a04f6d6d40f1' => $baseDir . '/src/wp-includes/post.php',
     25    'b8f5ce0168dbdd2a4954b8878b67f02b' => $baseDir . '/src/wp-includes/post-template.php',
     26    '7083e1a75d6d6c29bece9155e90d2bbf' => $baseDir . '/src/wp-includes/revision.php',
     27    '8f45fe5cd5805ddae2d3d9f32f4b080d' => $baseDir . '/src/wp-includes/post-formats.php',
     28    'ba2892029cbb11104415ac0020c2368b' => $baseDir . '/src/wp-includes/post-thumbnail-template.php',
     29    'a7a8a2965ccb5b01ff7c41e8f971e177' => $baseDir . '/src/wp-includes/category.php',
     30    'ef879d4c1dae33586157f6aa0622f2ea' => $baseDir . '/src/wp-includes/category-template.php',
     31    '2d3600caafab6b6088052b19f61e9f77' => $baseDir . '/src/wp-includes/comment.php',
     32    '5f67b64106ed018b551a809f9596caac' => $baseDir . '/src/wp-includes/comment-template.php',
     33    'a89b6a24c8f960094a70a8b4edbcce51' => $baseDir . '/src/wp-includes/rewrite.php',
     34    '286f5f8e348cd16a93bef6f7aa413baa' => $baseDir . '/src/wp-includes/feed.php',
     35    '01e61f8d97b655b604e0f9b230c486b7' => $baseDir . '/src/wp-includes/bookmark.php',
     36    '2bd943eccadb1066425d67b7b648029d' => $baseDir . '/src/wp-includes/bookmark-template.php',
     37    '0f0285cd831ae3fed65f68e7b14b0f48' => $baseDir . '/src/wp-includes/kses.php',
     38    'bf5b09070f99cafddb3b2f9f462510f3' => $baseDir . '/src/wp-includes/cron.php',
     39    '073322f4d5f485776438e7705d2ed7bc' => $baseDir . '/src/wp-includes/deprecated.php',
     40    'ef04203a3e8fd7fc6245411bbc5496f5' => $baseDir . '/src/wp-includes/script-loader.php',
     41    '0aefd7c228f090ce28e12b8e034ec378' => $baseDir . '/src/wp-includes/taxonomy.php',
     42    'a317607e6e3cd4af0156a11a5e7b98de' => $baseDir . '/src/wp-includes/update.php',
     43    'a4b4ef2c42e00af9f8943244602e3193' => $baseDir . '/src/wp-includes/canonical.php',
     44    'dd586fcf731623f3210062e72d8628f1' => $baseDir . '/src/wp-includes/shortcodes.php',
     45    'b63df7ce389323096e4c5c6c2bcfd909' => $baseDir . '/src/wp-includes/embed.php',
     46    '2064adb683bc5a40f302b62af9006d9d' => $baseDir . '/src/wp-includes/media.php',
     47    '8bcb074c2c35804f2d58a4b1a4f0d74b' => $baseDir . '/src/wp-includes/http.php',
     48    'cab119ba9ecb923f4269e51138513374' => $baseDir . '/src/wp-includes/class-http.php',
     49    '650b2ea973d4bab5f1388da587202d6b' => $baseDir . '/src/wp-includes/widgets.php',
     50    '622a542295069c96076ba9647cd83549' => $baseDir . '/src/wp-includes/nav-menu.php',
     51    'f599386fa42917179d4e750c28730b4c' => $baseDir . '/src/wp-includes/nav-menu-template.php',
     52    '8b69952a2528a8b2bb656b41f5b92f6f' => $baseDir . '/src/wp-includes/admin-bar.php',
     53    '6a9ab2b27e63680066ba5e7c50d8d364' => $baseDir . '/src/wp-includes/rest-api.php',
     54    '6620f2e7be4d15805651f0caca219bd4' => $baseDir . '/src/wp-includes/l10n.php',
     55);
  • src/vendor/composer/autoload_namespaces.php

     
     1<?php
     2
     3// autoload_namespaces.php @generated by Composer
     4
     5$vendorDir = dirname(dirname(__FILE__));
     6$baseDir = dirname(dirname($vendorDir));
     7
     8return array(
     9    'xrstf\\Composer52' => array($vendorDir . '/xrstf/composer-php52/lib'),
     10);
  • src/vendor/composer/autoload_psr4.php

     
     1<?php
     2
     3// autoload_psr4.php @generated by Composer
     4
     5$vendorDir = dirname(dirname(__FILE__));
     6$baseDir = dirname(dirname($vendorDir));
     7
     8return array(
     9);
  • src/vendor/composer/autoload_real.php

     
     1<?php
     2
     3// autoload_real.php @generated by Composer
     4
     5class ComposerAutoloaderInit5f802e6773748e86f907e3d9bc7d98de
     6{
     7    private static $loader;
     8
     9    public static function loadClassLoader($class)
     10    {
     11        if ('Composer\Autoload\ClassLoader' === $class) {
     12            require __DIR__ . '/ClassLoader.php';
     13        }
     14    }
     15
     16    public static function getLoader()
     17    {
     18        if (null !== self::$loader) {
     19            return self::$loader;
     20        }
     21
     22        spl_autoload_register(array('ComposerAutoloaderInit5f802e6773748e86f907e3d9bc7d98de', 'loadClassLoader'), true, true);
     23        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     24        spl_autoload_unregister(array('ComposerAutoloaderInit5f802e6773748e86f907e3d9bc7d98de', 'loadClassLoader'));
     25
     26        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
     27        if ($useStaticLoader) {
     28            require_once __DIR__ . '/autoload_static.php';
     29
     30            call_user_func(\Composer\Autoload\ComposerStaticInit5f802e6773748e86f907e3d9bc7d98de::getInitializer($loader));
     31        } else {
     32            $map = require __DIR__ . '/autoload_namespaces.php';
     33            foreach ($map as $namespace => $path) {
     34                $loader->set($namespace, $path);
     35            }
     36
     37            $map = require __DIR__ . '/autoload_psr4.php';
     38            foreach ($map as $namespace => $path) {
     39                $loader->setPsr4($namespace, $path);
     40            }
     41
     42            $classMap = require __DIR__ . '/autoload_classmap.php';
     43            if ($classMap) {
     44                $loader->addClassMap($classMap);
     45            }
     46        }
     47
     48        $loader->register(true);
     49
     50        if ($useStaticLoader) {
     51            $includeFiles = Composer\Autoload\ComposerStaticInit5f802e6773748e86f907e3d9bc7d98de::$files;
     52        } else {
     53            $includeFiles = require __DIR__ . '/autoload_files.php';
     54        }
     55        foreach ($includeFiles as $fileIdentifier => $file) {
     56            composerRequire5f802e6773748e86f907e3d9bc7d98de($fileIdentifier, $file);
     57        }
     58
     59        return $loader;
     60    }
     61}
     62
     63function composerRequire5f802e6773748e86f907e3d9bc7d98de($fileIdentifier, $file)
     64{
     65    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     66        require $file;
     67
     68        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     69    }
     70}
  • src/vendor/composer/autoload_real_52.php

     
     1<?php
     2
     3// autoload_real_52.php generated by xrstf/composer-php52
     4
     5class ComposerAutoloaderInit859d6e4143f0b7a705932050735114ea {
     6        private static $loader;
     7
     8        public static function loadClassLoader($class) {
     9                if ('xrstf_Composer52_ClassLoader' === $class) {
     10                        require dirname(__FILE__).'/ClassLoader52.php';
     11                }
     12        }
     13
     14        /**
     15         * @return xrstf_Composer52_ClassLoader
     16         */
     17        public static function getLoader() {
     18                if (null !== self::$loader) {
     19                        return self::$loader;
     20                }
     21
     22                spl_autoload_register(array('ComposerAutoloaderInit859d6e4143f0b7a705932050735114ea', 'loadClassLoader'), true /*, true */);
     23                self::$loader = $loader = new xrstf_Composer52_ClassLoader();
     24                spl_autoload_unregister(array('ComposerAutoloaderInit859d6e4143f0b7a705932050735114ea', 'loadClassLoader'));
     25
     26                $vendorDir = dirname(dirname(__FILE__));
     27                $baseDir   = dirname(dirname($vendorDir));
     28                $dir       = dirname(__FILE__);
     29
     30                $map = require $dir.'/autoload_namespaces.php';
     31                foreach ($map as $namespace => $path) {
     32                        $loader->add($namespace, $path);
     33                }
     34
     35                $classMap = require $dir.'/autoload_classmap.php';
     36                if ($classMap) {
     37                        $loader->addClassMap($classMap);
     38                }
     39
     40                $loader->register(true);
     41
     42                require $baseDir . '/src/wp-includes/load.php';
     43                require $baseDir . '/src/wp-includes/default-constants.php';
     44                require $baseDir . '/src/wp-includes/plugin.php';
     45                require $baseDir . '/src/wp-includes/functions.php';
     46                require $baseDir . '/src/wp-includes/default-filters.php';
     47                require $baseDir . '/src/wp-includes/formatting.php';
     48                require $baseDir . '/src/wp-includes/capabilities.php';
     49                require $baseDir . '/src/wp-includes/query.php';
     50                require $baseDir . '/src/wp-includes/theme.php';
     51                require $baseDir . '/src/wp-includes/template.php';
     52                require $baseDir . '/src/wp-includes/user.php';
     53                require $baseDir . '/src/wp-includes/meta.php';
     54                require $baseDir . '/src/wp-includes/general-template.php';
     55                require $baseDir . '/src/wp-includes/link-template.php';
     56                require $baseDir . '/src/wp-includes/author-template.php';
     57                require $baseDir . '/src/wp-includes/post.php';
     58                require $baseDir . '/src/wp-includes/post-template.php';
     59                require $baseDir . '/src/wp-includes/revision.php';
     60                require $baseDir . '/src/wp-includes/post-formats.php';
     61                require $baseDir . '/src/wp-includes/post-thumbnail-template.php';
     62                require $baseDir . '/src/wp-includes/category.php';
     63                require $baseDir . '/src/wp-includes/category-template.php';
     64                require $baseDir . '/src/wp-includes/comment.php';
     65                require $baseDir . '/src/wp-includes/comment-template.php';
     66                require $baseDir . '/src/wp-includes/rewrite.php';
     67                require $baseDir . '/src/wp-includes/feed.php';
     68                require $baseDir . '/src/wp-includes/bookmark.php';
     69                require $baseDir . '/src/wp-includes/bookmark-template.php';
     70                require $baseDir . '/src/wp-includes/kses.php';
     71                require $baseDir . '/src/wp-includes/cron.php';
     72                require $baseDir . '/src/wp-includes/deprecated.php';
     73                require $baseDir . '/src/wp-includes/script-loader.php';
     74                require $baseDir . '/src/wp-includes/taxonomy.php';
     75                require $baseDir . '/src/wp-includes/update.php';
     76                require $baseDir . '/src/wp-includes/canonical.php';
     77                require $baseDir . '/src/wp-includes/shortcodes.php';
     78                require $baseDir . '/src/wp-includes/embed.php';
     79                require $baseDir . '/src/wp-includes/media.php';
     80                require $baseDir . '/src/wp-includes/http.php';
     81                require $baseDir . '/src/wp-includes/class-http.php';
     82                require $baseDir . '/src/wp-includes/widgets.php';
     83                require $baseDir . '/src/wp-includes/nav-menu.php';
     84                require $baseDir . '/src/wp-includes/nav-menu-template.php';
     85                require $baseDir . '/src/wp-includes/admin-bar.php';
     86                require $baseDir . '/src/wp-includes/rest-api.php';
     87                require $baseDir . '/src/wp-includes/l10n.php';
     88
     89                return $loader;
     90        }
     91}
  • src/vendor/composer/autoload_static.php

     
     1<?php
     2
     3// autoload_static.php @generated by Composer
     4
     5namespace Composer\Autoload;
     6
     7class ComposerStaticInit5f802e6773748e86f907e3d9bc7d98de
     8{
     9    public static $files = array (
     10        'cb6228b7c53f0598f326c1ebfaf7cb40' => __DIR__ . '/../../..' . '/src/wp-includes/load.php',
     11        '81454384d526fb0797c1b56b296dd56f' => __DIR__ . '/../../..' . '/src/wp-includes/default-constants.php',
     12        '4dc4c9ccdfb2ed81b6da2860d7af166d' => __DIR__ . '/../../..' . '/src/wp-includes/plugin.php',
     13        '9bb622bd6dd1bc15a4d83fc2393d896c' => __DIR__ . '/../../..' . '/src/wp-includes/functions.php',
     14        '83ccf2f2f33336a7285c284773816214' => __DIR__ . '/../../..' . '/src/wp-includes/default-filters.php',
     15        'eff1c456186ac33ca0bac4889284de21' => __DIR__ . '/../../..' . '/src/wp-includes/formatting.php',
     16        'e00abf88106f8ed0b416706025207f32' => __DIR__ . '/../../..' . '/src/wp-includes/capabilities.php',
     17        '184e8cafa4251584a3e6d51b17d2f6d4' => __DIR__ . '/../../..' . '/src/wp-includes/query.php',
     18        '54cdb1ecdba052ca31eb6fe6b26b5fa0' => __DIR__ . '/../../..' . '/src/wp-includes/theme.php',
     19        '2120a0ad608ca2e6e285a7602c774aea' => __DIR__ . '/../../..' . '/src/wp-includes/template.php',
     20        'ff48408a32ccdde7aed1cd697597d7a5' => __DIR__ . '/../../..' . '/src/wp-includes/user.php',
     21        '4df55d38d577f4ac32f3b7fbb93c0d41' => __DIR__ . '/../../..' . '/src/wp-includes/meta.php',
     22        '84d2858eaacb7d529cfd3cb9f0aae3f1' => __DIR__ . '/../../..' . '/src/wp-includes/general-template.php',
     23        '97b71049ed2ecd7932d694f09fe6ec87' => __DIR__ . '/../../..' . '/src/wp-includes/link-template.php',
     24        'd2f473b684affa5d4a7774ae73968b77' => __DIR__ . '/../../..' . '/src/wp-includes/author-template.php',
     25        '6e49526a1151cc242aa4a04f6d6d40f1' => __DIR__ . '/../../..' . '/src/wp-includes/post.php',
     26        'b8f5ce0168dbdd2a4954b8878b67f02b' => __DIR__ . '/../../..' . '/src/wp-includes/post-template.php',
     27        '7083e1a75d6d6c29bece9155e90d2bbf' => __DIR__ . '/../../..' . '/src/wp-includes/revision.php',
     28        '8f45fe5cd5805ddae2d3d9f32f4b080d' => __DIR__ . '/../../..' . '/src/wp-includes/post-formats.php',
     29        'ba2892029cbb11104415ac0020c2368b' => __DIR__ . '/../../..' . '/src/wp-includes/post-thumbnail-template.php',
     30        'a7a8a2965ccb5b01ff7c41e8f971e177' => __DIR__ . '/../../..' . '/src/wp-includes/category.php',
     31        'ef879d4c1dae33586157f6aa0622f2ea' => __DIR__ . '/../../..' . '/src/wp-includes/category-template.php',
     32        '2d3600caafab6b6088052b19f61e9f77' => __DIR__ . '/../../..' . '/src/wp-includes/comment.php',
     33        '5f67b64106ed018b551a809f9596caac' => __DIR__ . '/../../..' . '/src/wp-includes/comment-template.php',
     34        'a89b6a24c8f960094a70a8b4edbcce51' => __DIR__ . '/../../..' . '/src/wp-includes/rewrite.php',
     35        '286f5f8e348cd16a93bef6f7aa413baa' => __DIR__ . '/../../..' . '/src/wp-includes/feed.php',
     36        '01e61f8d97b655b604e0f9b230c486b7' => __DIR__ . '/../../..' . '/src/wp-includes/bookmark.php',
     37        '2bd943eccadb1066425d67b7b648029d' => __DIR__ . '/../../..' . '/src/wp-includes/bookmark-template.php',
     38        '0f0285cd831ae3fed65f68e7b14b0f48' => __DIR__ . '/../../..' . '/src/wp-includes/kses.php',
     39        'bf5b09070f99cafddb3b2f9f462510f3' => __DIR__ . '/../../..' . '/src/wp-includes/cron.php',
     40        '073322f4d5f485776438e7705d2ed7bc' => __DIR__ . '/../../..' . '/src/wp-includes/deprecated.php',
     41        'ef04203a3e8fd7fc6245411bbc5496f5' => __DIR__ . '/../../..' . '/src/wp-includes/script-loader.php',
     42        '0aefd7c228f090ce28e12b8e034ec378' => __DIR__ . '/../../..' . '/src/wp-includes/taxonomy.php',
     43        'a317607e6e3cd4af0156a11a5e7b98de' => __DIR__ . '/../../..' . '/src/wp-includes/update.php',
     44        'a4b4ef2c42e00af9f8943244602e3193' => __DIR__ . '/../../..' . '/src/wp-includes/canonical.php',
     45        'dd586fcf731623f3210062e72d8628f1' => __DIR__ . '/../../..' . '/src/wp-includes/shortcodes.php',
     46        'b63df7ce389323096e4c5c6c2bcfd909' => __DIR__ . '/../../..' . '/src/wp-includes/embed.php',
     47        '2064adb683bc5a40f302b62af9006d9d' => __DIR__ . '/../../..' . '/src/wp-includes/media.php',
     48        '8bcb074c2c35804f2d58a4b1a4f0d74b' => __DIR__ . '/../../..' . '/src/wp-includes/http.php',
     49        'cab119ba9ecb923f4269e51138513374' => __DIR__ . '/../../..' . '/src/wp-includes/class-http.php',
     50        '650b2ea973d4bab5f1388da587202d6b' => __DIR__ . '/../../..' . '/src/wp-includes/widgets.php',
     51        '622a542295069c96076ba9647cd83549' => __DIR__ . '/../../..' . '/src/wp-includes/nav-menu.php',
     52        'f599386fa42917179d4e750c28730b4c' => __DIR__ . '/../../..' . '/src/wp-includes/nav-menu-template.php',
     53        '8b69952a2528a8b2bb656b41f5b92f6f' => __DIR__ . '/../../..' . '/src/wp-includes/admin-bar.php',
     54        '6a9ab2b27e63680066ba5e7c50d8d364' => __DIR__ . '/../../..' . '/src/wp-includes/rest-api.php',
     55        '6620f2e7be4d15805651f0caca219bd4' => __DIR__ . '/../../..' . '/src/wp-includes/l10n.php',
     56    );
     57
     58    public static $prefixesPsr0 = array (
     59        'x' =>
     60        array (
     61            'xrstf\\Composer52' =>
     62            array (
     63                0 => __DIR__ . '/..' . '/xrstf/composer-php52/lib',
     64            ),
     65        ),
     66    );
     67
     68    public static $classMap = array (
     69        'AMFReader' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio-video.flv.php',
     70        'AMFStream' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio-video.flv.php',
     71        'AVCSequenceParameterSetReader' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio-video.flv.php',
     72        'AtomEntry' => __DIR__ . '/../../..' . '/src/wp-includes/atomlib.php',
     73        'AtomFeed' => __DIR__ . '/../../..' . '/src/wp-includes/atomlib.php',
     74        'AtomParser' => __DIR__ . '/../../..' . '/src/wp-includes/atomlib.php',
     75        'Automatic_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-automatic-upgrader-skin.php',
     76        'Bulk_Plugin_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php',
     77        'Bulk_Theme_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php',
     78        'Bulk_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-bulk-upgrader-skin.php',
     79        'Core_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-core-upgrader.php',
     80        'Custom_Background' => __DIR__ . '/../../..' . '/src/wp-admin/custom-background.php',
     81        'Custom_Image_Header' => __DIR__ . '/../../..' . '/src/wp-admin/custom-header.php',
     82        'Error' => __DIR__ . '/../../..' . '/src/wp-includes/random_compat/error_polyfill.php',
     83        'File_Upload_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-file-upload-upgrader.php',
     84        'Gettext_Translations' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/translations.php',
     85        'IXR_Base64' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     86        'IXR_Client' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     87        'IXR_ClientMulticall' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     88        'IXR_Date' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     89        'IXR_Error' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     90        'IXR_IntrospectionServer' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     91        'IXR_Message' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     92        'IXR_Request' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     93        'IXR_Server' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     94        'IXR_Value' => __DIR__ . '/../../..' . '/src/wp-includes/class-IXR.php',
     95        'JsonSerializable' => __DIR__ . '/../../..' . '/src/wp-includes/compat.php',
     96        'Language_Pack_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-language-pack-upgrader.php',
     97        'Language_Pack_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-language-pack-upgrader-skin.php',
     98        'MO' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/mo.php',
     99        'MagpieRSS' => __DIR__ . '/../../..' . '/src/wp-includes/rss.php',
     100        'NOOP_Translations' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/translations.php',
     101        'PHPMailer' => __DIR__ . '/../../..' . '/src/wp-includes/class-phpmailer.php',
     102        'PO' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/po.php',
     103        'POMO_CachedFileReader' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/streams.php',
     104        'POMO_CachedIntFileReader' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/streams.php',
     105        'POMO_FileReader' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/streams.php',
     106        'POMO_Reader' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/streams.php',
     107        'POMO_StringReader' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/streams.php',
     108        'POP3' => __DIR__ . '/../../..' . '/src/wp-includes/class-pop3.php',
     109        'PasswordHash' => __DIR__ . '/../../..' . '/src/wp-includes/class-phpass.php',
     110        'PclZip' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-pclzip.php',
     111        'Plugin_Installer_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-plugin-installer-skin.php',
     112        'Plugin_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-plugin-upgrader.php',
     113        'Plugin_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-plugin-upgrader-skin.php',
     114        'RSSCache' => __DIR__ . '/../../..' . '/src/wp-includes/rss.php',
     115        'Requests' => __DIR__ . '/../../..' . '/src/wp-includes/class-requests.php',
     116        'Requests_Auth' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Auth.php',
     117        'Requests_Auth_Basic' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Auth/Basic.php',
     118        'Requests_Cookie' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Cookie.php',
     119        'Requests_Cookie_Jar' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Cookie/Jar.php',
     120        'Requests_Exception' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception.php',
     121        'Requests_Exception_HTTP' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP.php',
     122        'Requests_Exception_HTTP_304' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/304.php',
     123        'Requests_Exception_HTTP_305' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/305.php',
     124        'Requests_Exception_HTTP_306' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/306.php',
     125        'Requests_Exception_HTTP_400' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/400.php',
     126        'Requests_Exception_HTTP_401' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/401.php',
     127        'Requests_Exception_HTTP_402' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/402.php',
     128        'Requests_Exception_HTTP_403' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/403.php',
     129        'Requests_Exception_HTTP_404' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/404.php',
     130        'Requests_Exception_HTTP_405' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/405.php',
     131        'Requests_Exception_HTTP_406' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/406.php',
     132        'Requests_Exception_HTTP_407' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/407.php',
     133        'Requests_Exception_HTTP_408' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/408.php',
     134        'Requests_Exception_HTTP_409' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/409.php',
     135        'Requests_Exception_HTTP_410' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/410.php',
     136        'Requests_Exception_HTTP_411' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/411.php',
     137        'Requests_Exception_HTTP_412' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/412.php',
     138        'Requests_Exception_HTTP_413' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/413.php',
     139        'Requests_Exception_HTTP_414' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/414.php',
     140        'Requests_Exception_HTTP_415' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/415.php',
     141        'Requests_Exception_HTTP_416' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/416.php',
     142        'Requests_Exception_HTTP_417' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/417.php',
     143        'Requests_Exception_HTTP_418' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/418.php',
     144        'Requests_Exception_HTTP_428' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/428.php',
     145        'Requests_Exception_HTTP_429' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/429.php',
     146        'Requests_Exception_HTTP_431' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/431.php',
     147        'Requests_Exception_HTTP_500' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/500.php',
     148        'Requests_Exception_HTTP_501' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/501.php',
     149        'Requests_Exception_HTTP_502' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/502.php',
     150        'Requests_Exception_HTTP_503' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/503.php',
     151        'Requests_Exception_HTTP_504' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/504.php',
     152        'Requests_Exception_HTTP_505' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/505.php',
     153        'Requests_Exception_HTTP_511' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/511.php',
     154        'Requests_Exception_HTTP_Unknown' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/HTTP/Unknown.php',
     155        'Requests_Exception_Transport' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/Transport.php',
     156        'Requests_Exception_Transport_cURL' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Exception/Transport/cURL.php',
     157        'Requests_Hooker' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Hooker.php',
     158        'Requests_Hooks' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Hooks.php',
     159        'Requests_IDNAEncoder' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/IDNAEncoder.php',
     160        'Requests_IPv6' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/IPv6.php',
     161        'Requests_IRI' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/IRI.php',
     162        'Requests_Proxy' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Proxy.php',
     163        'Requests_Proxy_HTTP' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Proxy/HTTP.php',
     164        'Requests_Response' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Response.php',
     165        'Requests_Response_Headers' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Response/Headers.php',
     166        'Requests_SSL' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/SSL.php',
     167        'Requests_Session' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Session.php',
     168        'Requests_Transport' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Transport.php',
     169        'Requests_Transport_cURL' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Transport/cURL.php',
     170        'Requests_Transport_fsockopen' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Transport/fsockopen.php',
     171        'Requests_Utility_CaseInsensitiveDictionary' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php',
     172        'Requests_Utility_FilteredIterator' => __DIR__ . '/../../..' . '/src/wp-includes/Requests/Utility/FilteredIterator.php',
     173        'SMTP' => __DIR__ . '/../../..' . '/src/wp-includes/class-smtp.php',
     174        'Services_JSON' => __DIR__ . '/../../..' . '/src/wp-includes/class-json.php',
     175        'Services_JSON_Error' => __DIR__ . '/../../..' . '/src/wp-includes/class-json.php',
     176        'SimplePie' => __DIR__ . '/../../..' . '/src/wp-includes/class-simplepie.php',
     177        'SimplePie_Author' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Author.php',
     178        'SimplePie_Cache' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Cache.php',
     179        'SimplePie_Cache_Base' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Cache/Base.php',
     180        'SimplePie_Cache_DB' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Cache/DB.php',
     181        'SimplePie_Cache_File' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Cache/File.php',
     182        'SimplePie_Cache_Memcache' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Cache/Memcache.php',
     183        'SimplePie_Cache_MySQL' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Cache/MySQL.php',
     184        'SimplePie_Caption' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Caption.php',
     185        'SimplePie_Category' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Category.php',
     186        'SimplePie_Content_Type_Sniffer' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Content/Type/Sniffer.php',
     187        'SimplePie_Copyright' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Copyright.php',
     188        'SimplePie_Core' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Core.php',
     189        'SimplePie_Credit' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Credit.php',
     190        'SimplePie_Decode_HTML_Entities' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Decode/HTML/Entities.php',
     191        'SimplePie_Enclosure' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Enclosure.php',
     192        'SimplePie_Exception' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Exception.php',
     193        'SimplePie_File' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/File.php',
     194        'SimplePie_HTTP_Parser' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/HTTP/Parser.php',
     195        'SimplePie_IRI' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/IRI.php',
     196        'SimplePie_Item' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Item.php',
     197        'SimplePie_Locator' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Locator.php',
     198        'SimplePie_Misc' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Misc.php',
     199        'SimplePie_Net_IPv6' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Net/IPv6.php',
     200        'SimplePie_Parse_Date' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Parse/Date.php',
     201        'SimplePie_Parser' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Parser.php',
     202        'SimplePie_Rating' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Rating.php',
     203        'SimplePie_Registry' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Registry.php',
     204        'SimplePie_Restriction' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Restriction.php',
     205        'SimplePie_Sanitize' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Sanitize.php',
     206        'SimplePie_Source' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/Source.php',
     207        'SimplePie_XML_Declaration_Parser' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/XML/Declaration/Parser.php',
     208        'SimplePie_gzdecode' => __DIR__ . '/../../..' . '/src/wp-includes/SimplePie/gzdecode.php',
     209        'Snoopy' => __DIR__ . '/../../..' . '/src/wp-includes/class-snoopy.php',
     210        'Text_Diff' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff.php',
     211        'Text_Diff_Engine_native' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff/Engine/native.php',
     212        'Text_Diff_Engine_shell' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff/Engine/shell.php',
     213        'Text_Diff_Engine_string' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff/Engine/string.php',
     214        'Text_Diff_Engine_xdiff' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff/Engine/xdiff.php',
     215        'Text_Diff_Op' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff.php',
     216        'Text_Diff_Op_add' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff.php',
     217        'Text_Diff_Op_change' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff.php',
     218        'Text_Diff_Op_copy' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff.php',
     219        'Text_Diff_Op_delete' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff.php',
     220        'Text_Diff_Renderer' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff/Renderer.php',
     221        'Text_Diff_Renderer_inline' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff/Renderer/inline.php',
     222        'Text_MappedDiff' => __DIR__ . '/../../..' . '/src/wp-includes/Text/Diff.php',
     223        'Theme_Installer_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-theme-installer-skin.php',
     224        'Theme_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-theme-upgrader.php',
     225        'Theme_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-theme-upgrader-skin.php',
     226        'Translation_Entry' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/entry.php',
     227        'Translations' => __DIR__ . '/../../..' . '/src/wp-includes/pomo/translations.php',
     228        'TypeError' => __DIR__ . '/../../..' . '/src/wp-includes/random_compat/error_polyfill.php',
     229        'WP' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp.php',
     230        'WP_Admin_Bar' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-admin-bar.php',
     231        'WP_Ajax_Response' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-ajax-response.php',
     232        'WP_Ajax_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-ajax-upgrader-skin.php',
     233        'WP_Automatic_Updater' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-automatic-updater.php',
     234        'WP_Comment' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-comment.php',
     235        'WP_Comment_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-comment-query.php',
     236        'WP_Comments_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-comments-list-table.php',
     237        'WP_Customize_Background_Image_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-background-image-control.php',
     238        'WP_Customize_Background_Image_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-background-image-setting.php',
     239        'WP_Customize_Color_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-color-control.php',
     240        'WP_Customize_Control' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-control.php',
     241        'WP_Customize_Cropped_Image_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-cropped-image-control.php',
     242        'WP_Customize_Filter_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-filter-setting.php',
     243        'WP_Customize_Header_Image_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-header-image-control.php',
     244        'WP_Customize_Header_Image_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-header-image-setting.php',
     245        'WP_Customize_Image_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-image-control.php',
     246        'WP_Customize_Manager' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-manager.php',
     247        'WP_Customize_Media_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-media-control.php',
     248        'WP_Customize_Nav_Menu_Auto_Add_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php',
     249        'WP_Customize_Nav_Menu_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-control.php',
     250        'WP_Customize_Nav_Menu_Item_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php',
     251        'WP_Customize_Nav_Menu_Item_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php',
     252        'WP_Customize_Nav_Menu_Location_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-location-control.php',
     253        'WP_Customize_Nav_Menu_Name_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-name-control.php',
     254        'WP_Customize_Nav_Menu_Section' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-section.php',
     255        'WP_Customize_Nav_Menu_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php',
     256        'WP_Customize_Nav_Menus' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-nav-menus.php',
     257        'WP_Customize_Nav_Menus_Panel' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-nav-menus-panel.php',
     258        'WP_Customize_New_Menu_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-new-menu-control.php',
     259        'WP_Customize_New_Menu_Section' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-new-menu-section.php',
     260        'WP_Customize_Panel' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-panel.php',
     261        'WP_Customize_Partial' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-partial.php',
     262        'WP_Customize_Section' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-section.php',
     263        'WP_Customize_Selective_Refresh' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-selective-refresh.php',
     264        'WP_Customize_Setting' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-setting.php',
     265        'WP_Customize_Sidebar_Section' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-sidebar-section.php',
     266        'WP_Customize_Site_Icon_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-site-icon-control.php',
     267        'WP_Customize_Theme_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-theme-control.php',
     268        'WP_Customize_Themes_Section' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-themes-section.php',
     269        'WP_Customize_Upload_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-customize-upload-control.php',
     270        'WP_Customize_Widgets' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-customize-widgets.php',
     271        'WP_Date_Query' => __DIR__ . '/../../..' . '/src/wp-includes/date.php',
     272        'WP_Dependencies' => __DIR__ . '/../../..' . '/src/wp-includes/class.wp-dependencies.php',
     273        'WP_Embed' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-embed.php',
     274        'WP_Error' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-error.php',
     275        'WP_Feed_Cache' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-feed-cache.php',
     276        'WP_Feed_Cache_Transient' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-feed-cache-transient.php',
     277        'WP_Filesystem_Base' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-base.php',
     278        'WP_Filesystem_Direct' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-direct.php',
     279        'WP_Filesystem_FTPext' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-ftpext.php',
     280        'WP_Filesystem_SSH2' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-ssh2.php',
     281        'WP_Filesystem_ftpsockets' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php',
     282        'WP_HTTP_Fsockopen' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-streams.php',
     283        'WP_HTTP_IXR_Client' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-ixr-client.php',
     284        'WP_HTTP_Proxy' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-proxy.php',
     285        'WP_HTTP_Requests_Response' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-requests-response.php',
     286        'WP_HTTP_Response' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-response.php',
     287        'WP_Http' => __DIR__ . '/../../..' . '/src/wp-includes/class-http.php',
     288        'WP_Http_Cookie' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-cookie.php',
     289        'WP_Http_Curl' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-curl.php',
     290        'WP_Http_Encoding' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-encoding.php',
     291        'WP_Http_Streams' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-http-streams.php',
     292        'WP_Image_Editor' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-image-editor.php',
     293        'WP_Image_Editor_GD' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-image-editor-gd.php',
     294        'WP_Image_Editor_Imagick' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-image-editor-imagick.php',
     295        'WP_Importer' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-importer.php',
     296        'WP_Internal_Pointers' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-internal-pointers.php',
     297        'WP_Links_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-links-list-table.php',
     298        'WP_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-list-table.php',
     299        'WP_Locale' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-locale.php',
     300        'WP_MS_Sites_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-ms-sites-list-table.php',
     301        'WP_MS_Themes_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-ms-themes-list-table.php',
     302        'WP_MS_Users_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-ms-users-list-table.php',
     303        'WP_MatchesMapRegex' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp.php',
     304        'WP_Media_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-media-list-table.php',
     305        'WP_Meta_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-meta-query.php',
     306        'WP_Metadata_Lazyloader' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-metadata-lazyloader.php',
     307        'WP_Nav_Menu_Widget' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-nav-menu-widget.php',
     308        'WP_Network' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-network.php',
     309        'WP_Network_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-network-query.php',
     310        'WP_Object_Cache' => __DIR__ . '/../../..' . '/src/wp-includes/cache.php',
     311        'WP_Plugin_Install_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-plugin-install-list-table.php',
     312        'WP_Plugins_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-plugins-list-table.php',
     313        'WP_Post' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-post.php',
     314        'WP_Post_Comments_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-post-comments-list-table.php',
     315        'WP_Post_Type' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-post-type.php',
     316        'WP_Posts_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-posts-list-table.php',
     317        'WP_Press_This' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-press-this.php',
     318        'WP_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-query.php',
     319        'WP_REST_Request' => __DIR__ . '/../../..' . '/src/wp-includes/rest-api/class-wp-rest-request.php',
     320        'WP_REST_Response' => __DIR__ . '/../../..' . '/src/wp-includes/rest-api/class-wp-rest-response.php',
     321        'WP_REST_Server' => __DIR__ . '/../../..' . '/src/wp-includes/rest-api/class-wp-rest-server.php',
     322        'WP_Rewrite' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-rewrite.php',
     323        'WP_Role' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-role.php',
     324        'WP_Roles' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-roles.php',
     325        'WP_Screen' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-screen.php',
     326        'WP_Scripts' => __DIR__ . '/../../..' . '/src/wp-includes/class.wp-scripts.php',
     327        'WP_Session_Tokens' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-session-tokens.php',
     328        'WP_SimplePie_File' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-simplepie-file.php',
     329        'WP_SimplePie_Sanitize_KSES' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-simplepie-sanitize-kses.php',
     330        'WP_Site' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-site.php',
     331        'WP_Site_Icon' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-site-icon.php',
     332        'WP_Site_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-site-query.php',
     333        'WP_Styles' => __DIR__ . '/../../..' . '/src/wp-includes/class.wp-styles.php',
     334        'WP_Tax_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-tax-query.php',
     335        'WP_Term' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-term.php',
     336        'WP_Term_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-term-query.php',
     337        'WP_Terms_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-terms-list-table.php',
     338        'WP_Text_Diff_Renderer_Table' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-text-diff-renderer-table.php',
     339        'WP_Text_Diff_Renderer_inline' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-text-diff-renderer-inline.php',
     340        'WP_Theme' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-theme.php',
     341        'WP_Theme_Install_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-theme-install-list-table.php',
     342        'WP_Themes_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-themes-list-table.php',
     343        'WP_Upgrader' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-upgrader.php',
     344        'WP_Upgrader_Skin' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-upgrader-skin.php',
     345        'WP_User' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-user.php',
     346        'WP_User_Meta_Session_Tokens' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-user-meta-session-tokens.php',
     347        'WP_User_Query' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-user-query.php',
     348        'WP_User_Search' => __DIR__ . '/../../..' . '/src/wp-admin/includes/deprecated/class-wp-user-search.php',
     349        'WP_Users_List_Table' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-wp-users-list-table.php',
     350        'WP_Widget' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-widget.php',
     351        'WP_Widget_Archives' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-archives.php',
     352        'WP_Widget_Area_Customize_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-widget-area-customize-control.php',
     353        'WP_Widget_Calendar' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-calendar.php',
     354        'WP_Widget_Categories' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-categories.php',
     355        'WP_Widget_Factory' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-widget-factory.php',
     356        'WP_Widget_Form_Customize_Control' => __DIR__ . '/../../..' . '/src/wp-includes/customize/class-wp-widget-form-customize-control.php',
     357        'WP_Widget_Links' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-links.php',
     358        'WP_Widget_Meta' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-meta.php',
     359        'WP_Widget_Pages' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-pages.php',
     360        'WP_Widget_RSS' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-rss.php',
     361        'WP_Widget_Recent_Comments' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-recent-comments.php',
     362        'WP_Widget_Recent_Posts' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-recent-posts.php',
     363        'WP_Widget_Search' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-search.php',
     364        'WP_Widget_Tag_Cloud' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-tag-cloud.php',
     365        'WP_Widget_Text' => __DIR__ . '/../../..' . '/src/wp-includes/widgets/class-wp-widget-text.php',
     366        'WP_oEmbed' => __DIR__ . '/../../..' . '/src/wp-includes/class-oembed.php',
     367        'WP_oEmbed_Controller' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-oembed-controller.php',
     368        'Walker' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-walker.php',
     369        'Walker_Category' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-category.php',
     370        'Walker_CategoryDropdown' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-category-dropdown.php',
     371        'Walker_Category_Checklist' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-walker-category-checklist.php',
     372        'Walker_Comment' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-comment.php',
     373        'Walker_Nav_Menu' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-nav-menu.php',
     374        'Walker_Nav_Menu_Checklist' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-walker-nav-menu-checklist.php',
     375        'Walker_Nav_Menu_Edit' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-walker-nav-menu-edit.php',
     376        'Walker_Page' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-page.php',
     377        'Walker_PageDropdown' => __DIR__ . '/../../..' . '/src/wp-includes/class-walker-page-dropdown.php',
     378        '_WP_Dependency' => __DIR__ . '/../../..' . '/src/wp-includes/class.wp-dependencies.php',
     379        '_WP_Editors' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-editor.php',
     380        '_WP_List_Table_Compat' => __DIR__ . '/../../..' . '/src/wp-admin/includes/list-table.php',
     381        'ftp' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-ftp-pure.php',
     382        'ftp_base' => __DIR__ . '/../../..' . '/src/wp-admin/includes/class-ftp.php',
     383        'getID3' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/getid3.php',
     384        'getid3_ac3' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio.ac3.php',
     385        'getid3_apetag' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.tag.apetag.php',
     386        'getid3_asf' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio-video.asf.php',
     387        'getid3_dts' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio.dts.php',
     388        'getid3_exception' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/getid3.php',
     389        'getid3_flac' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio.flac.php',
     390        'getid3_flv' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio-video.flv.php',
     391        'getid3_handler' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/getid3.php',
     392        'getid3_id3v1' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.tag.id3v1.php',
     393        'getid3_id3v2' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.tag.id3v2.php',
     394        'getid3_lib' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/getid3.lib.php',
     395        'getid3_lyrics3' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.tag.lyrics3.php',
     396        'getid3_matroska' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio-video.matroska.php',
     397        'getid3_mp3' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio.mp3.php',
     398        'getid3_ogg' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio.ogg.php',
     399        'getid3_quicktime' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio-video.quicktime.php',
     400        'getid3_riff' => __DIR__ . '/../../..' . '/src/wp-includes/ID3/module.audio-video.riff.php',
     401        'phpmailerException' => __DIR__ . '/../../..' . '/src/wp-includes/class-phpmailer.php',
     402        'wp_atom_server' => __DIR__ . '/../../..' . '/src/wp-includes/deprecated/class-wp-atom-server.php',
     403        'wp_xmlrpc_server' => __DIR__ . '/../../..' . '/src/wp-includes/class-wp-xmlrpc-server.php',
     404        'wpdb' => __DIR__ . '/../../..' . '/src/wp-includes/wp-db.php',
     405    );
     406
     407    public static function getInitializer(ClassLoader $loader)
     408    {
     409        return \Closure::bind(function () use ($loader) {
     410            $loader->prefixesPsr0 = ComposerStaticInit5f802e6773748e86f907e3d9bc7d98de::$prefixesPsr0;
     411            $loader->classMap = ComposerStaticInit5f802e6773748e86f907e3d9bc7d98de::$classMap;
     412
     413        }, null, ClassLoader::class);
     414    }
     415}
  • src/vendor/composer/installed.json

     
     1[
     2    {
     3        "name": "xrstf/composer-php52",
     4        "version": "v1.0.20",
     5        "version_normalized": "1.0.20.0",
     6        "source": {
     7            "type": "git",
     8            "url": "https://github.com/composer-php52/composer-php52.git",
     9            "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8"
     10        },
     11        "dist": {
     12            "type": "zip",
     13            "url": "https://api.github.com/repos/composer-php52/composer-php52/zipball/bd41459d5e27df8d33057842b32377c39e97a5a8",
     14            "reference": "bd41459d5e27df8d33057842b32377c39e97a5a8",
     15            "shasum": ""
     16        },
     17        "time": "2016-04-16 21:52:24",
     18        "type": "library",
     19        "extra": {
     20            "branch-alias": {
     21                "dev-default": "1.x-dev"
     22            }
     23        },
     24        "installation-source": "dist",
     25        "autoload": {
     26            "psr-0": {
     27                "xrstf\\Composer52": "lib/"
     28            }
     29        },
     30        "notification-url": "https://packagist.org/downloads/",
     31        "license": [
     32            "MIT"
     33        ]
     34    }
     35]
  • src/vendor/xrstf/composer-php52/LICENSE

     
     1Copyright (c) 2013 Christoph Mewes
     2
     3Permission is hereby granted, free of charge, to any person obtaining a copy
     4of this software and associated documentation files (the "Software"), to deal
     5in the Software without restriction, including without limitation the rights
     6to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7copies of the Software, and to permit persons to whom the Software is furnished
     8to do so, subject to the following conditions:
     9
     10The above copyright notice and this permission notice shall be included in all
     11copies or substantial portions of the Software.
     12
     13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     19THE SOFTWARE.
  • src/vendor/xrstf/composer-php52/README.md

     
     1PHP 5.2 Autoloading for Composer
     2================================
     3
     4This package provides an easy way to get a PHP 5.2 compatible autoloader out of Composer. The generated autoloader is fully compatible to the original and is written into separate files, each ending with `_52.php`.
     5
     6Legacy
     7------
     8
     9Please do not use this, if you can avoid it. It's a horrible hack, often breaks and is extremely tied to Composer's interna. This package was originally developed in 2012, when PHP 5.2 was much more common on cheap webhosts.
     10
     11In 2016, this package has been moved from Bitbucket to a Github organization, because the original developer could no longer reliably maintain it. This is the reason for this legacy package name ``xrstf/...``.
     12
     13Usage
     14-----
     15
     16In your project's `composer.json`, add the following lines:
     17
     18```json
     19{
     20    "require": {
     21        "xrstf/composer-php52": "1.*"
     22    },
     23    "scripts": {
     24        "post-install-cmd": [
     25            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     26        ],
     27        "post-update-cmd": [
     28            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     29        ],
     30        "post-autoload-dump": [
     31            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     32        ]
     33    }
     34}
     35```
     36
     37After the next update/install, you will have a `vendor/autoload_52.php` file, that you can simply include and use in PHP 5.2 projects.
  • src/vendor/xrstf/composer-php52/composer.json

     
     1{
     2    "name": "xrstf/composer-php52",
     3    "license": "MIT",
     4    "support": {
     5        "source": "https://github.com/composer-php52/composer-php52",
     6        "issues": "https://github.com/composer-php52/composer-php52/issues"
     7    },
     8    "autoload": {
     9        "psr-0": {
     10            "xrstf\\Composer52": "lib/"
     11        }
     12    },
     13    "scripts": {
     14        "post-install-cmd": [
     15            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     16        ],
     17        "post-update-cmd": [
     18            "xrstf\\Composer52\\Generator::onPostInstallCmd"
     19        ]
     20    },
     21    "extra": {
     22        "branch-alias": {
     23            "dev-default": "1.x-dev"
     24        }
     25    }
     26}
  • src/vendor/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php

     
     1<?php
     2/*
     3 * Copyright (c) 2013, Christoph Mewes, http://www.xrstf.de
     4 *
     5 * This file is released under the terms of the MIT license. You can find the
     6 * complete text in the attached LICENSE file or online at:
     7 *
     8 * http://www.opensource.org/licenses/mit-license.php
     9 *
     10 * --------------------------------------------------------------------------
     11 *
     12 * 99% of this is copied as-is from the original Composer source code and is
     13 * released under MIT license as well. Copyright goes to:
     14 *
     15 * - Igor Wiedler <igor@wiedler.ch>
     16 * - Jordi Boggiano <j.boggiano@seld.be>
     17 */
     18
     19namespace xrstf\Composer52;
     20
     21use Composer\Autoload\AutoloadGenerator as BaseGenerator;
     22use Composer\Autoload\ClassMapGenerator;
     23use Composer\Config;
     24use Composer\Installer\InstallationManager;
     25use Composer\Package\AliasPackage;
     26use Composer\Package\PackageInterface;
     27use Composer\Repository\InstalledRepositoryInterface;
     28use Composer\Util\Filesystem;
     29
     30class AutoloadGenerator extends BaseGenerator {
     31
     32        /**
     33         * @var bool
     34         */
     35        private $classMapAuthoritative = false;
     36
     37        public function __construct() {
     38                // do nothing (but keep this constructor so we can build an instance without the need for an event dispatcher)
     39        }
     40
     41        /**
     42         * Whether or not generated autoloader considers the class map
     43         * authoritative.
     44         *
     45         * @param bool $classMapAuthoritative
     46         */
     47        public function setClassMapAuthoritative($classMapAuthoritative)
     48        {
     49                $this->classMapAuthoritative = (boolean) $classMapAuthoritative;
     50        }
     51
     52        public function dump(Config $config, InstalledRepositoryInterface $localRepo, PackageInterface $mainPackage, InstallationManager $installationManager, $targetDir, $scanPsr0Packages = false, $suffix = '') {
     53                if ($this->classMapAuthoritative) {
     54                        // Force scanPsr0Packages when classmap is authoritative
     55                        $scanPsr0Packages = true;
     56                }
     57
     58                $filesystem = new Filesystem();
     59                $filesystem->ensureDirectoryExists($config->get('vendor-dir'));
     60
     61                $cwd        = getcwd();
     62                $basePath   = $filesystem->normalizePath($cwd);
     63                $vendorPath = $filesystem->normalizePath(realpath($config->get('vendor-dir')));
     64                $targetDir  = $vendorPath.'/'.$targetDir;
     65                $filesystem->ensureDirectoryExists($targetDir);
     66
     67                $useGlobalIncludePath  = (bool) $config->get('use-include-path');
     68                $prependAutoloader     = $config->get('prepend-autoloader') === false ? 'false' : 'true';
     69                $classMapAuthoritative = $config->get('classmap-authoritative');
     70
     71                $vendorPathCode            = $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true);
     72                $vendorPathToTargetDirCode = $filesystem->findShortestPathCode($vendorPath, realpath($targetDir), true);
     73
     74                $appBaseDirCode = $filesystem->findShortestPathCode($vendorPath, $basePath, true);
     75                $appBaseDirCode = str_replace('__DIR__', '$vendorDir', $appBaseDirCode);
     76
     77                // add 5.2 compat
     78                $vendorPathCode            = str_replace('__DIR__', 'dirname(__FILE__)', $vendorPathCode);
     79                $vendorPathToTargetDirCode = str_replace('__DIR__', 'dirname(__FILE__)', $vendorPathToTargetDirCode);
     80
     81                $packageMap = $this->buildPackageMap($installationManager, $mainPackage, $localRepo->getCanonicalPackages());
     82                $autoloads = $this->parseAutoloads($packageMap, $mainPackage);
     83
     84                // add custom psr-0 autoloading if the root package has a target dir
     85                $targetDirLoader = null;
     86                $mainAutoload = $mainPackage->getAutoload();
     87                if ($mainPackage->getTargetDir() && !empty($mainAutoload['psr-0'])) {
     88                        $levels   = count(explode('/', $filesystem->normalizePath($mainPackage->getTargetDir())));
     89                        $prefixes = implode(', ', array_map(function ($prefix) {
     90                                return var_export($prefix, true);
     91                        }, array_keys($mainAutoload['psr-0'])));
     92
     93                        $baseDirFromTargetDirCode = $filesystem->findShortestPathCode($targetDir, $basePath, true);
     94
     95                        $targetDirLoader = <<<EOF
     96
     97        public static function autoload(\$class) {
     98                \$dir      = $baseDirFromTargetDirCode.'/';
     99                \$prefixes = array($prefixes);
     100
     101                foreach (\$prefixes as \$prefix) {
     102                        if (0 !== strpos(\$class, \$prefix)) {
     103                                continue;
     104                        }
     105
     106                        \$path = explode(DIRECTORY_SEPARATOR, self::getClassPath(\$class));
     107                        \$path = \$dir.implode('/', array_slice(\$path, $levels));
     108
     109                        if (!\$path = self::resolveIncludePath(\$path)) {
     110                                return false;
     111                        }
     112
     113                        require \$path;
     114                        return true;
     115                }
     116        }
     117
     118EOF;
     119                }
     120
     121                $filesCode = "";
     122                $autoloads['files'] = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($autoloads['files']));
     123                foreach ($autoloads['files'] as $functionFile) {
     124                        // don't include file if it is using PHP 5.3+ syntax
     125                        // https://bitbucket.org/xrstf/composer-php52/issue/4
     126                        if ($this->isPHP53($functionFile)) {
     127                                $filesCode .= '//               require '.$this->getPathCode($filesystem, $basePath, $vendorPath, $functionFile)."; // disabled because of PHP 5.3 syntax\n";
     128                        }
     129                        else {
     130                                $filesCode .= '         require '.$this->getPathCode($filesystem, $basePath, $vendorPath, $functionFile).";\n";
     131                        }
     132                }
     133
     134                if (!$suffix) {
     135                        $suffix = md5(uniqid('', true));
     136                }
     137
     138                $includePathFile = $this->getIncludePathsFile($packageMap, $filesystem, $basePath, $vendorPath, $vendorPathCode, $appBaseDirCode);
     139
     140                file_put_contents($vendorPath.'/autoload_52.php', $this->getAutoloadFile($vendorPathToTargetDirCode, $suffix));
     141                file_put_contents($targetDir.'/autoload_real_52.php', $this->getAutoloadRealFile(true, (bool) $includePathFile, $targetDirLoader, $filesCode, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader));
     142
     143                // use stream_copy_to_stream instead of copy
     144                // to work around https://bugs.php.net/bug.php?id=64634
     145                $sourceLoader = fopen(__DIR__.'/ClassLoader.php', 'r');
     146                $targetLoader = fopen($targetDir.'/ClassLoader52.php', 'w+');
     147                stream_copy_to_stream($sourceLoader, $targetLoader);
     148                fclose($sourceLoader);
     149                fclose($targetLoader);
     150                unset($sourceLoader, $targetLoader);
     151        }
     152
     153        protected function isPHP53($file) {
     154                $tokens = token_get_all(file_get_contents($file));
     155                $php53  = array(T_DIR, T_GOTO, T_NAMESPACE, T_NS_C, T_NS_SEPARATOR, T_USE);
     156
     157                // PHP 5.4+
     158                if (defined('T_TRAIT')) {
     159                        $php53[] = T_TRAIT;
     160                        $php53[] = T_TRAIT_C;
     161                        $php53[] = T_TRAIT_C;
     162                }
     163
     164                // PHP 5.5+
     165                if (defined('T_FINALLY')) {
     166                        $php53[] = T_FINALLY;
     167                        $php53[] = T_YIELD;
     168                }
     169
     170                foreach ($tokens as $token) {
     171                        if (is_array($token) && in_array($token[0], $php53)) {
     172                                return true;
     173                        }
     174                }
     175
     176                return false;
     177        }
     178
     179        protected function getIncludePathsFile(array $packageMap, Filesystem $filesystem, $basePath, $vendorPath, $vendorPathCode, $appBaseDirCode) {
     180                $includePaths = array();
     181
     182                foreach ($packageMap as $item) {
     183                        list($package, $installPath) = $item;
     184
     185                        if (null !== $package->getTargetDir() && strlen($package->getTargetDir()) > 0) {
     186                                $installPath = substr($installPath, 0, -strlen('/'.$package->getTargetDir()));
     187                        }
     188
     189                        foreach ($package->getIncludePaths() as $includePath) {
     190                                $includePath = trim($includePath, '/');
     191                                $includePaths[] = empty($installPath) ? $includePath : $installPath.'/'.$includePath;
     192                        }
     193                }
     194
     195                if (!$includePaths) {
     196                        return;
     197                }
     198
     199                $includePathsFile = <<<EOF
     200<?php
     201
     202// include_paths_52.php generated by xrstf/composer-php52
     203
     204\$vendorDir = $vendorPathCode;
     205\$baseDir = $appBaseDirCode;
     206
     207return array(
     208
     209EOF;
     210
     211                foreach ($includePaths as $path) {
     212                        $includePathsFile .= "\t" . $this->getPathCode($filesystem, $basePath, $vendorPath, $path) . ",\n";
     213                }
     214
     215                return $includePathsFile . ");\n";
     216        }
     217
     218        protected function getAutoloadFile($vendorPathToTargetDirCode, $suffix) {
     219                return <<<AUTOLOAD
     220<?php
     221
     222// autoload_52.php generated by xrstf/composer-php52
     223
     224require_once $vendorPathToTargetDirCode.'/autoload_real_52.php';
     225
     226return ComposerAutoloaderInit$suffix::getLoader();
     227
     228AUTOLOAD;
     229        }
     230
     231        protected function getAutoloadRealFile($useClassMap, $useIncludePath, $targetDirLoader, $filesCode, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $staticPhpVersion = 70000) {
     232                // TODO the class ComposerAutoloaderInit should be revert to a closure
     233                // when APC has been fixed:
     234                // - https://github.com/composer/composer/issues/959
     235                // - https://bugs.php.net/bug.php?id=52144
     236                // - https://bugs.php.net/bug.php?id=61576
     237                // - https://bugs.php.net/bug.php?id=59298
     238
     239                if ($filesCode) {
     240                                $filesCode = "\n\n".rtrim($filesCode);
     241                }
     242
     243                $file = <<<HEADER
     244<?php
     245
     246// autoload_real_52.php generated by xrstf/composer-php52
     247
     248class ComposerAutoloaderInit$suffix {
     249        private static \$loader;
     250
     251        public static function loadClassLoader(\$class) {
     252                if ('xrstf_Composer52_ClassLoader' === \$class) {
     253                        require dirname(__FILE__).'/ClassLoader52.php';
     254                }
     255        }
     256
     257        /**
     258         * @return xrstf_Composer52_ClassLoader
     259         */
     260        public static function getLoader() {
     261                if (null !== self::\$loader) {
     262                        return self::\$loader;
     263                }
     264
     265                spl_autoload_register(array('ComposerAutoloaderInit$suffix', 'loadClassLoader'), true /*, true */);
     266                self::\$loader = \$loader = new xrstf_Composer52_ClassLoader();
     267                spl_autoload_unregister(array('ComposerAutoloaderInit$suffix', 'loadClassLoader'));
     268
     269                \$vendorDir = $vendorPathCode;
     270                \$baseDir   = $appBaseDirCode;
     271                \$dir       = dirname(__FILE__);
     272
     273
     274HEADER;
     275
     276                if ($useIncludePath) {
     277                        $file .= <<<'INCLUDE_PATH'
     278                $includePaths = require $dir.'/include_paths.php';
     279                array_push($includePaths, get_include_path());
     280                set_include_path(implode(PATH_SEPARATOR, $includePaths));
     281
     282
     283INCLUDE_PATH;
     284                }
     285
     286                $file .= <<<'PSR0'
     287                $map = require $dir.'/autoload_namespaces.php';
     288                foreach ($map as $namespace => $path) {
     289                        $loader->add($namespace, $path);
     290                }
     291
     292
     293PSR0;
     294
     295                if ($useClassMap) {
     296                        $file .= <<<'CLASSMAP'
     297                $classMap = require $dir.'/autoload_classmap.php';
     298                if ($classMap) {
     299                        $loader->addClassMap($classMap);
     300                }
     301
     302
     303CLASSMAP;
     304                }
     305
     306                if ($this->classMapAuthoritative) {
     307                        $file .= <<<'CLASSMAPAUTHORITATIVE'
     308                $loader->setClassMapAuthoritative(true);
     309
     310CLASSMAPAUTHORITATIVE;
     311                }
     312
     313                if ($useGlobalIncludePath) {
     314                        $file .= <<<'INCLUDEPATH'
     315                $loader->setUseIncludePath(true);
     316
     317
     318INCLUDEPATH;
     319                }
     320
     321                if ($targetDirLoader) {
     322                        $file .= <<<REGISTER_AUTOLOAD
     323                spl_autoload_register(array('ComposerAutoloaderInit$suffix', 'autoload'), true);
     324
     325
     326REGISTER_AUTOLOAD;
     327
     328                }
     329
     330                $file .= <<<METHOD_FOOTER
     331                \$loader->register($prependAutoloader);{$filesCode}
     332
     333                return \$loader;
     334        }
     335
     336METHOD_FOOTER;
     337
     338                $file .= $targetDirLoader;
     339
     340                return $file . <<<FOOTER
     341}
     342
     343FOOTER;
     344
     345        }
     346}
  • src/vendor/xrstf/composer-php52/lib/xrstf/Composer52/ClassLoader.php

     
     1<?php
     2/*
     3 * Copyright (c) 2013, Christoph Mewes, http://www.xrstf.de
     4 *
     5 * This file is released under the terms of the MIT license. You can find the
     6 * complete text in the attached LICENSE file or online at:
     7 *
     8 * http://www.opensource.org/licenses/mit-license.php
     9 *
     10 * --------------------------------------------------------------------------
     11 *
     12 * 99% of this is copied as-is from the original Composer source code and is
     13 * released under MIT license as well. Copyright goes to:
     14 *
     15 * - Fabien Potencier <fabien@symfony.com>
     16 * - Jordi Boggiano <j.boggiano@seld.be>
     17 */
     18
     19class xrstf_Composer52_ClassLoader {
     20        private $prefixes              = array();
     21        private $fallbackDirs          = array();
     22        private $useIncludePath        = false;
     23        private $classMap              = array();
     24        private $classMapAuthoratative = false;
     25        private $allowUnderscore       = false;
     26
     27        /**
     28         * @param boolean $flag  true to allow class names with a leading underscore, false to disable
     29         */
     30        public function setAllowUnderscore($flag) {
     31                $this->allowUnderscore = (boolean) $flag;
     32        }
     33
     34        /**
     35         * @return array
     36         */
     37        public function getPrefixes() {
     38                return $this->prefixes;
     39        }
     40
     41        /**
     42         * Turns off searching the prefix and fallback directories for classes
     43         * that have not been registered with the class map.
     44         *
     45         * @param bool $classMapAuthoratative
     46         */
     47        public function setClassMapAuthoritative($classMapAuthoratative) {
     48                $this->classMapAuthoratative = $classMapAuthoratative;
     49        }
     50
     51        /**
     52         * Should class lookup fail if not found in the current class map?
     53         *
     54         * @return bool
     55         */
     56        public function getClassMapAuthoratative() {
     57                return $this->classMapAuthoratative;
     58        }
     59
     60        /**
     61         * @return array
     62         */
     63        public function getFallbackDirs() {
     64                return $this->fallbackDirs;
     65        }
     66
     67        /**
     68         * @return array
     69         */
     70        public function getClassMap() {
     71                return $this->classMap;
     72        }
     73
     74        /**
     75         * @param array $classMap  class to filename map
     76         */
     77        public function addClassMap(array $classMap) {
     78                if ($this->classMap) {
     79                        $this->classMap = array_merge($this->classMap, $classMap);
     80                }
     81                else {
     82                        $this->classMap = $classMap;
     83                }
     84        }
     85
     86        /**
     87         * Registers a set of classes, merging with any others previously set.
     88         *
     89         * @param string       $prefix   the classes prefix
     90         * @param array|string $paths    the location(s) of the classes
     91         * @param bool         $prepend  prepend the location(s)
     92         */
     93        public function add($prefix, $paths, $prepend = false) {
     94                if (!$prefix) {
     95                        if ($prepend) {
     96                                $this->fallbackDirs = array_merge(
     97                                        (array) $paths,
     98                                        $this->fallbackDirs
     99                                );
     100                        }
     101                        else {
     102                                $this->fallbackDirs = array_merge(
     103                                        $this->fallbackDirs,
     104                                        (array) $paths
     105                                );
     106                        }
     107
     108                        return;
     109                }
     110
     111                if (!isset($this->prefixes[$prefix])) {
     112                        $this->prefixes[$prefix] = (array) $paths;
     113                        return;
     114                }
     115
     116                if ($prepend) {
     117                        $this->prefixes[$prefix] = array_merge(
     118                                (array) $paths,
     119                                $this->prefixes[$prefix]
     120                        );
     121                }
     122                else {
     123                        $this->prefixes[$prefix] = array_merge(
     124                                $this->prefixes[$prefix],
     125                                (array) $paths
     126                        );
     127                }
     128        }
     129
     130        /**
     131         * Registers a set of classes, replacing any others previously set.
     132         *
     133         * @param string       $prefix  the classes prefix
     134         * @param array|string $paths   the location(s) of the classes
     135         */
     136        public function set($prefix, $paths) {
     137                if (!$prefix) {
     138                        $this->fallbackDirs = (array) $paths;
     139                        return;
     140                }
     141
     142                $this->prefixes[$prefix] = (array) $paths;
     143        }
     144
     145        /**
     146         * Turns on searching the include path for class files.
     147         *
     148         * @param bool $useIncludePath
     149         */
     150        public function setUseIncludePath($useIncludePath) {
     151                $this->useIncludePath = $useIncludePath;
     152        }
     153
     154        /**
     155         * Can be used to check if the autoloader uses the include path to check
     156         * for classes.
     157         *
     158         * @return bool
     159         */
     160        public function getUseIncludePath() {
     161                return $this->useIncludePath;
     162        }
     163
     164        /**
     165         * Registers this instance as an autoloader.
     166         */
     167        public function register() {
     168                spl_autoload_register(array($this, 'loadClass'), true);
     169        }
     170
     171        /**
     172         * Unregisters this instance as an autoloader.
     173         */
     174        public function unregister() {
     175                spl_autoload_unregister(array($this, 'loadClass'));
     176        }
     177
     178        /**
     179         * Loads the given class or interface.
     180         *
     181         * @param  string $class  the name of the class
     182         * @return bool|null      true, if loaded
     183         */
     184        public function loadClass($class) {
     185                if ($file = $this->findFile($class)) {
     186                        include $file;
     187                        return true;
     188                }
     189        }
     190
     191        /**
     192         * Finds the path to the file where the class is defined.
     193         *
     194         * @param  string $class  the name of the class
     195         * @return string|null    the path, if found
     196         */
     197        public function findFile($class) {
     198                if ('\\' === $class[0]) {
     199                        $class = substr($class, 1);
     200                }
     201
     202                if (isset($this->classMap[$class])) {
     203                        return $this->classMap[$class];
     204                }
     205                elseif ($this->classMapAuthoratative) {
     206                        return false;
     207                }
     208
     209                $classPath = $this->getClassPath($class);
     210
     211                foreach ($this->prefixes as $prefix => $dirs) {
     212                        if (0 === strpos($class, $prefix)) {
     213                                foreach ($dirs as $dir) {
     214                                        if (file_exists($dir.DIRECTORY_SEPARATOR.$classPath)) {
     215                                                return $dir.DIRECTORY_SEPARATOR.$classPath;
     216                                        }
     217                                }
     218                        }
     219                }
     220
     221                foreach ($this->fallbackDirs as $dir) {
     222                        if (file_exists($dir.DIRECTORY_SEPARATOR.$classPath)) {
     223                                return $dir.DIRECTORY_SEPARATOR.$classPath;
     224                        }
     225                }
     226
     227                if ($this->useIncludePath && $file = self::resolveIncludePath($classPath)) {
     228                        return $file;
     229                }
     230
     231                return $this->classMap[$class] = false;
     232        }
     233
     234        private function getClassPath($class) {
     235                if (false !== $pos = strrpos($class, '\\')) {
     236                        // namespaced class name
     237                        $classPath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $pos)).DIRECTORY_SEPARATOR;
     238                        $className = substr($class, $pos + 1);
     239                }
     240                else {
     241                        // PEAR-like class name
     242                        $classPath = null;
     243                        $className = $class;
     244                }
     245
     246                $className = str_replace('_', DIRECTORY_SEPARATOR, $className);
     247
     248                // restore the prefix
     249                if ($this->allowUnderscore && DIRECTORY_SEPARATOR === $className[0]) {
     250                        $className[0] = '_';
     251                }
     252
     253                $classPath .= $className.'.php';
     254
     255                return $classPath;
     256        }
     257
     258        public static function resolveIncludePath($classPath) {
     259                $paths = explode(PATH_SEPARATOR, get_include_path());
     260
     261                foreach ($paths as $path) {
     262                        $path = rtrim($path, '/\\');
     263
     264                        if ($file = file_exists($path.DIRECTORY_SEPARATOR.$file)) {
     265                                return $file;
     266                        }
     267                }
     268
     269                return false;
     270        }
     271}
  • src/vendor/xrstf/composer-php52/lib/xrstf/Composer52/Generator.php

     
     1<?php
     2/*
     3 * Copyright (c) 2013, Christoph Mewes, http://www.xrstf.de
     4 *
     5 * This file is released under the terms of the MIT license. You can find the
     6 * complete text in the attached LICENSE file or online at:
     7 *
     8 * http://www.opensource.org/licenses/mit-license.php
     9 */
     10
     11namespace xrstf\Composer52;
     12
     13use Composer\Repository\CompositeRepository;
     14use Composer\Script\Event;
     15
     16class Generator {
     17        public static function onPostInstallCmd(Event $event) {
     18                $composer            = $event->getComposer();
     19                $installationManager = $composer->getInstallationManager();
     20                $repoManager         = $composer->getRepositoryManager();
     21                $localRepo           = $repoManager->getLocalRepository();
     22                $package             = $composer->getPackage();
     23                $config              = $composer->getConfig();
     24
     25                // We can't gain access to the Command's input object, so we have to look
     26                // for -o / --optimize-autoloader ourselves. Sadly, neither getopt() works
     27                // (always returns an empty array), nor does Symfony's Console Input, as
     28                // it expects a full definition of the current command line and we can't
     29                // provide that.
     30
     31                $args     = $_SERVER['argv'];
     32                $optimize = in_array('-o', $args) || in_array('--optimize-autoloader', $args) || in_array('--optimize', $args);
     33
     34                $suffix   = $config->get('autoloader-suffix');
     35
     36                $generator = new AutoloadGenerator();
     37                $generator->dump($config, $localRepo, $package, $installationManager, 'composer', $optimize, $suffix);
     38        }
     39}
  • src/wp-admin/includes/admin.php

     
    5050require_once(ABSPATH . 'wp-admin/includes/post.php');
    5151
    5252/** WordPress Administration Screen API */
    53 require_once(ABSPATH . 'wp-admin/includes/class-wp-screen.php');
    5453require_once(ABSPATH . 'wp-admin/includes/screen.php');
    5554
    5655/** WordPress Taxonomy Administration API */
     
    6059require_once(ABSPATH . 'wp-admin/includes/template.php');
    6160
    6261/** WordPress List Table Administration API and base class */
    63 require_once(ABSPATH . 'wp-admin/includes/class-wp-list-table.php');
    6462require_once(ABSPATH . 'wp-admin/includes/list-table.php');
    6563
    6664/** WordPress Theme Administration API */
     
    6967/** WordPress User Administration API */
    7068require_once(ABSPATH . 'wp-admin/includes/user.php');
    7169
    72 /** WordPress Site Icon API */
    73 require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php');
    74 
    7570/** WordPress Update Administration API */
    7671require_once(ABSPATH . 'wp-admin/includes/update.php');
    7772
  • src/wp-admin/includes/ajax-actions.php

     
    15071507
    15081508        $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
    15091509
    1510         require(ABSPATH . WPINC . '/class-wp-editor.php');
    15111510        $results = _WP_Editors::wp_link_query( $args );
    15121511
    15131512        if ( ! isset( $results ) )
     
    31373136 */
    31383137function wp_ajax_press_this_save_post() {
    31393138        if ( empty( $GLOBALS['wp_press_this'] ) ) {
    3140                 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
     3139                $GLOBALS['wp_press_this'] = new WP_Press_This();
    31413140        }
    31423141
    31433142        $GLOBALS['wp_press_this']->save_post();
     
    31523151 */
    31533152function wp_ajax_press_this_add_category() {
    31543153        if ( empty( $GLOBALS['wp_press_this'] ) ) {
    3155                 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
     3154                $GLOBALS['wp_press_this'] = new WP_Press_This();
    31563155        }
    31573156
    31583157        $GLOBALS['wp_press_this']->add_category();
     
    31833182
    31843183        switch ( $context ) {
    31853184                case 'site-icon':
    3186                         require_once ABSPATH . '/wp-admin/includes/class-wp-site-icon.php';
    3187                         global $wp_site_icon;
     3185                        $wp_site_icon = new WP_Site_Icon;
    31883186
    31893187                        // Skip creating a new attachment if the attachment is a Site Icon.
    31903188                        if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) == $context ) {
     
    33323330                wp_send_json_error( $status );
    33333331        }
    33343332
    3335         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    33363333        include_once( ABSPATH . 'wp-admin/includes/theme.php' );
    33373334
    33383335        $api = themes_api( 'theme_information', array(
     
    34393436                wp_send_json_error( $status );
    34403437        }
    34413438
    3442         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    3443 
    34443439        $current = get_site_transient( 'update_themes' );
    34453440        if ( empty( $current ) ) {
    34463441                wp_update_themes();
     
    35903585                wp_send_json_error( $status );
    35913586        }
    35923587
    3593         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    35943588        include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
    35953589
    35963590        $api = plugins_api( 'plugin_information', array(
     
    36983692                $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] );
    36993693        }
    37003694
    3701         include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    3702 
    37033695        wp_update_plugins();
    37043696
    37053697        $skin     = new WP_Ajax_Upgrader_Skin();
  • src/wp-admin/includes/class-wp-press-this.php

     
    479479                        // Embedded Daily Motion videos
    480480                        $src = 'https://www.dailymotion.com/video/' . $src_matches[2];
    481481                } else {
    482                         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    483482                        $oembed = _wp_oembed_get_object();
    484483
    485484                        if ( ! $oembed->get_provider( $src, array( 'discover' => false ) ) ) {
  • src/wp-admin/includes/class-wp-site-icon.php

     
    240240                return $value;
    241241        }
    242242}
    243 
    244 /**
    245  * @global WP_Site_Icon $wp_site_icon
    246  */
    247 $GLOBALS['wp_site_icon'] = new WP_Site_Icon;
  • src/wp-admin/includes/class-wp-upgrader-skins.php

     
    66 * @subpackage Upgrader
    77 * @since 2.8.0
    88 */
    9 
    10 /** WP_Upgrader_Skin class */
    11 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
    12 
    13 /** Plugin_Upgrader_Skin class */
    14 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';
    15 
    16 /** Theme_Upgrader_Skin class */
    17 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';
    18 
    19 /** Bulk_Upgrader_Skin class */
    20 require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';
    21 
    22 /** Bulk_Plugin_Upgrader_Skin class */
    23 require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';
    24 
    25 /** Bulk_Theme_Upgrader_Skin class */
    26 require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';
    27 
    28 /** Plugin_Installer_Skin class */
    29 require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';
    30 
    31 /** Theme_Installer_Skin class */
    32 require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';
    33 
    34 /** Language_Pack_Upgrader_Skin class */
    35 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';
    36 
    37 /** Automatic_Upgrader_Skin class */
    38 require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';
    39 
    40 /** WP_Ajax_Upgrader_Skin class */
    41 require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
  • src/wp-admin/includes/class-wp-upgrader.php

     
    99 * @since 2.8.0
    1010 */
    1111
    12 /** WP_Upgrader_Skin class */
    13 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
    14 
    15 /** Plugin_Upgrader_Skin class */
    16 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader-skin.php';
    17 
    18 /** Theme_Upgrader_Skin class */
    19 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader-skin.php';
    20 
    21 /** Bulk_Upgrader_Skin class */
    22 require_once ABSPATH . 'wp-admin/includes/class-bulk-upgrader-skin.php';
    23 
    24 /** Bulk_Plugin_Upgrader_Skin class */
    25 require_once ABSPATH . 'wp-admin/includes/class-bulk-plugin-upgrader-skin.php';
    26 
    27 /** Bulk_Theme_Upgrader_Skin class */
    28 require_once ABSPATH . 'wp-admin/includes/class-bulk-theme-upgrader-skin.php';
    29 
    30 /** Plugin_Installer_Skin class */
    31 require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';
    32 
    33 /** Theme_Installer_Skin class */
    34 require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';
    35 
    36 /** Language_Pack_Upgrader_Skin class */
    37 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader-skin.php';
    38 
    39 /** Automatic_Upgrader_Skin class */
    40 require_once ABSPATH . 'wp-admin/includes/class-automatic-upgrader-skin.php';
    41 
    42 /** WP_Ajax_Upgrader_Skin class */
    43 require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
    44 
    4512/**
    4613 * Core class used for upgrading/installing a local set of files via
    4714 * the Filesystem Abstraction classes from a Zip file.
     
    888855
    889856}
    890857
    891 /** Plugin_Upgrader class */
    892 require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';
    893 
    894 /** Theme_Upgrader class */
    895 require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader.php';
    896 
    897 /** Language_Pack_Upgrader class */
    898 require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader.php';
    899 
    900 /** Core_Upgrader class */
    901 require_once ABSPATH . 'wp-admin/includes/class-core-upgrader.php';
    902 
    903 /** File_Upload_Upgrader class */
    904 require_once ABSPATH . 'wp-admin/includes/class-file-upload-upgrader.php';
    905 
    906 /** WP_Automatic_Updater class */
    907 require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php';
  • src/wp-admin/includes/deprecated/class-wp-user-search.php

     
    11<?php
    2 /**
    3  * Deprecated admin functions from past WordPress versions. You shouldn't use these
    4  * functions and look for the alternatives instead. The functions will be removed
    5  * in a later version.
    6  *
    7  * @package WordPress
    8  * @subpackage Deprecated
    9  */
    102
    11 /*
    12  * Deprecated functions come here to die.
    13  */
    14 
    15 /**
    16  * @since 2.1.0
    17  * @deprecated 2.1.0 Use wp_editor()
    18  * @see wp_editor()
    19  */
    20 function tinymce_include() {
    21         _deprecated_function( __FUNCTION__, '2.1.0', 'wp_editor()' );
    22 
    23         wp_tiny_mce();
    24 }
    25 
    26 /**
    27  * Unused Admin function.
    28  *
    29  * @since 2.0.0
    30  * @deprecated 2.5.0
    31  *
    32  */
    33 function documentation_link() {
    34         _deprecated_function( __FUNCTION__, '2.5.0' );
    35 }
    36 
    37 /**
    38  * Calculates the new dimensions for a downsampled image.
    39  *
    40  * @since 2.0.0
    41  * @deprecated 3.0.0 Use wp_constrain_dimensions()
    42  * @see wp_constrain_dimensions()
    43  *
    44  * @param int $width Current width of the image
    45  * @param int $height Current height of the image
    46  * @param int $wmax Maximum wanted width
    47  * @param int $hmax Maximum wanted height
    48  * @return array Shrunk dimensions (width, height).
    49  */
    50 function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
    51         _deprecated_function( __FUNCTION__, '3.0.0', 'wp_constrain_dimensions()' );
    52         return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
    53 }
    54 
    55 /**
    56  * Calculated the new dimensions for a downsampled image.
    57  *
    58  * @since 2.0.0
    59  * @deprecated 3.5.0 Use wp_constrain_dimensions()
    60  * @see wp_constrain_dimensions()
    61  *
    62  * @param int $width Current width of the image
    63  * @param int $height Current height of the image
    64  * @return array Shrunk dimensions (width, height).
    65  */
    66 function get_udims( $width, $height ) {
    67         _deprecated_function( __FUNCTION__, '3.5.0', 'wp_constrain_dimensions()' );
    68         return wp_constrain_dimensions( $width, $height, 128, 96 );
    69 }
    70 
    71 /**
    72  * Legacy function used to generate the categories checklist control.
    73  *
    74  * @since 0.71
    75  * @deprecated 2.6.0 Use wp_category_checklist()
    76  * @see wp_category_checklist()
    77  *
    78  * @param int $default       Unused.
    79  * @param int $parent        Unused.
    80  * @param array $popular_ids Unused.
    81  */
    82 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {
    83         _deprecated_function( __FUNCTION__, '2.6.0', 'wp_category_checklist()' );
    84         global $post_ID;
    85         wp_category_checklist( $post_ID );
    86 }
    87 
    88 /**
    89  * Legacy function used to generate a link categories checklist control.
    90  *
    91  * @since 2.1.0
    92  * @deprecated 2.6.0 Use wp_link_category_checklist()
    93  * @see wp_link_category_checklist()
    94  *
    95  * @param int $default Unused.
    96  */
    97 function dropdown_link_categories( $default = 0 ) {
    98         _deprecated_function( __FUNCTION__, '2.6.0', 'wp_link_category_checklist()' );
    99         global $link_id;
    100         wp_link_category_checklist( $link_id );
    101 }
    102 
    103 /**
    104  * Get the real filesystem path to a file to edit within the admin.
    105  *
    106  * @since 1.5.0
    107  * @deprecated 2.9.0
    108  * @uses WP_CONTENT_DIR Full filesystem path to the wp-content directory.
    109  *
    110  * @param string $file Filesystem path relative to the wp-content directory.
    111  * @return string Full filesystem path to edit.
    112  */
    113 function get_real_file_to_edit( $file ) {
    114         _deprecated_function( __FUNCTION__, '2.9.0' );
    115 
    116         return WP_CONTENT_DIR . $file;
    117 }
    118 
    119 /**
    120  * Legacy function used for generating a categories drop-down control.
    121  *
    122  * @since 1.2.0
    123  * @deprecated 3.0.0 Use wp_dropdown_categories()
    124  * @see wp_dropdown_categories()
    125  *
    126  * @param int $currentcat    Optional. ID of the current category. Default 0.
    127  * @param int $currentparent Optional. Current parent category ID. Default 0.
    128  * @param int $parent        Optional. Parent ID to retrieve categories for. Default 0.
    129  * @param int $level         Optional. Number of levels deep to display. Default 0.
    130  * @param array $categories  Optional. Categories to include in the control. Default 0.
    131  * @return bool|null False if no categories were found.
    132  */
    133 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
    134         _deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' );
    135         if (!$categories )
    136                 $categories = get_categories( array('hide_empty' => 0) );
    137 
    138         if ( $categories ) {
    139                 foreach ( $categories as $category ) {
    140                         if ( $currentcat != $category->term_id && $parent == $category->parent) {
    141                                 $pad = str_repeat( '&#8211; ', $level );
    142                                 $category->name = esc_html( $category->name );
    143                                 echo "\n\t<option value='$category->term_id'";
    144                                 if ( $currentparent == $category->term_id )
    145                                         echo " selected='selected'";
    146                                 echo ">$pad$category->name</option>";
    147                                 wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories );
    148                         }
    149                 }
    150         } else {
    151                 return false;
    152         }
    153 }
    154 
    155 /**
    156  * Register a setting and its sanitization callback
    157  *
    158  * @since 2.7.0
    159  * @deprecated 3.0.0 Use register_setting()
    160  * @see register_setting()
    161  *
    162  * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
    163  *      Default whitelisted option key names include "general," "discussion," and "reading," among others.
    164  * @param string $option_name The name of an option to sanitize and save.
    165  * @param callable $sanitize_callback A callback function that sanitizes the option's value.
    166  */
    167 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
    168         _deprecated_function( __FUNCTION__, '3.0.0', 'register_setting()' );
    169         register_setting( $option_group, $option_name, $sanitize_callback );
    170 }
    171 
    172 /**
    173  * Unregister a setting
    174  *
    175  * @since 2.7.0
    176  * @deprecated 3.0.0 Use unregister_setting()
    177  * @see unregister_setting()
    178  *
    179  * @param string $option_group
    180  * @param string $option_name
    181  * @param callable $sanitize_callback
    182  */
    183 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
    184         _deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' );
    185         unregister_setting( $option_group, $option_name, $sanitize_callback );
    186 }
    187 
    188 /**
    189  * Determines the language to use for CodePress syntax highlighting.
    190  *
    191  * @since 2.8.0
    192  * @deprecated 3.0.0
    193  *
    194  * @param string $filename
    195 **/
    196 function codepress_get_lang( $filename ) {
    197         _deprecated_function( __FUNCTION__, '3.0.0' );
    198 }
    199 
    200 /**
    201  * Adds JavaScript required to make CodePress work on the theme/plugin editors.
    202  *
    203  * @since 2.8.0
    204  * @deprecated 3.0.0
    205 **/
    206 function codepress_footer_js() {
    207         _deprecated_function( __FUNCTION__, '3.0.0' );
    208 }
    209 
    210 /**
    211  * Determine whether to use CodePress.
    212  *
    213  * @since 2.8.0
    214  * @deprecated 3.0.0
    215 **/
    216 function use_codepress() {
    217         _deprecated_function( __FUNCTION__, '3.0.0' );
    218 }
    219 
    220 /**
    221  * Get all user IDs.
    222  *
    223  * @deprecated 3.1.0 Use get_users()
    224  *
    225  * @return array List of user IDs.
    226  */
    227 function get_author_user_ids() {
    228         _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    229 
    230         global $wpdb;
    231         if ( !is_multisite() )
    232                 $level_key = $wpdb->get_blog_prefix() . 'user_level';
    233         else
    234                 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
    235 
    236         return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) );
    237 }
    238 
    239 /**
    240  * Gets author users who can edit posts.
    241  *
    242  * @deprecated 3.1.0 Use get_users()
    243  *
    244  * @param int $user_id User ID.
    245  * @return array|bool List of editable authors. False if no editable users.
    246  */
    247 function get_editable_authors( $user_id ) {
    248         _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    249 
    250         global $wpdb;
    251 
    252         $editable = get_editable_user_ids( $user_id );
    253 
    254         if ( !$editable ) {
    255                 return false;
    256         } else {
    257                 $editable = join(',', $editable);
    258                 $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );
    259         }
    260 
    261         return apply_filters('get_editable_authors', $authors);
    262 }
    263 
    264 /**
    265  * Gets the IDs of any users who can edit posts.
    266  *
    267  * @deprecated 3.1.0 Use get_users()
    268  *
    269  * @param int  $user_id       User ID.
    270  * @param bool $exclude_zeros Optional. Whether to exclude zeroes. Default true.
    271  * @return array Array of editable user IDs, empty array otherwise.
    272  */
    273 function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) {
    274         _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    275 
    276         global $wpdb;
    277 
    278         if ( ! $user = get_userdata( $user_id ) )
    279                 return array();
    280         $post_type_obj = get_post_type_object($post_type);
    281 
    282         if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) {
    283                 if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros )
    284                         return array($user->ID);
    285                 else
    286                         return array();
    287         }
    288 
    289         if ( !is_multisite() )
    290                 $level_key = $wpdb->get_blog_prefix() . 'user_level';
    291         else
    292                 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
    293 
    294         $query = $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s", $level_key);
    295         if ( $exclude_zeros )
    296                 $query .= " AND meta_value != '0'";
    297 
    298         return $wpdb->get_col( $query );
    299 }
    300 
    301 /**
    302  * Gets all users who are not authors.
    303  *
    304  * @deprecated 3.1.0 Use get_users()
    305  */
    306 function get_nonauthor_user_ids() {
    307         _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );
    308 
    309         global $wpdb;
    310 
    311         if ( !is_multisite() )
    312                 $level_key = $wpdb->get_blog_prefix() . 'user_level';
    313         else
    314                 $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
    315 
    316         return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) );
    317 }
    318 
    3193if ( ! class_exists( 'WP_User_Search', false ) ) :
    3204/**
    3215 * WordPress User Search class.
     
    656340        }
    657341}
    658342endif;
    659 
    660 /**
    661  * Retrieves editable posts from other users.
    662  *
    663  * @since 2.3.0
    664  * @deprecated 3.1.0 Use get_posts()
    665  * @see get_posts()
    666  *
    667  * @param int    $user_id User ID to not retrieve posts from.
    668  * @param string $type    Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all).
    669  *                        Default 'any'.
    670  * @return array List of posts from others.
    671  */
    672 function get_others_unpublished_posts( $user_id, $type = 'any' ) {
    673         _deprecated_function( __FUNCTION__, '3.1.0' );
    674 
    675         global $wpdb;
    676 
    677         $editable = get_editable_user_ids( $user_id );
    678 
    679         if ( in_array($type, array('draft', 'pending')) )
    680                 $type_sql = " post_status = '$type' ";
    681         else
    682                 $type_sql = " ( post_status = 'draft' OR post_status = 'pending' ) ";
    683 
    684         $dir = ( 'pending' == $type ) ? 'ASC' : 'DESC';
    685 
    686         if ( !$editable ) {
    687                 $other_unpubs = '';
    688         } else {
    689                 $editable = join(',', $editable);
    690                 $other_unpubs = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_title, post_author FROM $wpdb->posts WHERE post_type = 'post' AND $type_sql AND post_author IN ($editable) AND post_author != %d ORDER BY post_modified $dir", $user_id) );
    691         }
    692 
    693         return apply_filters('get_others_drafts', $other_unpubs);
    694 }
    695 
    696 /**
    697  * Retrieve drafts from other users.
    698  *
    699  * @deprecated 3.1.0 Use get_posts()
    700  * @see get_posts()
    701  *
    702  * @param int $user_id User ID.
    703  * @return array List of drafts from other users.
    704  */
    705 function get_others_drafts($user_id) {
    706         _deprecated_function( __FUNCTION__, '3.1.0' );
    707 
    708         return get_others_unpublished_posts($user_id, 'draft');
    709 }
    710 
    711 /**
    712  * Retrieve pending review posts from other users.
    713  *
    714  * @deprecated 3.1.0 Use get_posts()
    715  * @see get_posts()
    716  *
    717  * @param int $user_id User ID.
    718  * @return array List of posts with pending review post type from other users.
    719  */
    720 function get_others_pending($user_id) {
    721         _deprecated_function( __FUNCTION__, '3.1.0' );
    722 
    723         return get_others_unpublished_posts($user_id, 'pending');
    724 }
    725 
    726 /**
    727  * Output the QuickPress dashboard widget.
    728  *
    729  * @since 3.0.0
    730  * @deprecated 3.2.0 Use wp_dashboard_quick_press()
    731  * @see wp_dashboard_quick_press()
    732  */
    733 function wp_dashboard_quick_press_output() {
    734         _deprecated_function( __FUNCTION__, '3.2.0', 'wp_dashboard_quick_press()' );
    735         wp_dashboard_quick_press();
    736 }
    737 
    738 /**
    739  * Outputs the TinyMCE editor.
    740  *
    741  * @since 2.7.0
    742  * @deprecated 3.3.0 Use wp_editor()
    743  * @see wp_editor()
    744  *
    745  * @staticvar int $num
    746  */
    747 function wp_tiny_mce( $teeny = false, $settings = false ) {
    748         _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    749 
    750         static $num = 1;
    751 
    752         if ( ! class_exists( '_WP_Editors', false ) )
    753                 require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
    754 
    755         $editor_id = 'content' . $num++;
    756 
    757         $set = array(
    758                 'teeny' => $teeny,
    759                 'tinymce' => $settings ? $settings : true,
    760                 'quicktags' => false
    761         );
    762 
    763         $set = _WP_Editors::parse_settings($editor_id, $set);
    764         _WP_Editors::editor_settings($editor_id, $set);
    765 }
    766 
    767 /**
    768  * Preloads TinyMCE dialogs.
    769  *
    770  * @deprecated 3.3.0 Use wp_editor()
    771  * @see wp_editor()
    772  */
    773 function wp_preload_dialogs() {
    774         _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    775 }
    776 
    777 /**
    778  * Prints TinyMCE editor JS.
    779  *
    780  * @deprecated 3.3.0 Use wp_editor()
    781  * @see wp_editor()
    782  */
    783 function wp_print_editor_js() {
    784         _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    785 }
    786 
    787 /**
    788  * Handles quicktags.
    789  *
    790  * @deprecated 3.3.0 Use wp_editor()
    791  * @see wp_editor()
    792  */
    793 function wp_quicktags() {
    794         _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' );
    795 }
    796 
    797 /**
    798  * Returns the screen layout options.
    799  *
    800  * @since 2.8.0
    801  * @deprecated 3.3.0 WP_Screen::render_screen_layout()
    802  * @see WP_Screen::render_screen_layout()
    803  */
    804 function screen_layout( $screen ) {
    805         _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_screen_layout()' );
    806 
    807         $current_screen = get_current_screen();
    808 
    809         if ( ! $current_screen )
    810                 return '';
    811 
    812         ob_start();
    813         $current_screen->render_screen_layout();
    814         return ob_get_clean();
    815 }
    816 
    817 /**
    818  * Returns the screen's per-page options.
    819  *
    820  * @since 2.8.0
    821  * @deprecated 3.3.0 Use WP_Screen::render_per_page_options()
    822  * @see WP_Screen::render_per_page_options()
    823  */
    824 function screen_options( $screen ) {
    825         _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_per_page_options()' );
    826 
    827         $current_screen = get_current_screen();
    828 
    829         if ( ! $current_screen )
    830                 return '';
    831 
    832         ob_start();
    833         $current_screen->render_per_page_options();
    834         return ob_get_clean();
    835 }
    836 
    837 /**
    838  * Renders the screen's help.
    839  *
    840  * @since 2.7.0
    841  * @deprecated 3.3.0 Use WP_Screen::render_screen_meta()
    842  * @see WP_Screen::render_screen_meta()
    843  */
    844 function screen_meta( $screen ) {
    845         $current_screen = get_current_screen();
    846         $current_screen->render_screen_meta();
    847 }
    848 
    849 /**
    850  * Favorite actions were deprecated in version 3.2. Use the admin bar instead.
    851  *
    852  * @since 2.7.0
    853  * @deprecated 3.2.0 Use WP_Admin_Bar
    854  * @see WP_Admin_Bar
    855  */
    856 function favorite_actions() {
    857         _deprecated_function( __FUNCTION__, '3.2.0', 'WP_Admin_Bar' );
    858 }
    859 
    860 /**
    861  * Handles uploading an image.
    862  *
    863  * @deprecated 3.3.0 Use wp_media_upload_handler()
    864  * @see wp_media_upload_handler()
    865  *
    866  * @return null|string
    867  */
    868 function media_upload_image() {
    869         _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    870         return wp_media_upload_handler();
    871 }
    872 
    873 /**
    874  * Handles uploading an audio file.
    875  *
    876  * @deprecated 3.3.0 Use wp_media_upload_handler()
    877  * @see wp_media_upload_handler()
    878  *
    879  * @return null|string
    880  */
    881 function media_upload_audio() {
    882         _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    883         return wp_media_upload_handler();
    884 }
    885 
    886 /**
    887  * Handles uploading a video file.
    888  *
    889  * @deprecated 3.3.0 Use wp_media_upload_handler()
    890  * @see wp_media_upload_handler()
    891  *
    892  * @return null|string
    893  */
    894 function media_upload_video() {
    895         _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    896         return wp_media_upload_handler();
    897 }
    898 
    899 /**
    900  * Handles uploading a generic file.
    901  *
    902  * @deprecated 3.3.0 Use wp_media_upload_handler()
    903  * @see wp_media_upload_handler()
    904  *
    905  * @return null|string
    906  */
    907 function media_upload_file() {
    908         _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    909         return wp_media_upload_handler();
    910 }
    911 
    912 /**
    913  * Handles retrieving the insert-from-URL form for an image.
    914  *
    915  * @deprecated 3.3.0 Use wp_media_insert_url_form()
    916  * @see wp_media_insert_url_form()
    917  *
    918  * @return string
    919  */
    920 function type_url_form_image() {
    921         _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('image')" );
    922         return wp_media_insert_url_form( 'image' );
    923 }
    924 
    925 /**
    926  * Handles retrieving the insert-from-URL form for an audio file.
    927  *
    928  * @deprecated 3.3.0 Use wp_media_insert_url_form()
    929  * @see wp_media_insert_url_form()
    930  *
    931  * @return string
    932  */
    933 function type_url_form_audio() {
    934         _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('audio')" );
    935         return wp_media_insert_url_form( 'audio' );
    936 }
    937 
    938 /**
    939  * Handles retrieving the insert-from-URL form for a video file.
    940  *
    941  * @deprecated 3.3.0 Use wp_media_insert_url_form()
    942  * @see wp_media_insert_url_form()
    943  *
    944  * @return string
    945  */
    946 function type_url_form_video() {
    947         _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('video')" );
    948         return wp_media_insert_url_form( 'video' );
    949 }
    950 
    951 /**
    952  * Handles retrieving the insert-from-URL form for a generic file.
    953  *
    954  * @deprecated 3.3.0 Use wp_media_insert_url_form()
    955  * @see wp_media_insert_url_form()
    956  *
    957  * @return string
    958  */
    959 function type_url_form_file() {
    960         _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" );
    961         return wp_media_insert_url_form( 'file' );
    962 }
    963 
    964 /**
    965  * Add contextual help text for a page.
    966  *
    967  * Creates an 'Overview' help tab.
    968  *
    969  * @since 2.7.0
    970  * @deprecated 3.3.0 Use WP_Screen::add_help_tab()
    971  * @see WP_Screen::add_help_tab()
    972  *
    973  * @param string    $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
    974  * @param string    $help   The content of an 'Overview' help tab.
    975  */
    976 function add_contextual_help( $screen, $help ) {
    977         _deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' );
    978 
    979         if ( is_string( $screen ) )
    980                 $screen = convert_to_screen( $screen );
    981 
    982         WP_Screen::add_old_compat_help( $screen, $help );
    983 }
    984 
    985 /**
    986  * Get the allowed themes for the current site.
    987  *
    988  * @since 3.0.0
    989  * @deprecated 3.4.0 Use wp_get_themes()
    990  * @see wp_get_themes()
    991  *
    992  * @return array $themes Array of allowed themes.
    993  */
    994 function get_allowed_themes() {
    995         _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'allowed' => true ) )" );
    996 
    997         $themes = wp_get_themes( array( 'allowed' => true ) );
    998 
    999         $wp_themes = array();
    1000         foreach ( $themes as $theme ) {
    1001                 $wp_themes[ $theme->get('Name') ] = $theme;
    1002         }
    1003 
    1004         return $wp_themes;
    1005 }
    1006 
    1007 /**
    1008  * Retrieves a list of broken themes.
    1009  *
    1010  * @since 1.5.0
    1011  * @deprecated 3.4.0 Use wp_get_themes()
    1012  * @see wp_get_themes()
    1013  *
    1014  * @return array
    1015  */
    1016 function get_broken_themes() {
    1017         _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" );
    1018 
    1019         $themes = wp_get_themes( array( 'errors' => true ) );
    1020         $broken = array();
    1021         foreach ( $themes as $theme ) {
    1022                 $name = $theme->get('Name');
    1023                 $broken[ $name ] = array(
    1024                         'Name' => $name,
    1025                         'Title' => $name,
    1026                         'Description' => $theme->errors()->get_error_message(),
    1027                 );
    1028         }
    1029         return $broken;
    1030 }
    1031 
    1032 /**
    1033  * Retrieves information on the current active theme.
    1034  *
    1035  * @since 2.0.0
    1036  * @deprecated 3.4.0 Use wp_get_theme()
    1037  * @see wp_get_theme()
    1038  *
    1039  * @return WP_Theme
    1040  */
    1041 function current_theme_info() {
    1042         _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );
    1043 
    1044         return wp_get_theme();
    1045 }
    1046 
    1047 /**
    1048  * This was once used to display an 'Insert into Post' button.
    1049  *
    1050  * Now it is deprecated and stubbed.
    1051  *
    1052  * @deprecated 3.5.0
    1053  */
    1054 function _insert_into_post_button( $type ) {
    1055         _deprecated_function( __FUNCTION__, '3.5.0' );
    1056 }
    1057 
    1058 /**
    1059  * This was once used to display a media button.
    1060  *
    1061  * Now it is deprecated and stubbed.
    1062  *
    1063  * @deprecated 3.5.0
    1064  */
    1065 function _media_button($title, $icon, $type, $id) {
    1066         _deprecated_function( __FUNCTION__, '3.5.0' );
    1067 }
    1068 
    1069 /**
    1070  * Gets an existing post and format it for editing.
    1071  *
    1072  * @since 2.0.0
    1073  * @deprecated 3.5.0 Use get_post()
    1074  * @see get_post()
    1075  *
    1076  * @param int $id
    1077  * @return object
    1078  */
    1079 function get_post_to_edit( $id ) {
    1080         _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' );
    1081 
    1082         return get_post( $id, OBJECT, 'edit' );
    1083 }
    1084 
    1085 /**
    1086  * Gets the default page information to use.
    1087  *
    1088  * @since 2.5.0
    1089  * @deprecated 3.5.0 Use get_default_post_to_edit()
    1090  * @see get_default_post_to_edit()
    1091  *
    1092  * @return WP_Post Post object containing all the default post data as attributes
    1093  */
    1094 function get_default_page_to_edit() {
    1095         _deprecated_function( __FUNCTION__, '3.5.0', "get_default_post_to_edit( 'page' )" );
    1096 
    1097         $page = get_default_post_to_edit();
    1098         $page->post_type = 'page';
    1099         return $page;
    1100 }
    1101 
    1102 /**
    1103  * This was once used to create a thumbnail from an Image given a maximum side size.
    1104  *
    1105  * @since 1.2.0
    1106  * @deprecated 3.5.0 Use image_resize()
    1107  * @see image_resize()
    1108  *
    1109  * @param mixed $file Filename of the original image, Or attachment id.
    1110  * @param int $max_side Maximum length of a single side for the thumbnail.
    1111  * @param mixed $deprecated Never used.
    1112  * @return string Thumbnail path on success, Error string on failure.
    1113  */
    1114 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
    1115         _deprecated_function( __FUNCTION__, '3.5.0', 'image_resize()' );
    1116         return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
    1117 }
    1118 
    1119 /**
    1120  * This was once used to display a meta box for the nav menu theme locations.
    1121  *
    1122  * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen.
    1123  *
    1124  * @since 3.0.0
    1125  * @deprecated 3.6.0
    1126  */
    1127 function wp_nav_menu_locations_meta_box() {
    1128         _deprecated_function( __FUNCTION__, '3.6.0' );
    1129 }
    1130 
    1131 /**
    1132  * This was once used to kick-off the Core Updater.
    1133  *
    1134  * Deprecated in favor of instantating a Core_Upgrader instance directly,
    1135  * and calling the 'upgrade' method.
    1136  *
    1137  * @since 2.7.0
    1138  * @deprecated 3.7.0 Use Core_Upgrader
    1139  * @see Core_Upgrader
    1140  */
    1141 function wp_update_core($current, $feedback = '') {
    1142         _deprecated_function( __FUNCTION__, '3.7.0', 'new Core_Upgrader();' );
    1143 
    1144         if ( !empty($feedback) )
    1145                 add_filter('update_feedback', $feedback);
    1146 
    1147         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    1148         $upgrader = new Core_Upgrader();
    1149         return $upgrader->upgrade($current);
    1150 
    1151 }
    1152 
    1153 /**
    1154  * This was once used to kick-off the Plugin Updater.
    1155  *
    1156  * Deprecated in favor of instantating a Plugin_Upgrader instance directly,
    1157  * and calling the 'upgrade' method.
    1158  * Unused since 2.8.0.
    1159  *
    1160  * @since 2.5.0
    1161  * @deprecated 3.7.0 Use Plugin_Upgrader
    1162  * @see Plugin_Upgrader
    1163  */
    1164 function wp_update_plugin($plugin, $feedback = '') {
    1165         _deprecated_function( __FUNCTION__, '3.7.0', 'new Plugin_Upgrader();' );
    1166 
    1167         if ( !empty($feedback) )
    1168                 add_filter('update_feedback', $feedback);
    1169 
    1170         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    1171         $upgrader = new Plugin_Upgrader();
    1172         return $upgrader->upgrade($plugin);
    1173 }
    1174 
    1175 /**
    1176  * This was once used to kick-off the Theme Updater.
    1177  *
    1178  * Deprecated in favor of instantiating a Theme_Upgrader instance directly,
    1179  * and calling the 'upgrade' method.
    1180  * Unused since 2.8.0.
    1181  *
    1182  * @since 2.7.0
    1183  * @deprecated 3.7.0 Use Theme_Upgrader
    1184  * @see Theme_Upgrader
    1185  */
    1186 function wp_update_theme($theme, $feedback = '') {
    1187         _deprecated_function( __FUNCTION__, '3.7.0', 'new Theme_Upgrader();' );
    1188 
    1189         if ( !empty($feedback) )
    1190                 add_filter('update_feedback', $feedback);
    1191 
    1192         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    1193         $upgrader = new Theme_Upgrader();
    1194         return $upgrader->upgrade($theme);
    1195 }
    1196 
    1197 /**
    1198  * This was once used to display attachment links. Now it is deprecated and stubbed.
    1199  *
    1200  * @since 2.0.0
    1201  * @deprecated 3.7.0
    1202  *
    1203  * @param int|bool $id
    1204  */
    1205 function the_attachment_links( $id = false ) {
    1206         _deprecated_function( __FUNCTION__, '3.7.0' );
    1207 }
    1208 
    1209 /**
    1210  * Displays a screen icon.
    1211  *
    1212  * @since 2.7.0
    1213  * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output.
    1214  * @deprecated 3.8.0 Use get_screen_icon()
    1215  * @see get_screen_icon()
    1216  */
    1217 function screen_icon() {
    1218         echo get_screen_icon();
    1219 }
    1220 
    1221 /**
    1222  * Retrieves the screen icon (no longer used in 3.8+).
    1223  *
    1224  * @deprecated 3.8.0
    1225  *
    1226  * @return string
    1227  */
    1228 function get_screen_icon() {
    1229         return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
    1230 }
    1231 
    1232 /**
    1233  * Deprecated dashboard widget controls.
    1234  *
    1235  * @since 2.5.0
    1236  * @deprecated 3.8.0
    1237  */
    1238 function wp_dashboard_incoming_links_output() {}
    1239 
    1240 /**
    1241  * Deprecated dashboard secondary output.
    1242  *
    1243  * @deprecated 3.8.0
    1244  */
    1245 function wp_dashboard_secondary_output() {}
    1246 
    1247 /**
    1248  * Deprecated dashboard widget controls.
    1249  *
    1250  * @since 2.7.0
    1251  * @deprecated 3.8.0
    1252  */
    1253 function wp_dashboard_incoming_links() {}
    1254 
    1255 /**
    1256  * Deprecated dashboard incoming links control.
    1257  *
    1258  * @deprecated 3.8.0
    1259  */
    1260 function wp_dashboard_incoming_links_control() {}
    1261 
    1262 /**
    1263  * Deprecated dashboard plugins control.
    1264  *
    1265  * @deprecated 3.8.0
    1266  */
    1267 function wp_dashboard_plugins() {}
    1268 
    1269 /**
    1270  * Deprecated dashboard primary control.
    1271  *
    1272  * @deprecated 3.8.0
    1273  */
    1274 function wp_dashboard_primary_control() {}
    1275 
    1276 /**
    1277  * Deprecated dashboard recent comments control.
    1278  *
    1279  * @deprecated 3.8.0
    1280  */
    1281 function wp_dashboard_recent_comments_control() {}
    1282 
    1283 /**
    1284  * Deprecated dashboard secondary section.
    1285  *
    1286  * @deprecated 3.8.0
    1287  */
    1288 function wp_dashboard_secondary() {}
    1289 
    1290 /**
    1291  * Deprecated dashboard secondary control.
    1292  *
    1293  * @deprecated 3.8.0
    1294  */
    1295 function wp_dashboard_secondary_control() {}
    1296 
    1297 /**
    1298  * This was once used to move child posts to a new parent.
    1299  *
    1300  * @since 2.3.0
    1301  * @deprecated 3.9.0
    1302  * @access private
    1303  *
    1304  * @param int $old_ID
    1305  * @param int $new_ID
    1306  */
    1307 function _relocate_children( $old_ID, $new_ID ) {
    1308         _deprecated_function( __FUNCTION__, '3.9.0' );
    1309 }
    1310 
    1311 /**
    1312  * Add a top-level menu page in the 'objects' section.
    1313  *
    1314  * This function takes a capability which will be used to determine whether
    1315  * or not a page is included in the menu.
    1316  *
    1317  * The function which is hooked in to handle the output of the page must check
    1318  * that the user has the required capability as well.
    1319  *
    1320  * @since 2.7.0
    1321  *
    1322  * @deprecated 4.5.0 Use add_menu_page()
    1323  * @see add_menu_page()
    1324  * @global int $_wp_last_object_menu
    1325  *
    1326  * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
    1327  * @param string   $menu_title The text to be used for the menu.
    1328  * @param string   $capability The capability required for this menu to be displayed to the user.
    1329  * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
    1330  * @param callable $function   The function to be called to output the content for this page.
    1331  * @param string   $icon_url   The url to the icon to be used for this menu.
    1332  * @return string The resulting page's hook_suffix.
    1333  */
    1334 function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') {
    1335         _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' );
    1336 
    1337         global $_wp_last_object_menu;
    1338 
    1339         $_wp_last_object_menu++;
    1340 
    1341         return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $_wp_last_object_menu);
    1342 }
    1343 
    1344 /**
    1345  * Add a top-level menu page in the 'utility' section.
    1346  *
    1347  * This function takes a capability which will be used to determine whether
    1348  * or not a page is included in the menu.
    1349  *
    1350  * The function which is hooked in to handle the output of the page must check
    1351  * that the user has the required capability as well.
    1352  *
    1353  * @since 2.7.0
    1354  *
    1355  * @deprecated 4.5.0 Use add_menu_page()
    1356  * @see add_menu_page()
    1357  * @global int $_wp_last_utility_menu
    1358  *
    1359  * @param string   $page_title The text to be displayed in the title tags of the page when the menu is selected.
    1360  * @param string   $menu_title The text to be used for the menu.
    1361  * @param string   $capability The capability required for this menu to be displayed to the user.
    1362  * @param string   $menu_slug  The slug name to refer to this menu by (should be unique for this menu).
    1363  * @param callable $function   The function to be called to output the content for this page.
    1364  * @param string   $icon_url   The url to the icon to be used for this menu.
    1365  * @return string The resulting page's hook_suffix.
    1366  */
    1367 function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') {
    1368         _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' );
    1369 
    1370         global $_wp_last_utility_menu;
    1371 
    1372         $_wp_last_utility_menu++;
    1373 
    1374         return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $_wp_last_utility_menu);
    1375 }
    1376 
    1377 /**
    1378  * Disables autocomplete on the 'post' form (Add/Edit Post screens) for WebKit browsers,
    1379  * as they disregard the autocomplete setting on the editor textarea. That can break the editor
    1380  * when the user navigates to it with the browser's Back button. See #28037
    1381  *
    1382  * Replaced with wp_page_reload_on_back_button_js() that also fixes this problem.
    1383  *
    1384  * @since 4.0.0
    1385  * $deprecated 4.6.0
    1386  *
    1387  * @global bool $is_safari
    1388  * @global bool $is_chrome
    1389  */
    1390 function post_form_autocomplete_off() {
    1391         global $is_safari, $is_chrome;
    1392 
    1393         _deprecated_function( __FUNCTION__, '4.6.0' );
    1394 
    1395         if ( $is_safari || $is_chrome ) {
    1396                 echo ' autocomplete="off"';
    1397         }
    1398 }
  • src/wp-admin/includes/deprecated.php

     
    316316        return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) );
    317317}
    318318
    319 if ( ! class_exists( 'WP_User_Search', false ) ) :
    320319/**
    321  * WordPress User Search class.
    322  *
    323  * @since 2.1.0
    324  * @deprecated 3.1.0 Use WP_User_Query
    325  */
    326 class WP_User_Search {
    327 
    328         /**
    329          * {@internal Missing Description}}
    330          *
    331          * @since 2.1.0
    332          * @access private
    333          * @var mixed
    334          */
    335         var $results;
    336 
    337         /**
    338          * {@internal Missing Description}}
    339          *
    340          * @since 2.1.0
    341          * @access private
    342          * @var string
    343          */
    344         var $search_term;
    345 
    346         /**
    347          * Page number.
    348          *
    349          * @since 2.1.0
    350          * @access private
    351          * @var int
    352          */
    353         var $page;
    354 
    355         /**
    356          * Role name that users have.
    357          *
    358          * @since 2.5.0
    359          * @access private
    360          * @var string
    361          */
    362         var $role;
    363 
    364         /**
    365          * Raw page number.
    366          *
    367          * @since 2.1.0
    368          * @access private
    369          * @var int|bool
    370          */
    371         var $raw_page;
    372 
    373         /**
    374          * Amount of users to display per page.
    375          *
    376          * @since 2.1.0
    377          * @access public
    378          * @var int
    379          */
    380         var $users_per_page = 50;
    381 
    382         /**
    383          * {@internal Missing Description}}
    384          *
    385          * @since 2.1.0
    386          * @access private
    387          * @var int
    388          */
    389         var $first_user;
    390 
    391         /**
    392          * {@internal Missing Description}}
    393          *
    394          * @since 2.1.0
    395          * @access private
    396          * @var int
    397          */
    398         var $last_user;
    399 
    400         /**
    401          * {@internal Missing Description}}
    402          *
    403          * @since 2.1.0
    404          * @access private
    405          * @var string
    406          */
    407         var $query_limit;
    408 
    409         /**
    410          * {@internal Missing Description}}
    411          *
    412          * @since 3.0.0
    413          * @access private
    414          * @var string
    415          */
    416         var $query_orderby;
    417 
    418         /**
    419          * {@internal Missing Description}}
    420          *
    421          * @since 3.0.0
    422          * @access private
    423          * @var string
    424          */
    425         var $query_from;
    426 
    427         /**
    428          * {@internal Missing Description}}
    429          *
    430          * @since 3.0.0
    431          * @access private
    432          * @var string
    433          */
    434         var $query_where;
    435 
    436         /**
    437          * {@internal Missing Description}}
    438          *
    439          * @since 2.1.0
    440          * @access private
    441          * @var int
    442          */
    443         var $total_users_for_query = 0;
    444 
    445         /**
    446          * {@internal Missing Description}}
    447          *
    448          * @since 2.1.0
    449          * @access private
    450          * @var bool
    451          */
    452         var $too_many_total_users = false;
    453 
    454         /**
    455          * {@internal Missing Description}}
    456          *
    457          * @since 2.1.0
    458          * @access private
    459          * @var WP_Error
    460          */
    461         var $search_errors;
    462 
    463         /**
    464          * {@internal Missing Description}}
    465          *
    466          * @since 2.7.0
    467          * @access private
    468          * @var string
    469          */
    470         var $paging_text;
    471 
    472         /**
    473          * PHP5 Constructor - Sets up the object properties.
    474          *
    475          * @since 2.1.0
    476          *
    477          * @param string $search_term Search terms string.
    478          * @param int $page Optional. Page ID.
    479          * @param string $role Role name.
    480          * @return WP_User_Search
    481          */
    482         function __construct( $search_term = '', $page = '', $role = '' ) {
    483                 _deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' );
    484 
    485                 $this->search_term = wp_unslash( $search_term );
    486                 $this->raw_page = ( '' == $page ) ? false : (int) $page;
    487                 $this->page = (int) ( '' == $page ) ? 1 : $page;
    488                 $this->role = $role;
    489 
    490                 $this->prepare_query();
    491                 $this->query();
    492                 $this->do_paging();
    493         }
    494 
    495         /**
    496          * PHP4 Constructor - Sets up the object properties.
    497          *
    498          * @since 2.1.0
    499          *
    500          * @param string $search_term Search terms string.
    501          * @param int $page Optional. Page ID.
    502          * @param string $role Role name.
    503          * @return WP_User_Search
    504          */
    505         public function WP_User_Search( $search_term = '', $page = '', $role = '' ) {
    506                 self::__construct( $search_term, $page, $role );
    507         }
    508 
    509         /**
    510          * Prepares the user search query (legacy).
    511          *
    512          * @since 2.1.0
    513          * @access public
    514          */
    515         public function prepare_query() {
    516                 global $wpdb;
    517                 $this->first_user = ($this->page - 1) * $this->users_per_page;
    518 
    519                 $this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $this->first_user, $this->users_per_page);
    520                 $this->query_orderby = ' ORDER BY user_login';
    521 
    522                 $search_sql = '';
    523                 if ( $this->search_term ) {
    524                         $searches = array();
    525                         $search_sql = 'AND (';
    526                         foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col )
    527                                 $searches[] = $wpdb->prepare( $col . ' LIKE %s', '%' . like_escape($this->search_term) . '%' );
    528                         $search_sql .= implode(' OR ', $searches);
    529                         $search_sql .= ')';
    530                 }
    531 
    532                 $this->query_from = " FROM $wpdb->users";
    533                 $this->query_where = " WHERE 1=1 $search_sql";
    534 
    535                 if ( $this->role ) {
    536                         $this->query_from .= " INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id";
    537                         $this->query_where .= $wpdb->prepare(" AND $wpdb->usermeta.meta_key = '{$wpdb->prefix}capabilities' AND $wpdb->usermeta.meta_value LIKE %s", '%' . $this->role . '%');
    538                 } elseif ( is_multisite() ) {
    539                         $level_key = $wpdb->prefix . 'capabilities'; // wpmu site admins don't have user_levels
    540                         $this->query_from .= ", $wpdb->usermeta";
    541                         $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'";
    542                 }
    543 
    544                 do_action_ref_array( 'pre_user_search', array( &$this ) );
    545         }
    546 
    547         /**
    548          * Executes the user search query.
    549          *
    550          * @since 2.1.0
    551          * @access public
    552          */
    553         public function query() {
    554                 global $wpdb;
    555 
    556                 $this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit);
    557 
    558                 if ( $this->results )
    559                         $this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // no limit
    560                 else
    561                         $this->search_errors = new WP_Error('no_matching_users_found', __('No users found.'));
    562         }
    563 
    564         /**
    565          * Prepares variables for use in templates.
    566          *
    567          * @since 2.1.0
    568          * @access public
    569          */
    570         function prepare_vars_for_template_usage() {}
    571 
    572         /**
    573          * Handles paging for the user search query.
    574          *
    575          * @since 2.1.0
    576          * @access public
    577          */
    578         public function do_paging() {
    579                 if ( $this->total_users_for_query > $this->users_per_page ) { // have to page the results
    580                         $args = array();
    581                         if ( ! empty($this->search_term) )
    582                                 $args['usersearch'] = urlencode($this->search_term);
    583                         if ( ! empty($this->role) )
    584                                 $args['role'] = urlencode($this->role);
    585 
    586                         $this->paging_text = paginate_links( array(
    587                                 'total' => ceil($this->total_users_for_query / $this->users_per_page),
    588                                 'current' => $this->page,
    589                                 'base' => 'users.php?%_%',
    590                                 'format' => 'userspage=%#%',
    591                                 'add_args' => $args
    592                         ) );
    593                         if ( $this->paging_text ) {
    594                                 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s',
    595                                         number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ),
    596                                         number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ),
    597                                         number_format_i18n( $this->total_users_for_query ),
    598                                         $this->paging_text
    599                                 );
    600                         }
    601                 }
    602         }
    603 
    604         /**
    605          * Retrieves the user search query results.
    606          *
    607          * @since 2.1.0
    608          * @access public
    609          *
    610          * @return array
    611          */
    612         public function get_results() {
    613                 return (array) $this->results;
    614         }
    615 
    616         /**
    617          * Displaying paging text.
    618          *
    619          * @see do_paging() Builds paging text.
    620          *
    621          * @since 2.1.0
    622          * @access public
    623          */
    624         function page_links() {
    625                 echo $this->paging_text;
    626         }
    627 
    628         /**
    629          * Whether paging is enabled.
    630          *
    631          * @see do_paging() Builds paging text.
    632          *
    633          * @since 2.1.0
    634          * @access public
    635          *
    636          * @return bool
    637          */
    638         function results_are_paged() {
    639                 if ( $this->paging_text )
    640                         return true;
    641                 return false;
    642         }
    643 
    644         /**
    645          * Whether there are search terms.
    646          *
    647          * @since 2.1.0
    648          * @access public
    649          *
    650          * @return bool
    651          */
    652         function is_search() {
    653                 if ( $this->search_term )
    654                         return true;
    655                 return false;
    656         }
    657 }
    658 endif;
    659 
    660 /**
    661320 * Retrieves editable posts from other users.
    662321 *
    663322 * @since 2.3.0
     
    749408
    750409        static $num = 1;
    751410
    752         if ( ! class_exists( '_WP_Editors', false ) )
    753                 require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
    754 
    755411        $editor_id = 'content' . $num++;
    756412
    757413        $set = array(
     
    1144800        if ( !empty($feedback) )
    1145801                add_filter('update_feedback', $feedback);
    1146802
    1147         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    1148803        $upgrader = new Core_Upgrader();
    1149804        return $upgrader->upgrade($current);
    1150805
     
    1167822        if ( !empty($feedback) )
    1168823                add_filter('update_feedback', $feedback);
    1169824
    1170         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    1171825        $upgrader = new Plugin_Upgrader();
    1172826        return $upgrader->upgrade($plugin);
    1173827}
     
    1189843        if ( !empty($feedback) )
    1190844                add_filter('update_feedback', $feedback);
    1191845
    1192         include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    1193846        $upgrader = new Theme_Upgrader();
    1194847        return $upgrader->upgrade($theme);
    1195848}
  • src/wp-admin/includes/file.php

     
    737737
    738738        mbstring_binary_safe_encoding();
    739739
    740         require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
    741 
    742740        $archive = new PclZip($file);
    743741
    744742        $archive_files = $archive->extract(PCLZIP_OPT_EXTRACT_AS_STRING);
     
    886884function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) {
    887885        global $wp_filesystem;
    888886
    889         require_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php');
    890 
    891887        $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership );
    892888
    893889        if ( ! $method )
  • src/wp-admin/includes/list-table.php

     
    4040        );
    4141
    4242        if ( isset( $core_classes[ $class ] ) ) {
    43                 foreach ( (array) $core_classes[ $class ] as $required )
    44                         require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' );
    45 
    4643                if ( isset( $args['screen'] ) )
    4744                        $args['screen'] = convert_to_screen( $args['screen'] );
    4845                elseif ( isset( $GLOBALS['hook_suffix'] ) )
  • src/wp-admin/includes/media.php

     
    30133013                define( 'GETID3_TEMP_DIR', get_temp_dir() );
    30143014        }
    30153015
    3016         if ( ! class_exists( 'getID3', false ) ) {
    3017                 require( ABSPATH . WPINC . '/ID3/getid3.php' );
    3018         }
    30193016        $id3 = new getID3();
    30203017        $data = $id3->analyze( $file );
    30213018
     
    30743071                define( 'GETID3_TEMP_DIR', get_temp_dir() );
    30753072        }
    30763073
    3077         if ( ! class_exists( 'getID3', false ) ) {
    3078                 require( ABSPATH . WPINC . '/ID3/getid3.php' );
    3079         }
    30803074        $id3 = new getID3();
    30813075        $data = $id3->analyze( $file );
    30823076
  • src/wp-admin/includes/nav-menu.php

     
    77 * @since 3.0.0
    88 */
    99
    10 /** Walker_Nav_Menu_Edit class */
    11 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php' );
    12 
    13 /** Walker_Nav_Menu_Checklist class */
    14 require_once( ABSPATH . 'wp-admin/includes/class-walker-nav-menu-checklist.php' );
    15 
    1610/**
    1711 * Prints the appropriate response to a menu quick search.
    1812 *
  • src/wp-admin/includes/template.php

     
    88 * @subpackage Administration
    99 */
    1010
    11 /** Walker_Category_Checklist class */
    12 require_once( ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php' );
    13 
    14 /** WP_Internal_Pointers class */
    15 require_once( ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php' );
    16 
    1711//
    1812// Category Checklists
    1913//
  • src/wp-admin/includes/translation-install.php

     
    202202        }
    203203        $translation = (object) $translation;
    204204
    205         require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    206205        $skin = new Automatic_Upgrader_Skin;
    207206        $upgrader = new Language_Pack_Upgrader( $skin );
    208207        $translation->type = 'core';
     
    228227                return false;
    229228        }
    230229
    231         require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    232230        $skin = new Automatic_Upgrader_Skin;
    233231        $upgrader = new Language_Pack_Upgrader( $skin );
    234232        $upgrader->init();
  • src/wp-admin/includes/update.php

     
    7474        if ( ! $updates || empty( $updates->updates ) )
    7575                return false;
    7676
    77         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    78 
    7977        $auto_update = false;
    8078        $upgrader = new WP_Automatic_Updater;
    8179        foreach ( $updates->updates as $update ) {
  • src/wp-admin/network/upgrade.php

     
    1313if ( ! is_multisite() )
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    16 require_once( ABSPATH . WPINC . '/http.php' );
    17 
    1816$title = __( 'Upgrade Network' );
    1917$parent_file = 'upgrade.php';
    2018
  • src/wp-admin/press-this.php

     
    2323 * @global WP_Press_This $wp_press_this
    2424 */
    2525if ( empty( $GLOBALS['wp_press_this'] ) ) {
    26         include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
     26        $GLOBALS['wp_press_this'] = new WP_Press_This();
    2727}
    2828
    2929$GLOBALS['wp_press_this']->html();
  • src/wp-admin/update-core.php

     
    163163                _e('You have the latest version of WordPress.');
    164164
    165165                if ( wp_http_supports( array( 'ssl' ) ) ) {
    166                         require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    167166                        $upgrader = new WP_Automatic_Updater;
    168167                        $future_minor_update = (object) array(
    169168                                'current'       => $wp_version . '.1.next.minor',
     
    187186        }
    188187
    189188        if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) {
    190                 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    191189                $upgrader = new WP_Automatic_Updater;
    192190                if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) {
    193191                        echo '<div class="updated inline"><p>';
     
    438436function do_core_upgrade( $reinstall = false ) {
    439437        global $wp_filesystem;
    440438
    441         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    442 
    443439        if ( $reinstall )
    444440                $url = 'update-core.php?action=do-core-reinstall';
    445441        else
     
    710706        check_admin_referer( 'upgrade-translations' );
    711707
    712708        require_once( ABSPATH . 'wp-admin/admin-header.php' );
    713         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    714709
    715710        $url = 'update-core.php?action=do-translation-upgrade';
    716711        $nonce = 'upgrade-translations';
  • src/wp-admin/update.php

     
    1212/** WordPress Administration Bootstrap */
    1313require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    15 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    16 
    1715if ( isset($_GET['action']) ) {
    1816        $plugin = isset($_REQUEST['plugin']) ? trim($_REQUEST['plugin']) : '';
    1917        $theme = isset($_REQUEST['theme']) ? urldecode($_REQUEST['theme']) : '';
     
    218216                if ( ! current_user_can('install_themes') )
    219217                        wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
    220218
    221                 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
    222 
    223219                check_admin_referer( 'install-theme_' . $theme );
    224220                $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth.
    225221
  • src/wp-includes/Text/Diff/Renderer/inline.php

     
    1313
    1414/** Text_Diff_Renderer */
    1515
    16 // WP #7391
    17 require_once dirname(dirname(__FILE__)) . '/Renderer.php';
    18 
    1916/**
    2017 * "Inline" diff renderer.
    2118 *
  • src/wp-includes/Text/Diff.php

     
    4747            $engine = basename($engine);
    4848        }
    4949
    50         // WP #7391
    51         require_once dirname(__FILE__).'/Diff/Engine/' . $engine . '.php';
    5250        $class = 'Text_Diff_Engine_' . $engine;
    5351        $diff_engine = new $class();
    5452
  • src/wp-includes/admin-bar.php

     
    2626        if ( ! is_admin_bar_showing() )
    2727                return false;
    2828
    29         /* Load the admin bar class code ready for instantiation */
    30         require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
    31 
    3229        /* Instantiate the admin bar */
    3330
    3431        /**
     
    294291        }
    295292
    296293        if ( is_network_admin() ) {
    297                 /* translators: %s: site name */ 
     294                /* translators: %s: site name */
    298295                $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) );
    299296        } elseif ( is_user_admin() ) {
    300                 /* translators: %s: site name */ 
     297                /* translators: %s: site name */
    301298                $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) );
    302299        }
    303300
  • src/wp-includes/class-oembed.php

     
    678678        }
    679679}
    680680
    681 /**
    682  * Returns the initialized WP_oEmbed object.
    683  *
    684  * @since 2.9.0
    685  * @access private
    686  *
    687  * @staticvar WP_oEmbed $wp_oembed
    688  *
    689  * @return WP_oEmbed object.
    690  */
    691 function _wp_oembed_get_object() {
    692         static $wp_oembed = null;
    693 
    694         if ( is_null( $wp_oembed ) ) {
    695                 $wp_oembed = new WP_oEmbed();
    696         }
    697         return $wp_oembed;
    698 }
  • src/wp-includes/class-phpmailer.php

     
    13851385    public function getSMTPInstance()
    13861386    {
    13871387        if (!is_object($this->smtp)) {
    1388                 require_once( 'class-smtp.php' );
    13891388            $this->smtp = new SMTP;
    13901389        }
    13911390        return $this->smtp;
  • src/wp-includes/class-simplepie.php

     
    11<?php
    22if ( ! class_exists( 'SimplePie', false ) ) :
    33
    4 // Load classes we will need.
    5 require ABSPATH . WPINC . '/SimplePie/Misc.php';
    6 require ABSPATH . WPINC . '/SimplePie/Cache.php';
    7 require ABSPATH . WPINC . '/SimplePie/File.php';
    8 require ABSPATH . WPINC . '/SimplePie/Sanitize.php';
    9 require ABSPATH . WPINC . '/SimplePie/Registry.php';
    10 require ABSPATH . WPINC . '/SimplePie/IRI.php';
    11 require ABSPATH . WPINC . '/SimplePie/Locator.php';
    12 require ABSPATH . WPINC . '/SimplePie/Content/Type/Sniffer.php';
    13 require ABSPATH . WPINC . '/SimplePie/XML/Declaration/Parser.php';
    14 require ABSPATH . WPINC . '/SimplePie/Parser.php';
    15 require ABSPATH . WPINC . '/SimplePie/Item.php';
    16 require ABSPATH . WPINC . '/SimplePie/Parse/Date.php';
    17 require ABSPATH . WPINC . '/SimplePie/Author.php';
    18 
    194/**
    205 * WordPress autoloader for SimplePie.
    216 *
  • src/wp-includes/class-wp-customize-control.php

     
    599599
    600600}
    601601
    602 /** WP_Customize_Color_Control class */
    603 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
    604 
    605 /** WP_Customize_Media_Control class */
    606 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
    607 
    608 /** WP_Customize_Upload_Control class */
    609 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
    610 
    611 /** WP_Customize_Image_Control class */
    612 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
    613 
    614 /** WP_Customize_Background_Image_Control class */
    615 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
    616 
    617 /** WP_Customize_Cropped_Image_Control class */
    618 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
    619 
    620 /** WP_Customize_Site_Icon_Control class */
    621 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
    622 
    623 /** WP_Customize_Header_Image_Control class */
    624 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
    625 
    626 /** WP_Customize_Theme_Control class */
    627 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
    628 
    629 /** WP_Widget_Area_Customize_Control class */
    630 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
    631 
    632 /** WP_Widget_Form_Customize_Control class */
    633 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
    634 
    635 /** WP_Customize_Nav_Menu_Control class */
    636 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
    637 
    638 /** WP_Customize_Nav_Menu_Item_Control class */
    639 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
    640 
    641 /** WP_Customize_Nav_Menu_Location_Control class */
    642 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
    643 
    644 /** WP_Customize_Nav_Menu_Name_Control class */
    645 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
    646 
    647 /** WP_Customize_Nav_Menu_Auto_Add_Control class */
    648 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
    649 
    650 /** WP_Customize_New_Menu_Control class */
    651 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-control.php' );
  • src/wp-includes/class-wp-customize-manager.php

     
    205205         * @since 3.4.0
    206206         */
    207207        public function __construct() {
    208                 require_once( ABSPATH . WPINC . '/class-wp-customize-setting.php' );
    209                 require_once( ABSPATH . WPINC . '/class-wp-customize-panel.php' );
    210                 require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' );
    211                 require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' );
    212 
    213                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
    214                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
    215                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
    216                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
    217                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
    218                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
    219                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
    220                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
    221                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
    222                 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
    223                 require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
    224                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
    225                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
    226                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
    227                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
    228                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
    229                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-control.php' );
    230 
    231                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );
    232 
    233                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
    234                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
    235                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
    236                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' );
    237 
    238                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );
    239                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );
    240                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );
    241                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );
    242                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );
    243 
    244208                /**
    245209                 * Filters the core Customizer components to load.
    246210                 *
     
    258222                 */
    259223                $components = apply_filters( 'customize_loaded_components', $this->components, $this );
    260224
    261                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-selective-refresh.php' );
    262225                $this->selective_refresh = new WP_Customize_Selective_Refresh( $this );
    263226
    264227                if ( in_array( 'widgets', $components, true ) ) {
    265                         require_once( ABSPATH . WPINC . '/class-wp-customize-widgets.php' );
    266228                        $this->widgets = new WP_Customize_Widgets( $this );
    267229                }
    268230
    269231                if ( in_array( 'nav_menus', $components, true ) ) {
    270                         require_once( ABSPATH . WPINC . '/class-wp-customize-nav-menus.php' );
    271232                        $this->nav_menus = new WP_Customize_Nav_Menus( $this );
    272233                }
    273234
  • src/wp-includes/class-wp-customize-panel.php

     
    384384                <?php
    385385        }
    386386}
    387 
    388 /** WP_Customize_Nav_Menus_Panel class */
    389 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );
  • src/wp-includes/class-wp-customize-section.php

     
    373373                <?php
    374374        }
    375375}
    376 
    377 /** WP_Customize_Themes_Section class */
    378 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
    379 
    380 /** WP_Customize_Sidebar_Section class */
    381 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
    382 
    383 /** WP_Customize_Nav_Menu_Section class */
    384 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
    385 
    386 /** WP_Customize_New_Menu_Section class */
    387 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' );
  • src/wp-includes/class-wp-customize-setting.php

     
    893893                return isset( $result );
    894894        }
    895895}
    896 
    897 /** WP_Customize_Filter_Setting class */
    898 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );
    899 
    900 /** WP_Customize_Header_Image_Setting class */
    901 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );
    902 
    903 /** WP_Customize_Background_Image_Setting class */
    904 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );
    905 
    906 /** WP_Customize_Nav_Menu_Item_Setting class */
    907 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );
    908 
    909 /** WP_Customize_Nav_Menu_Setting class */
    910 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );
  • src/wp-includes/class-wp-error.php

     
    202202                unset( $this->error_data[ $code ] );
    203203        }
    204204}
    205 
    206 /**
    207  * Check whether variable is a WordPress Error.
    208  *
    209  * Returns true if $thing is an object of the WP_Error class.
    210  *
    211  * @since 2.1.0
    212  *
    213  * @param mixed $thing Check if unknown variable is a WP_Error object.
    214  * @return bool True, if WP_Error. False, if not WP_Error.
    215  */
    216 function is_wp_error( $thing ) {
    217         return ( $thing instanceof WP_Error );
    218 }
  • src/wp-includes/comment.php

     
    23692369 */
    23702370function pingback($content, $post_ID) {
    23712371        global $wp_version;
    2372         include_once(ABSPATH . WPINC . '/class-IXR.php');
    2373         include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');
    23742372
    23752373        // original code by Mort (http://mort.mine.nu:8080)
    23762374        $post_links = array();
     
    25132511 */
    25142512function weblog_ping($server = '', $path = '') {
    25152513        global $wp_version;
    2516         include_once(ABSPATH . WPINC . '/class-IXR.php');
    2517         include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');
    25182514
    25192515        // using a timeout of 3 seconds should be enough to cover slow servers
    25202516        $client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path));
  • src/wp-includes/compat.php

     
    280280                global $wp_json;
    281281
    282282                if ( ! ( $wp_json instanceof Services_JSON ) ) {
    283                         require_once( ABSPATH . WPINC . '/class-json.php' );
    284283                        $wp_json = new Services_JSON();
    285284                }
    286285
     
    299298                global $wp_json;
    300299
    301300                if ( ! ($wp_json instanceof Services_JSON ) ) {
    302                         require_once( ABSPATH . WPINC . '/class-json.php' );
    303301                        $wp_json = new Services_JSON();
    304302                }
    305303
  • src/wp-includes/customize/class-wp-customize-selective-refresh.php

     
    6767         */
    6868        public function __construct( WP_Customize_Manager $manager ) {
    6969                $this->manager = $manager;
    70                 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-partial.php' );
    7170
    7271                add_action( 'customize_preview_init', array( $this, 'init_preview' ) );
    7372        }
  • src/wp-includes/default-widgets.php

     
    1 <?php
    2 /**
    3  * Widget API: Default core widgets
    4  *
    5  * @package WordPress
    6  * @subpackage Widgets
    7  * @since 2.8.0
    8  */
    9 
    10 /** WP_Widget_Pages class */
    11 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-pages.php' );
    12 
    13 /** WP_Widget_Links class */
    14 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-links.php' );
    15 
    16 /** WP_Widget_Search class */
    17 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-search.php' );
    18 
    19 /** WP_Widget_Archives class */
    20 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-archives.php' );
    21 
    22 /** WP_Widget_Meta class */
    23 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-meta.php' );
    24 
    25 /** WP_Widget_Calendar class */
    26 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-calendar.php' );
    27 
    28 /** WP_Widget_Text class */
    29 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-text.php' );
    30 
    31 /** WP_Widget_Categories class */
    32 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-categories.php' );
    33 
    34 /** WP_Widget_Recent_Posts class */
    35 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-recent-posts.php' );
    36 
    37 /** WP_Widget_Recent_Comments class */
    38 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-recent-comments.php' );
    39 
    40 /** WP_Widget_RSS class */
    41 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-rss.php' );
    42 
    43 /** WP_Widget_Tag_Cloud class */
    44 require_once( ABSPATH . WPINC . '/widgets/class-wp-widget-tag-cloud.php' );
    45 
    46 /** WP_Nav_Menu_Widget class */
    47 require_once( ABSPATH . WPINC . '/widgets/class-wp-nav-menu-widget.php' );
  • src/wp-includes/deprecated/class-wp-atom-server.php

     
    11<?php
    22/**
    3  * Deprecated pluggable functions from past WordPress versions. You shouldn't use these
    4  * functions and look for the alternatives instead. The functions will be removed in a
    5  * later version.
    6  *
    7  * Deprecated warnings are also thrown if one of these functions is being defined by a plugin.
    8  *
    9  * @package WordPress
    10  * @subpackage Deprecated
    11  * @see pluggable.php
    12  */
    13 
    14 /*
    15  * Deprecated functions come here to die.
    16  */
    17 
    18 if ( !function_exists('set_current_user') ) :
    19 /**
    20  * Changes the current user by ID or name.
    21  *
    22  * Set $id to null and specify a name if you do not know a user's ID.
    23  *
    24  * @since 2.0.1
    25  * @deprecated 3.0.0 Use wp_set_current_user()
    26  * @see wp_set_current_user()
    27  *
    28  * @param int|null $id User ID.
    29  * @param string $name Optional. The user's username
    30  * @return WP_User returns wp_set_current_user()
    31  */
    32 function set_current_user($id, $name = '') {
    33         _deprecated_function( __FUNCTION__, '3.0.0', 'wp_set_current_user()' );
    34         return wp_set_current_user($id, $name);
    35 }
    36 endif;
    37 
    38 if ( !function_exists('get_currentuserinfo') ) :
    39 /**
    40  * Populate global variables with information about the currently logged in user.
    41  *
    42  * @since 0.71
    43  * @deprecated 4.5.0 Use wp_get_current_user()
    44  * @see wp_get_current_user()
    45  *
    46  * @return bool|WP_User False on XMLRPC Request and invalid auth cookie, WP_User instance otherwise.
    47  */
    48 function get_currentuserinfo() {
    49         _deprecated_function( __FUNCTION__, '4.5.0', 'wp_get_current_user()' );
    50 
    51         return _wp_get_current_user();
    52 }
    53 endif;
    54 
    55 if ( !function_exists('get_userdatabylogin') ) :
    56 /**
    57  * Retrieve user info by login name.
    58  *
    59  * @since 0.71
    60  * @deprecated 3.3.0 Use get_user_by()
    61  * @see get_user_by()
    62  *
    63  * @param string $user_login User's username
    64  * @return bool|object False on failure, User DB row object
    65  */
    66 function get_userdatabylogin($user_login) {
    67         _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('login')" );
    68         return get_user_by('login', $user_login);
    69 }
    70 endif;
    71 
    72 if ( !function_exists('get_user_by_email') ) :
    73 /**
    74  * Retrieve user info by email.
    75  *
    76  * @since 2.5.0
    77  * @deprecated 3.3.0 Use get_user_by()
    78  * @see get_user_by()
    79  *
    80  * @param string $email User's email address
    81  * @return bool|object False on failure, User DB row object
    82  */
    83 function get_user_by_email($email) {
    84         _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('email')" );
    85         return get_user_by('email', $email);
    86 }
    87 endif;
    88 
    89 if ( !function_exists('wp_setcookie') ) :
    90 /**
    91  * Sets a cookie for a user who just logged in. This function is deprecated.
    92  *
    93  * @since 1.5.0
    94  * @deprecated 2.5.0 Use wp_set_auth_cookie()
    95  * @see wp_set_auth_cookie()
    96  *
    97  * @param string $username The user's username
    98  * @param string $password Optional. The user's password
    99  * @param bool $already_md5 Optional. Whether the password has already been through MD5
    100  * @param string $home Optional. Will be used instead of COOKIEPATH if set
    101  * @param string $siteurl Optional. Will be used instead of SITECOOKIEPATH if set
    102  * @param bool $remember Optional. Remember that the user is logged in
    103  */
    104 function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) {
    105         _deprecated_function( __FUNCTION__, '2.5.0', 'wp_set_auth_cookie()' );
    106         $user = get_user_by('login', $username);
    107         wp_set_auth_cookie($user->ID, $remember);
    108 }
    109 else :
    110         _deprecated_function( 'wp_setcookie', '2.5.0', 'wp_set_auth_cookie()' );
    111 endif;
    112 
    113 if ( !function_exists('wp_clearcookie') ) :
    114 /**
    115  * Clears the authentication cookie, logging the user out. This function is deprecated.
    116  *
    117  * @since 1.5.0
    118  * @deprecated 2.5.0 Use wp_clear_auth_cookie()
    119  * @see wp_clear_auth_cookie()
    120  */
    121 function wp_clearcookie() {
    122         _deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' );
    123         wp_clear_auth_cookie();
    124 }
    125 else :
    126         _deprecated_function( 'wp_clearcookie', '2.5.0', 'wp_clear_auth_cookie()' );
    127 endif;
    128 
    129 if ( !function_exists('wp_get_cookie_login') ):
    130 /**
    131  * Gets the user cookie login. This function is deprecated.
    132  *
    133  * This function is deprecated and should no longer be extended as it won't be
    134  * used anywhere in WordPress. Also, plugins shouldn't use it either.
    135  *
    136  * @since 2.0.3
    137  * @deprecated 2.5.0
    138  *
    139  * @return bool Always returns false
    140  */
    141 function wp_get_cookie_login() {
    142         _deprecated_function( __FUNCTION__, '2.5.0' );
    143         return false;
    144 }
    145 else :
    146         _deprecated_function( 'wp_get_cookie_login', '2.5.0' );
    147 endif;
    148 
    149 if ( !function_exists('wp_login') ) :
    150 /**
    151  * Checks a users login information and logs them in if it checks out. This function is deprecated.
    152  *
    153  * Use the global $error to get the reason why the login failed. If the username
    154  * is blank, no error will be set, so assume blank username on that case.
    155  *
    156  * Plugins extending this function should also provide the global $error and set
    157  * what the error is, so that those checking the global for why there was a
    158  * failure can utilize it later.
    159  *
    160  * @since 1.2.2
    161  * @deprecated 2.5.0 Use wp_signon()
    162  * @see wp_signon()
    163  *
    164  * @global string $error Error when false is returned
    165  *
    166  * @param string $username   User's username
    167  * @param string $password   User's password
    168  * @param string $deprecated Not used
    169  * @return bool False on login failure, true on successful check
    170  */
    171 function wp_login($username, $password, $deprecated = '') {
    172         _deprecated_function( __FUNCTION__, '2.5.0', 'wp_signon()' );
    173         global $error;
    174 
    175         $user = wp_authenticate($username, $password);
    176 
    177         if ( ! is_wp_error($user) )
    178                 return true;
    179 
    180         $error = $user->get_error_message();
    181         return false;
    182 }
    183 else :
    184         _deprecated_function( 'wp_login', '2.5.0', 'wp_signon()' );
    185 endif;
    186 
    187 /**
    1883 * WordPress AtomPub API implementation.
    1894 *
    1905 * Originally stored in wp-app.php, and later wp-includes/class-wp-atom-server.php.
  • src/wp-includes/embed.php

     
    9494 * @return false|string False on failure or the embed HTML on success.
    9595 */
    9696function wp_oembed_get( $url, $args = '' ) {
    97         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    9897        $oembed = _wp_oembed_get_object();
    9998        return $oembed->get_html( $url, $args );
    10099}
     
    112111 * @param boolean $regex    Optional. Whether the `$format` parameter is in a RegEx format. Default false.
    113112 */
    114113function wp_oembed_add_provider( $format, $provider, $regex = false ) {
    115         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    116 
    117114        if ( did_action( 'plugins_loaded' ) ) {
    118115                $oembed = _wp_oembed_get_object();
    119116                $oembed->providers[$format] = array( $provider, $regex );
     
    133130 * @return bool Was the provider removed successfully?
    134131 */
    135132function wp_oembed_remove_provider( $format ) {
    136         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    137 
    138133        if ( did_action( 'plugins_loaded' ) ) {
    139134                $oembed = _wp_oembed_get_object();
    140135
     
    706701                return $result;
    707702        }
    708703
    709         require_once( ABSPATH . WPINC . '/class-oembed.php' );
    710704        $wp_oembed = _wp_oembed_get_object();
    711705
    712706        // Don't modify the HTML for trusted providers.
     
    10721066
    10731067        return $data;
    10741068}
     1069
     1070/**
     1071 * Returns the initialized WP_oEmbed object.
     1072 *
     1073 * @since 2.9.0
     1074 * @access private
     1075 *
     1076 * @staticvar WP_oEmbed $wp_oembed
     1077 *
     1078 * @return WP_oEmbed object.
     1079 */
     1080function _wp_oembed_get_object() {
     1081        static $wp_oembed = null;
     1082
     1083        if ( is_null( $wp_oembed ) ) {
     1084                $wp_oembed = new WP_oEmbed();
     1085        }
     1086        return $wp_oembed;
     1087}
  • src/wp-includes/feed.php

     
    663663 * @return WP_Error|SimplePie WP_Error object on failure or SimplePie object on success
    664664 */
    665665function fetch_feed( $url ) {
    666         require_once( ABSPATH . WPINC . '/class-feed.php' );
    667 
    668666        $feed = new SimplePie();
    669667
    670668        $feed->set_sanitize_class( 'WP_SimplePie_Sanitize_KSES' );
  • src/wp-includes/functions.php

     
    563563        global $wpdb;
    564564
    565565        //TODO: Tidy this ghetto code up and make the debug code optional
    566         include_once( ABSPATH . WPINC . '/class-IXR.php' );
    567 
    568566        $post_links = array();
    569567
    570568        $pung = get_enclosed( $post_ID );
     
    35933591                return;
    35943592        }
    35953593
    3596         require_once( ABSPATH . WPINC . '/default-widgets.php' );
    3597 
    35983594        add_action( '_admin_menu', 'wp_widgets_add_menu' );
    35993595}
    36003596
  • src/wp-includes/general-template.php

     
    29802980 * @param array  $settings  See _WP_Editors::editor().
    29812981 */
    29822982function wp_editor( $content, $editor_id, $settings = array() ) {
    2983         if ( ! class_exists( '_WP_Editors', false ) )
    2984                 require( ABSPATH . WPINC . '/class-wp-editor.php' );
    2985 
    29862983        _WP_Editors::editor($content, $editor_id, $settings);
    29872984}
    29882985
  • src/wp-includes/l10n.php

     
    11391139
    11401140        return $output;
    11411141}
     1142
     1143/**
     1144 * Checks if current locale is RTL.
     1145 *
     1146 * @since 3.0.0
     1147 *
     1148 * @global WP_Locale $wp_locale
     1149 *
     1150 * @return bool Whether locale is RTL.
     1151 */
     1152function is_rtl() {
     1153        global $wp_locale;
     1154        return $wp_locale->is_rtl();
     1155}
     1156 No newline at end of file
  • src/wp-includes/load.php

     
    865865        require ABSPATH . WPINC . '/version.php';
    866866
    867867        // Translation and localization
    868         require_once ABSPATH . WPINC . '/pomo/mo.php';
    869868        require_once ABSPATH . WPINC . '/l10n.php';
    870         require_once ABSPATH . WPINC . '/locale.php';
    871869
    872870        // General libraries
    873871        require_once ABSPATH . WPINC . '/plugin.php';
     
    10451043         */
    10461044        return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
    10471045}
     1046
     1047/**
     1048 * Check whether variable is a WordPress Error.
     1049 *
     1050 * Returns true if $thing is an object of the WP_Error class.
     1051 *
     1052 * @since 2.1.0
     1053 *
     1054 * @param mixed $thing Check if unknown variable is a WP_Error object.
     1055 * @return bool True, if WP_Error. False, if not WP_Error.
     1056 */
     1057function is_wp_error( $thing ) {
     1058        return ( $thing instanceof WP_Error );
     1059}
     1060 No newline at end of file
  • src/wp-includes/locale.php

     
    77 * @since 1.2.0
    88 */
    99
    10 /** WP_Locale class */
    11 require_once ABSPATH . WPINC . '/class-wp-locale.php';
    12 
    1310/**
    1411 * Checks if current locale is RTL.
    1512 *
  • src/wp-includes/media.php

     
    29092909 *                     editor claims to support the request.
    29102910 */
    29112911function _wp_image_editor_choose( $args = array() ) {
    2912         require_once ABSPATH . WPINC . '/class-wp-image-editor.php';
    2913         require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php';
    2914         require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';
    2915 
    29162912        /**
    29172913         * Filters the list of image editing library classes.
    29182914         *
  • src/wp-includes/ms-settings.php

     
    2222 */
    2323global $current_site, $current_blog;
    2424
    25 /** WP_Network class */
    26 require_once( ABSPATH . WPINC . '/class-wp-network.php' );
    27 
    28 /** WP_Site class */
    29 require_once( ABSPATH . WPINC . '/class-wp-site.php' );
    30 
    3125/** Multisite loader */
    3226require_once( ABSPATH . WPINC . '/ms-load.php' );
    3327
  • src/wp-includes/nav-menu-template.php

     
    77 * @since 3.0.0
    88 */
    99
    10 /** Walker_Nav_Menu class */
    11 require_once ABSPATH . WPINC . '/class-walker-nav-menu.php';
    12 
    1310/**
    1411 * Displays a navigation menu.
    1512 *
  • src/wp-includes/pluggable-deprecated.php

     
    183183else :
    184184        _deprecated_function( 'wp_login', '2.5.0', 'wp_signon()' );
    185185endif;
    186 
    187 /**
    188  * WordPress AtomPub API implementation.
    189  *
    190  * Originally stored in wp-app.php, and later wp-includes/class-wp-atom-server.php.
    191  * It is kept here in case a plugin directly referred to the class.
    192  *
    193  * @since 2.2.0
    194  * @deprecated 3.5.0
    195  *
    196  * @link https://wordpress.org/plugins/atom-publishing-protocol/
    197  */
    198 if ( ! class_exists( 'wp_atom_server', false ) ) {
    199         class wp_atom_server {
    200                 public function __call( $name, $arguments ) {
    201                         _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' );
    202                 }
    203 
    204                 public static function __callStatic( $name, $arguments ) {
    205                         _deprecated_function( __CLASS__ . '::' . $name, '3.5.0', 'the Atom Publishing Protocol plugin' );
    206                 }
    207         }
    208 }
  • src/wp-includes/pluggable.php

     
    210210
    211211        // (Re)create it, if it's gone missing
    212212        if ( ! ( $phpmailer instanceof PHPMailer ) ) {
    213                 require_once ABSPATH . WPINC . '/class-phpmailer.php';
    214                 require_once ABSPATH . WPINC . '/class-smtp.php';
    215213                $phpmailer = new PHPMailer( true );
    216214        }
    217215
     
    17391737
    17401738        // Now insert the key, hashed, into the DB.
    17411739        if ( empty( $wp_hasher ) ) {
    1742                 require_once ABSPATH . WPINC . '/class-phpass.php';
    17431740                $wp_hasher = new PasswordHash( 8, true );
    17441741        }
    17451742        $hashed = time() . ':' . $wp_hasher->HashPassword( $key );
     
    20142011        global $wp_hasher;
    20152012
    20162013        if ( empty($wp_hasher) ) {
    2017                 require_once( ABSPATH . WPINC . '/class-phpass.php');
    20182014                // By default, use the portable hash from phpass
    20192015                $wp_hasher = new PasswordHash(8, true);
    20202016        }
     
    20742070        // If the stored hash is longer than an MD5, presume the
    20752071        // new style phpass portable hash.
    20762072        if ( empty($wp_hasher) ) {
    2077                 require_once( ABSPATH . WPINC . '/class-phpass.php');
    20782073                // By default, use the portable hash from phpass
    20792074                $wp_hasher = new PasswordHash(8, true);
    20802075        }
     
    24092404        $defaults = array( 'title' => '', 'title_left' => '', 'title_right' => '' );
    24102405        $args = wp_parse_args( $args, $defaults );
    24112406
    2412         if ( ! class_exists( 'WP_Text_Diff_Renderer_Table', false ) )
    2413                 require( ABSPATH . WPINC . '/wp-diff.php' );
    2414 
    24152407        $left_string  = normalize_whitespace($left_string);
    24162408        $right_string = normalize_whitespace($right_string);
    24172409
  • src/wp-includes/pomo/mo.php

     
    77 * @subpackage mo
    88 */
    99
    10 require_once dirname(__FILE__) . '/translations.php';
    11 require_once dirname(__FILE__) . '/streams.php';
    12 
    1310if ( ! class_exists( 'MO', false ) ):
    1411class MO extends Gettext_Translations {
    1512
  • src/wp-includes/pomo/po.php

     
    77 * @subpackage po
    88 */
    99
    10 require_once dirname(__FILE__) . '/translations.php';
    11 
    1210if ( ! defined( 'PO_MAX_LINE_LEN' ) ) {
    1311        define('PO_MAX_LINE_LEN', 79);
    1412}
  • src/wp-includes/pomo/translations.php

     
    77 * @subpackage translations
    88 */
    99
    10 require_once dirname(__FILE__) . '/entry.php';
    11 
    1210if ( ! class_exists( 'Translations', false ) ):
    1311class Translations {
    1412        var $entries = array();
  • src/wp-includes/post-template.php

     
    785785        if ( ! isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) )
    786786                return true;
    787787
    788         require_once ABSPATH . WPINC . '/class-phpass.php';
    789788        $hasher = new PasswordHash( 8, true );
    790789
    791790        $hash = wp_unslash( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] );
  • src/wp-includes/script-loader.php

     
    1616 * @package WordPress
    1717 */
    1818
    19 /** WordPress Dependencies Class */
    20 require( ABSPATH . WPINC . '/class.wp-dependencies.php' );
    21 
    22 /** WordPress Scripts Class */
    23 require( ABSPATH . WPINC . '/class.wp-scripts.php' );
    24 
    2519/** WordPress Scripts Functions */
    2620require( ABSPATH . WPINC . '/functions.wp-scripts.php' );
    2721
    28 /** WordPress Styles Class */
    29 require( ABSPATH . WPINC . '/class.wp-styles.php' );
    30 
    3122/** WordPress Styles Functions */
    3223require( ABSPATH . WPINC . '/functions.wp-styles.php' );
    3324
  • src/wp-includes/theme.php

    <
     
    17561756                        add_action( 'wp_head', $args[0]['wp-head-callback'] );
    17571757
    17581758                if ( is_admin() ) {
    1759                         require_once( ABSPATH . 'wp-admin/custom-header.php' );
    17601759                        $custom_image_header = new Custom_Image_Header( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
    17611760                }
    17621761        }
     
    17691768                add_action( 'wp_head', $args[0]['wp-head-callback'] );
    17701769
    17711770                if ( is_admin() ) {
    1772                         require_once( ABSPATH . 'wp-admin/custom-background.php' );
    17731771                        $custom_background = new Custom_Background( $args[0]['admin-head-callback'], $args[0]['admin-preview-callback'] );
    17741772                }
    17751773        }
     
    20822080                return;
    20832081        }
    20842082
    2085         require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
    20862083        $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    20872084}
    20882085