Changeset 2277111
- Timestamp:
- 04/06/2020 10:35:13 AM (5 years ago)
- Location:
- writing-on-github/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
writing-on-github/trunk/vendor/autoload.php
r2276930 r2277111 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 46d4e197fe5ca061948a6868efefaddb::getLoader();7 return ComposerAutoloaderInit35bad763aae470d00a03a96f3cc92416::getLoader(); -
writing-on-github/trunk/vendor/composer/autoload_real.php
r2276930 r2277111 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 46d4e197fe5ca061948a6868efefaddb5 class ComposerAutoloaderInit35bad763aae470d00a03a96f3cc92416 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 46d4e197fe5ca061948a6868efefaddb', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit35bad763aae470d00a03a96f3cc92416', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 46d4e197fe5ca061948a6868efefaddb', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit35bad763aae470d00a03a96f3cc92416', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 46d4e197fe5ca061948a6868efefaddb::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit35bad763aae470d00a03a96f3cc92416::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 46d4e197fe5ca061948a6868efefaddb::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInit35bad763aae470d00a03a96f3cc92416::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 46d4e197fe5ca061948a6868efefaddb($fileIdentifier, $file);59 composerRequire35bad763aae470d00a03a96f3cc92416($fileIdentifier, $file); 60 60 } 61 61 … … 64 64 } 65 65 66 function composerRequire 46d4e197fe5ca061948a6868efefaddb($fileIdentifier, $file)66 function composerRequire35bad763aae470d00a03a96f3cc92416($fileIdentifier, $file) 67 67 { 68 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
writing-on-github/trunk/vendor/composer/autoload_static.php
r2276930 r2277111 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 46d4e197fe5ca061948a6868efefaddb7 class ComposerStaticInit35bad763aae470d00a03a96f3cc92416 8 8 { 9 9 public static $files = array ( … … 35 35 { 36 36 return \Closure::bind(function () use ($loader) { 37 $loader->classMap = ComposerStaticInit 46d4e197fe5ca061948a6868efefaddb::$classMap;37 $loader->classMap = ComposerStaticInit35bad763aae470d00a03a96f3cc92416::$classMap; 38 38 39 39 }, null, ClassLoader::class); -
writing-on-github/trunk/writing-on-github.php
r2276926 r2277111 180 180 $arr = wp_upload_dir(); 181 181 $baseurl = $arr['baseurl'] . '/writing-on-github'; 182 $basedir = $arr['basedir'] . '/writing-on-github'; 182 183 183 184 $content = preg_replace_callback( 184 '/(<img [^>]*?src=[\'"])\s*(\/images\/[^\s#]\S+)\s*([\'"][^>]*?>)/', 185 function($matchs) use ($baseurl) { 186 $url = $baseurl . $matchs[2]; 187 return "${matchs[1]}$url${matchs[3]}"; 185 '/(<img [^>]*?src=[\'"])\S*?(\/images\/\S+)([\'"].*?>)/', 186 function($matchs) use ($baseurl, $basedir) { 187 if (is_file($basedir . $matchs[2])) { 188 $url = $baseurl . $matchs[2]; 189 return "${matchs[1]}$url${matchs[3]}"; 190 } 191 return "${matchs[0]}"; 188 192 }, 189 193 $content … … 191 195 192 196 $content = preg_replace_callback( 193 '/(<a [^>]*?href=[\'"])\s*(\/images\/[^\s#]\S+)\s*([\'"][^>]*?>)/', 194 function($matchs) use ($baseurl) { 195 $url = $baseurl . $matchs[2]; 196 return "${matchs[1]}$url${matchs[3]}"; 197 '/(<a [^>]*?href=[\'"])\S*?(\/images\/S+)\s*([\'"].*?>)/', 198 function($matchs) use ($baseurl, $basedir) { 199 if (is_file($basedir . $matchs[2])) { 200 $url = $baseurl . $matchs[2]; 201 return "${matchs[1]}$url${matchs[3]}"; 202 } 203 return "${matchs[0]}"; 197 204 }, 198 205 $content
Note: See TracChangeset
for help on using the changeset viewer.