A lot.WordPress MultipositionThe subject thumbnails use timthumb.php, which is not equally supported by external-link pictures because of security problems, and the problem caused by processing local server images, where the solution is simple, simply to add a paragraph supporting external links and modifying the machine image process code. 1, edit the timthummb.php file, find the following codes (approximately 131 lines)
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
If…(! isset($ALLOWED_SITES)){
$ALLOWED_SITES = array (
‘flickr.com’,
‘staticflickr.com’,
‘picasa.com’,
‘img.youtube.com’,
‘upload.wikimedia.org’,
‘photobucket.com’,
‘imgur.com’,
‘imageshack.us’,
‘tinypic.com’,
‘wazhuti.com’, / New domain name
);
}
|
Add your domain name to it. In the timthumb.php file, the following codes (approximately 220 lines) were found:
|
1
|
$this->Src = preg_replace(‘/https?:\/\/(?:www\.)?’ . $this->myHost . ‘/i’, ”, $this->Src);
|
Delete or comment on the line code. This line code means “If the image address is in-house, delete the domain name part of the camera in the pictureurl.” 3. If you complete the above operation and save it, a new WordPress page image will be displayed. If it is still not possible to properly show whether the file permissions are 777
未经允许不得转载:萌萌Apprentissage » Solve multiple sites WordPress does not support timthummb.php
Learn html_How websites work
WordPress Summary of Moving Methods: Migration of Hosts and Replacement of Domain Names
How to set auto-optimize auto-autoptimize plugins for your WordPress site
Installation and use of llinux environmentnode.js and npm install