Regenerate Thumbnails allows you to regenerate the thumbnails for all of your image attachments. This is very handy if you’ve changed any of your thumbnail dimensions (via Settings → Media) after previously uploading images.
Download:
- Download from WordPress.org (379,581 downloads)
Screenshots:
- The plugin at work regenerating thumbnails
- You can resize single images by hovering over their row in the Media Library
- You can resize specific multiples images using the checkboxes and the “Bulk Actions” dropdown (WordPress 3.1+ only)



God! I can’t believe this, recently i made some changes to my site and i started re-uploading pictures and swearing wordpress just yesterday for not updating the thumbs after i changed the settings. I will download this now and at least the rest of the posts will be updated more easily. You saved me tons of work! My lucky day! Thanks so much!!!
[...] is WordPress so you have to use a plugin for everything, and it turned out there’s a nice Regenerate Thumbnails plugin that will let you resize all thumbnails after changing the preferences. Worked like a charm [...]
Glad you like it and sorry that your comment got caught in my spam queue.
Thank you for this great Plugin.
What I am desperatly searching for is a plugin that compresses the base image as well, because some of our blog writers don’t compress their images before uploading. Maybe this could be added to?
Just in case anyone is still looking for a plugin that compresses base images while uploading, try WP Smush.it:
http://wordpress.org/extend/plugins/wp-smushit/
It doesn’t resize images on upload, but it does optimize them for the Web automatically.
Jörn: that feature won’t be making it into this plugin as that’s not really the purpose of it (it’s just meant for thumbnails), although it wouldn’t be hard to write a plugin that compressed all images as there were uploaded.
Maybe I’m misunderstanding, but couldnt this be done straight in wordpress? In Settings>Media… edit the max width of the Large size (leave max height blank). Though it would be nice to know how to build max image width straight into a theme.
Hey
Great, that’s the plugin I was looking for! thanks
(actually, after a couple of secs: each run stops a at different picture).
Tried it this morning: works nice… but the process stops systematically after approx 40 to 80 pictures
I guess a timeout might kill the stuff… culprit not identified yet (php max execution time is 30 seconds).
Any idea?
Cedric M on September 26th, 2008 at 12:31 AM wrote:
My plugin resets the max execution time (to 30 seconds) after each image to make sure it doesn’t time out.
Try finding this in the plugin though:
set_time_limit( 30 );And changing it to this:
set_time_limit( 0 );See if that helps any.
I should probably also make it skip existing thumbnails if they’re already the correct size.
Nope, doesn’t change anything.
Looks like the web server isn’t returning anything to the browser until some timeout happens, at approx 10-15 secs… (and then, it seems that the browser receives the beginning of the page in a single shot).
I tried to add a
$this->flush();in the processing loop, no success.Hmm……
Update: turning off gzip compression did solve the issue of flush() not working. Process is still stopped after ~10 secs though.
Quick ‘n dirty patch to your plugin: avoids regenerating thumbnails already at the correct size.
As my provider seems to have some watchdog to kill long running php processes, it enables me to hit the “reload” button until everything is done.
Cheers
Cédric
@@ -88,6 +88,10 @@
// Output progress so far to browser
$this->flush();
+ // Get thumbnail max size
+ $thumbnail_size_w = intval(get_option(‘thumbnail_size_w’));
+ $thumbnail_size_h = intval(get_option(‘thumbnail_size_h’));
+
// Loop through each attachment
$count = 0;
echo ” <ol>\n”;
@@ -100,9 +104,14 @@
// This is a better solution than just doing set_time_limit( 0 ); in my opinion.
set_time_limit( 30 );
- wp_update_attachment_metadata( $attachment->ID, wp_generate_attachment_metadata( $attachment->ID, $fullsizepath ) );
-
- echo ‘ <li>’ . str_replace( $uploadpath, ”, $fullsizepath ) . ” processed.</code></li>\n”;
+ $size = image_downsize( $attachment->ID, ‘thumbnail’ );
+ if (($size[1] != $thumbnail_size_w) && ($size[2] != $thumbnail_size_h) && (($size[1] + 1) != $thumbnail_size_w) && (($size[2] + 1) != $thumbnail_size_h)) {
+ wp_update_attachment_metadata( $attachment->ID, wp_generate_attachment_metadata( $attachment->ID, $fullsizepath ) );
+
+ echo ‘ <li>’ . str_replace( $uploadpath, ”, $fullsizepath ) . ” processed.</code></li>\n”;
+ } else {
+ echo ‘ <li>’ . str_replace( $uploadpath, ”, $fullsizepath ) . ” already at the correct size.</code></li>\n”;
+ }
$count++;
}
Cedric M on September 28th, 2008 at 2:47 PM wrote:
Mmm, good thinking. Thanks!
Great! also needed this tool.
Thanx very much for your time and sharing your work.
I unfortunately have a failed result. message recieved is:
All done! Processed 0 attachments in 0.018 seconds.
which seems a bit off since there are about 30 attachments.
I thought it might be a hard coded path in your code, not the case.
I am using WP 2.6.2.
If you have any thoughts as to why this doesn’t seem to be working for me,
I’m all ears.
Saludos
Daiv on September 29th, 2008 at 4:15 PM wrote:
Looking at my plugin’s logic, the only way that could happen is if my plugin couldn’t find the fullsize version. I’ll add more debugging output to the plugin when I add Credic’s code. Swamped at the moment though with work, so it’ll probably be a bit (few days I imagine, but who knows).
I’ve just added a new test post using the WP 2.6.2 image upload.
And your resize plugin does work for those files.
It doesn’t seem to be aware of images uploaded with WP > 2.5
Which I believe was the active version when I uploaded the previous images.
Also, my images html had been entered with modifications, I wrapped the image in a custom div if that might be a factor.
My plugin only resizes actual attachments (which are stored in the database) rather than everything in the uploads folder. I believe this change was made in WordPress 2.5 (due to galleries, etc.), but I could be wrong. I’ll look into it.
Yes sir, you are correct.
WP 2.5 changed the way it relates images to posts.
Images are related as attachments.
A benefit is that image A can be in post L and M as attachment, which
if you want can be clicked to view in theme/attachment.php and commented
on independently from post L and M.
Now to find out how to update all WP pre-2.5 posts automatically.
Thanx again for sharing your work, and responding to my questions.
Any plans to make an option where you can select the post ID for this to occur on rather than having it check all attachments? I plan on giving this a shot soon for some new photos I’ve taken. I had the medium size set up for my old camera, and well, the new one when resized to medium made the images narrower than my template. I’m assuming that if I’ve hot hard-coded to any of the medium size images, I can just delete the old ones after running the plugin, correct?
Also another item I’m stuck on, I need a way to re-extract the exif data from images already uploaded. Do you think that would be very hard? I posted on the WP forums and got a response, but it seems over my head unfortunately.
Shane on October 1st, 2008 at 7:16 AM wrote:
No, not really. This plugin is kinda in stasis for now due to a new job of sorts.
I don’t get what you mean about the new vs. old camera though.
As for EXIF, I take it these were uploaded pre-2.5? If so, you’d need some type of attachment importer or something. Before 2.5, the uploader was merely an uploader with a thumbnailing script. The uploads weren’t stored in the database if I remember correctly and so they weren’t tied to any posts (i.e. they were just files in a folder).
In 2.5+, data about the images are stored in the database (EXIF, thumb size, etc. etc.). My plugin grabs all attachments outta the database and then remakes the thumbnails if the file exists in the folder. It’s not aware of any images uploaded before data about them was stored in the database.
Thanks for the reply!
What I mean about old/new camera is I set the max height and width based off of the dimensions of my old pictures, so when I used my new one, they actually make a wider shorter image, so now some of my portrait images are narrow due to hitting the maximum height that I had set up. I should have only set the width to something that pertained to my theme, and did something huge for the height.
For my EXIF data, the images were uploaded post 2.5. My server didn’t have the exif extension installed. So now I’m stuck either reuploading the images to reextract the data, or just live w/o showing it.
Thanks again for your reply!
Shane on October 1st, 2008 at 5:00 PM wrote:
Gotcha.
It probably wouldn’t be too complex. I’d imagine it’d be similar to how this plugin works but instead of calling the thumbnailing function it’d call the EXIF function.
Sweet man! I wish I had the skills to take it on. Maybe someone will try it sometime, or if you ever have any freetime and decide you’d like to make something up to do that, I’ll shoot you a contribution or donation for your time.
Shane on October 2nd, 2008 at 1:51 PM wrote:
I wish I did, but I’m in the process of trying to get a new job so between that and a couple existing small-time clients, I’m swamped.
Thank you! Thank you! Thank you! again for posting this, saved me endless work!
[...] in your theme without burdening your users with manually entering code every time. I also found the Regenerate Thumbnails plugin useful when retro-fitting old sites with this [...]
Was the patch to skip correctly sized thumbs included? I’m getting some thumbs saying they’re processed, but then a fatal error of memory being exceeded. If I try to run it again it says the same thumbs have been processed, not new ones. Any ideas?
kristarella on November 6th, 2008 at 6:18 AM wrote:
No, I’ve been busy. It currently just regenerates all images regardless.
kristarella on November 6th, 2008 at 6:18 AM wrote:
Sounds like you’re trying to resize an image with a very large resolution. Make sure your server has a normal sized memory limit rather than the retarded default of like 8MB (which is nothing).
kristarella on November 6th, 2008 at 6:18 AM wrote:
This is normal. See the first part of this comment.
Thanks for the prompt reply, I will check into some of that stuff.
Thank you a lot for the plugin.
I have a problem with WordPress 2.7 – it shows me a message “No attachments were found. Go upload some!”
It is strange to me.
Anyway I found the following solution:
instead of the line 72
$attachments = get_children( ‘post_type=attachment&post_mime_type=image’ );
I put
$attachments = get_children( array( ‘post_parent’ => $post_id, ‘post_type’ => ‘attachment’, ‘orderby’ => ‘menu_order ASC, ID’, ‘order’ => ‘DESC’) );
Now it works fine!
$post_id isn’t set, so that does nothing and the order doesn’t matter either. However removing the post_mime_type may have been the real solution there. Your server may have not been marking the MIME type or something.
This a fantastic plugin that exactly does what I needed! THANKS! One question: after I resized everything from 150×150 to 75×75 I noticed that all 150×150 thumbs were still in the directory of server. Would you know if there a smart and simple way to get rid of them without going through all the directories?
Michiel on November 26th, 2008 at 8:17 PM wrote:
A custom PHP script would probably be the way to go I guess.
[...] Regenerate Thumbnails ????????????????????? WP 2.7 [...]
Same problem as Alexey above using 2.7 – his fix worked.
Thanks for this plugin, a real time saver – it should be part of the WP core!
As of version 1.1.0, everything should be working fine (I updated it for WP 2.7 and fixed that “bug” at the same time).
Not even sure if you can answer Viper, but would you have any idea why all images uploaded since Jan 2008 have ‘lost’ their thumbnail info.
I did an export from 2.7 RC1 before upgrading to 2.7, and in the process my images got all messed up. I can’t even view the images by entering in the URL to the file?
Images w/thumbnails (all pre-2008) can be viewed?
Tried your plugin and it claims to have processed all images, but no dice.
willyjsimmons on December 16th, 2008 at 10:56 AM wrote:
Export? As in the XML file? That isn’t a database export, it is a content exporter. It will not save everything in your database such as settings and such.
Viper007Bond on December 16th, 2008 at 5:15 PM wrote:
Export? As in the XML file? That isn’t a database export, it is a content exporter. It will not save everything in your database such as settings and such.[/quote]
Yes, the XML export. Also did a database backup, but I’ve had issues in the past rebuilding the site using just that for some reason. (database keys got screwed up)
That last time I went through this process, I used the XML file and didn’t have any issues with the thumbnails disappearing. And like I said, all the pre-2008 stuff is in tact?
Thanks a lot for this plugin! We wanted to change the thumbnail size for our site recently, this was a lifesaver.
Fantastic plugin! I’ve been searching for this functionality for a couple months now. Thanks so much for saving me hours of manual work.
Cedric M on September 28th, 2008 at 2:47 PM wrote:
Please can you upload a copy of the plugin patched?! Thanks!
I can’t get the patch to work either. Any chance you could update the plugin w/ the patch on this page?
Many Thanks!
Question if this will work for me: all of my thumbnail files are still in the upload directories, but my database had a minor corruption issue (postmeta table was corrupt and I restored from a backup but am missing data for past four months). Will your plugin write the thumbnail info into my database so WP will once again recognize that the thumbnails are there?
having wp 2.7 i have this problem trying to “Regenerate all Thumbnails”: Fatal error: Allowed memory size of 62914560 bytes exhausted (tried to allocate 85 bytes) in xxxxxx/wp-includes/functions.php on line 2901
Why this error ?
http://reynald.incident.net/archives/12/
[...] Regenerate Thumbnails ????????????????????? WP 2.7 [...]
Steve on January 27th, 2009 at 11:50 PM wrote:
No. It does not look in your uploads folder for files. It uses the database to get a list of attachments.
Sorry.
ernesto on January 30th, 2009 at 6:36 PM wrote:
Unrelated to WordPress version. It’s trying to resize a huge image and running out of memory to do it with. Resize the original image manually to be a bit smaller in dimensions or increase your server’s PHP memory limit.
Reyd on January 31st, 2009 at 1:12 AM wrote:
I don’t understand what you mean. Sorry.
Is it possible to set thumbnail’s suffix (for example “Mini”), instead default size-base “_110x110″.
Thanks.
Amaxik on February 17th, 2009 at 10:56 AM wrote:
Possibly, but that’s not my plugin adding that suffix, it’s WordPress (as I use it’s thumbnailing API). Changing the suffix would be the job of a separate plugin.
Hello thank you for your plug-in is really a time saving. By the way i have a problem, i have many many posts with images and the plug-in only process them partially I don’t understand way? can u help me?
ciao leonardo
This plugin is perfect. Thanks.
[...] “Regenerate Thumbnails” di Viper007bond è un semplice ma utile plugin che consente con un solo click di rigenerare le miniature (formato “small” e “medium”) per le immagini già caricate. [...]
I have a very weird situation going on with my blog, image wise.
I just recently changed the domain name and updated everything per wordpress codex. Anyways, all images I upload after the name switch shows the [gallery] fine, but all the old post wit the [gallery] prior to the name switch is showing the full size image instead of thumbnails.
The thumbnail image does exist on the server and it even shows in the db.
Would this plugin of yours re-link it or whatever if I just use the same dimensions? Technically shouldn’t it just overwrite the existing files?
My plugin uses built in WordPress functions to handle everything. All it does is force a thumbnail/meta rebuild, as if you just uploaded the image.
No idea if it’d fix your issue or not. Can’t hurt, but I can’t remember if it’ll skip existing thumbnails or not.
Viper007Bond on April 2nd, 2009 at 11:00 PM wrote:
Cool, I guess my next question will be… will it regenerate in the same date/folder structure?
Let’s say i’m recreating for a post in 2008/09. Will it create the thumb in wp-content/uploads/2008/09/image-115×115.jpg?
Trey on April 3rd, 2009 at 9:19 AM wrote:
I think so, but again, I’m not sure as it’s not my function.
[...] was literally sitting down to write a plugin that did this, when I stumbled across Viper007’s Regenerate Thumbnail [...]
Just discovered where in 2.8 the regenerate thumbnails plugin appears “Tools > Regenerate Thumbnails”. Which is great, but I’ve just done an upgrade of a wordpress website from 2.5 to 2.8 and the plugin doesn’t recognise any of the existing attachments. So it doesn’t regenerate anything. Any help would be greatly appreciated.
Benji
@Benji, WordPress 2.5 didn’t use the same attachment method. The images were imbeded not attached.
Solution= none automatic, manual attach, re upload.
unless someone has created an amazing fix my attachments script.
twincascos on July 2nd, 2009 at 12:21 AM wrote:
Thanks for that. It turns out that the main difference between 2.5 and 2.7 or later is in the metadata table of the each attachment the URL is absolute as opposed to being relative to the root of the uploads directory. So I managed to fix it by finding and replacing all the absolute paths in the metadata table and then run Regenerate Thumbnails. Now they’re all reprocessed and in the right sizes. Few! Awesomeness ensues. Thanks heaps though.
That’s great, I was thinking pre 2.5, don’t you love change…
maybe regenerate thumbs plugin could check if the metadata is absolute or relative, and offer to change/ upgrade the entries…
I’m using godaddy as my webhost and they must be putting some kind of time limit on scripts because I only get slightly past the first image and it stops. I tried copying Cedric’s Quick n Dirty patch, but it didn’t seem to work, something must have changed in 1.1 that caused the patch not to work, or at least not as-is. If anybody knows of a way to make that patch work, it would be greatly appreciated.
Also, I’ve got a script that will update your old 2.5 gallery items to the new type paths, but not in plugin form. I don’t really have time to make it into a plugin, but if there’s a plugin author that wants it, let me know, maybe it will save somebody some work.
Josh on July 14th, 2009 at 8:12 PM wrote:
Oh, I would LOVE that script is you make it publicly available.
After running this plugin, you’ll need to change the values in the database too.
This script will change the thumbnail sizes. PLEASE MAKE SURE YOU MAKE A BACKUP OF wp_postmeta FIRST.
UPDATE wp_postmeta
SET meta_value=replace(replace(meta_value,'150x150','145x110'),'s:5:"width";s:3:"150";s:6:"height";s:3:"150"','s:5:"width";s:3:"145";s:6:"height";s:3:"110"')
WHERE (meta_key="_wp_attachment_metadata") AND (instr(meta_value,'150x150')>0)
Replace 145 with the width you require, and 110 with the height in both places.
Replace the 150 values with whatever your original thumbnail sizes were.
(tested on version 2.8.3)
The first time I used this plugin it worked great. I first edited media.php to crop my thumbnails from the top and the left. Then I ran the plugin.
After that, I added some posts and noticed that the thumbs were being cropped from the center (possibly due to Thumbnails for Excerpts plugin I now suspect.)
So, I ran Regenerate Thumbnails again, and the script timed out. Don’t know why since Yahoo says that it allows PHP scripts to run for 100 seconds. It quit after maybe 20. On top of that, the change I made to media.php was gone somehow and I don’t know what happened but,
I have about 1/4 of my thumbnails are showing up up correctly (cropped from the top and the left) and the rest are cropped from the center.
I don’t know how to get the patch listed above. I pasted it into the plugin PHP file right above the one (I think) existing reference to flush. I saved and got a fatal error from WP. I deleted what I pasted in and it’s back to the original state.
Still times out after about 20 seconds and I have the same 1/4 of my thumbs showing up OK and the rest cropped from the center. Tried running from Safari and Firefox (Mac). Would using Windows help or is this a server-only thing? I didn’t think there was a problem.. It ran fine the first time. Should I contact my host (Yahoo?)
Does anyone know if there is going to be an updated release of this plugin available?
Thanks!
[...] Regenerate Thumbnails ????????????????????? WP 2.7 [...]
I’m loving the update!
Josh on October 31st, 2009 at 8:12 PM wrote:
Glad someone is. I was getting a bit worried that I rewrote it for nothing.
[...] uploaded through WP Media Library, and at some point you decide to change default thumbnail size. Viper007Bond.com » My WordPress Plugins » Regenerate Thumbnails VN:F [1.7.3_972]Rating: 0.0/10 (0 votes [...]
Hello Viper007Bond,
Thanx for keeping this plugin up to date.
working great!
[...] Regenerate Thumbnails [...]
what do I do after I install it? how do I get it to do the resizing?
Ricardo on November 3rd, 2009 at 5:32 PM wrote:
http://wordpress.org/extend/plugins/regenerate-thumbnails/installation/
For me the plugin never makes it past 45% or so. I’ve left it alone all day several times and it never gets past there. I really need my thumbnails regenerated.
Suggestions?
Katie on November 4th, 2009 at 6:41 PM wrote:
Install Firebug and visit the… Console? tab where AJAX requests are listed. See where it gets hung up (always the same one?) and check the output of that AJAX URL.
Katie on November 4th, 2009 at 6:41 PM wrote:
What’s your webhost? My guess would be that your host is stopping it if you’re on shared hosting. I could be wrong though. The recent updates make it much more shared-hosting friendly.
[...] Notes: As with all other redesigns, I used the great Regenerate Thumbnails to create the new medium and large sized images. To see it in action, check how the images in the [...]
Great plugin, but does it also resize the medium sized images or only thumbnails?
ps. Love all the javascript effect on your site
Yes. It uses the settings you set to change all the images to those sizes.
Are you sure? For me it did not change the medium or large sized images. I tried it on a small blog with 100+ images before testing it on a big (5000+) images blog and it did not resize the medium files.
Please forget my last comment! This plugin works like a charm and does also resize the medium images, it just doen’t crop them.
Thank you!
That’s because of WordPress. The plugin uses a wordpress API and wordpress doesn’t crop them when you first upload them, so the plugin won’t.
My plugin pretends that you just uploaded them. It goes off the settings at Settings -> Media. If you tick the “crop” box for the small images, then it’ll crop them. There’s no option to crop the larger images.
I used the plugin it says it regenerated 560 images.
When I check the folders in ftp, nothing has been changed. used this with thumbnails for excerpts but to no avail
Hmm, not sure. It should work.
Would love to see this feature on the individual media page. Like if I just wanted to resize one photo, because WordPress didn’t crunch one photo in a particular upload..
Just an idea..
Thanks for the great plugin!
[...] change de thème et qu’on doit donc adapter toutes ses images à sa nouvelle structure. Avec Regenerate Thumbnails, un plugin pour WordPress, vous allez pouvoir modifier très simplement la taille de ces [...]
Sorry, the above comment is in response to the following ( i thought the reply would go under the original comment)
Thank you for this great Plugin.
What I am desperatly searching for is a plugin that compresses the base image as well, because some of our blog writers don’t compress their images before uploading. Maybe this could be added to?
Jörn: that feature won’t be making it into this plugin as that’s not really the purpose of it (it’s just meant for thumbnails), although it wouldn’t be hard to write a plugin that compressed all images as there were uploaded.
I use flat threaded comments here. Note the “In Reply To Viper007Bond” at the top of your previous comment and how it’s a link to the comment you were replying to.
Anyway, to answer your question, no the original file is stored and then additional files are created at the resolutions you specify at Settings -> Media. The original file is untouched.
this is just coool ,now my old posts have the same 125px wide thumbnials.thnx for this works good
Really nice plugin. I tried it out and it worked marvelous.
One thing though. Is it possible to edit the plugin so that it removes the old thumbnails?
Otherwise aftera few regenerations you´ll stand there with 4-unlimited different types of thumbnails, and while each of them is small in size the sheer number of them together will take up space sooner or later.
So if you could make the plugin delete the old thumbnails as it creates the new ones this plugin would be 100% awesome!!
plug in works nice tips thanks. yeah it is editable.
thx thx thx
[...] habe ich zwei zuverlässige Plugins, die da sind: das Regenerate Thumbnails von Viper007Bond und AJAX Thumbnail Rebuild vom Junk Coder. Ich habe beide Plugins vor dem Einsatz [...]
This plugin has saved me so much time, thanks very much. I was wondering – would it be possible to add a setting to control the quality of the jpg compression used when resizing images? It usually does a good job, but in some cases is compressing images more than I would like. I don’t know if there is any way to edit this setting in the plugin code or in WordPress.
There’s a core WordPress filter. Add this to your theme’s
functions.phpfile or a new plugin:add_filter( 'jpeg_quality', 'matthew_hollet_jpeg_quality', 10, 2 ); function matthew_hollet_jpeg_quality( $jpeg_quality, $function ) { return 95; // Default is 90 }Thanks, very much appreciated!
Here is a quick question. I am considering renaming a bunch of uploaded images for SEO purposes, and to do this I am using the wordpress organizer plugin.
On my testing server, I deleted all thumbnails, renamed a single file using the organizer, and regenerated the thumbnails. From what I can tell, all thumbnails have been regenerated, except for the file I renamed.
My question is this: can you shed some light on how this plugin determines the files to create thumbnails for?
…Mike
Information about uploads (type, resolution, what post it’s attached to, etc.) is stored in the database (I pull the list of image attachments from there, not your uploads folder). You cannot change the filename of an upload unless you also change the filename in the database, otherwise you will break things.
Thanks. I managed to hack the abandoned wordpress organizer plugin to update the database with the new file name after renaming it on disk. It looks like I did it correctly, as your plugin is now Doing The Right Thing.
Thanks again
Hey Mike any chance you could share your adjustments to the organizer plugin?
Maybe Viper007Bond will incorporate the organizer plugin into regenerate thumbnails.
I have a project with embedded images which are not attached (pre WP 2.5)
Anyone knows of a tool to turn the files into attachments?
My plugin is for resizing attachments. That’s it.
Found a tool for attaching loose images on the server.
add-from-server
http://wordpress.org/extend/plugins/add-from-server/
[...] Regenerate Thumbnails ????????????????????? WP 2.7 [...]