Single Click Plugin Updater WordPress Plugin
This plugin extends the plugin update notification feature introduced in WordPress 2.3 by adding an “update automatically” link to update notifications. When you click the link, the new version of the corresponding plugin is downloaded and installed automatically. It also lets you know which plugins have update notifications enabled.
Update 06.04.2008 : Version 2.0.1 with much more features is out. More info here.
Download it now! (37 Kb)
How It Works (In Detail)
To be able to display the new link this plugin will hide the original update notification and display a slightly modified one. Here’s what happens when you click the “update automatically” link :
- If the plugin that needs to be updated is active, it is deactivated.
- The Plugin Updater retrieves the plugin’s page from Wordpress.org and finds the download link.
- The new version is downloaded and extracted to the wp-content/plugins directory (this directory must be writable by the Updater plugin).
- If necessary, the updated plugin is re-activated.
All this happens in the background, so if everything works OK you’ll end up back at the “Plugins” tab. If there are any errors the plugin will display an error message and abort the upgrade.
Requirements
- WordPress 2.3 or newer.
- CURL library installed or allow_url_fopen enabled in php.ini. If you don’t know what that means, don’t worry – at least one of these is available on most webservers by default.
- The /plugins directory must be writable by WordPress. The exact file permissions depend on the server configuration. Read more about file permissions. 666 or 755 may be sufficient, and 777 will always work, though this is not recommended due to security risks.
The plugin has been tested and works under Firefox 2.x, Opera 9.x and, as of version 1.0.5, Internet Explorer.
Installation
To install the plugin, please follow these steps:
- Download the one-click-plugin-updater.zip file (below) to your computer.
- Unzip the file.
- Upload “one-click-plugin-updater” folder to the “/wp-content/plugins/” directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
That’s it.
Download
one-click-plugin-updater.zip (40 Kb)

Setting the permissions of the plugin to be updated worked.
Danny : the two plugins have very different architectures, so they probably won’t be completely merged. There might be a version of Oneclick installer that includes my plugin, but there will also always be a standalone version of the single click updater available.
Steven : That’s good. I hope I’ll be able to at least partially avoid the file permission hassle in a future version – Anirudh, the author of Oneclick installer, gave me an idea about that…
[...] This plugin. This plugin is called the “One Click Plugin Updater”. Once installed and activated, and provided you’re using the most recent version of WordPress – all you need to do is visit your plugins page every now and again and scroll to see which plugins need to be updated, click to “update automatically” and that’s IT. How much easier could it get? There are a few plugins, unfortunately, that aren’t loaded into the plugins directory in such a way that they update automatically. Those need to be updated manually (and you’ll know, because the “update automatically” prompt will not go away). Other than those – it is a sweet little plugin and it will make your blogging life just a little bit easier! [...]
[...] Single Click Plugin Updater – A very handy plugin that extends the plugin notification system, introduced in WordPress version 2.3. This plugin also provides an ‘update now’ link that, when clicked, will automatically download and install the new version on your blog. [...]
[...] One Click Plugin Updater [...]
Love this plugin. It works great, but for some reason, it has been installing the newer versions of plugins and leaving the old versions in the plugin list. Please help.
Hey Thomas,
This is a known issue – it happens when the new version of a plugin has a different directory structure than the old one. There’s no way to safely fix this right now, so I suggest you deactivate the old version and activate the new plugin. Then you could manually delete the old version from your plugin folder.
By the way, this should only happen for some very specific plugins, not all of them.
Okay, thanks White Shadow!
Thomas
[...] One Click Plugin Updater: تحديث الإضافات المثبته في مدونتك بضغطة زر [...]
[...] along comes the One-Click Updater plugin developed by W-Shaow. As you can see below, once installed you simply click the “update automatically” link [...]
[...] project which attempts to generalise the one click update of WordPress plugins. It is called the One click plugin updater. This tries to add this facility to existing plugins. From the comments on the plugin page it looks [...]
WOW! Excellent! This should be included with wp already, thanks.
Shouldn’t this plugin updater first delete the plugin to update and then upload the new plugin files?
No. It’s safer to simply overwrite the existing files *if* new files are downloaded successfully.
This plugin was working 3 days ago. Not anymore. I’m puzzled.
-
Here’s one error I got:
“Error : couldn’t download the new version from ‘http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip’!
You need either the CURL library installed or allow_url_fopen set in php.ini for this to work.
-
A second error is that it tells me that it was not possible to download the plugin (to be updated).
-
Here’s what my web server tells me: “We have not made any
changes to the server but Curl is already installed and working on the server:”
-
Puzzling. Do you have any thought on that?
Apparently WordPress.org is going through some kind of restructuring – some download links have changed, some just don’t work at all.
I’m already working to make this plugin conform with those changes, but you will need to update it (the single click updater) manually when I get the new version up. The old version simply won’t be able to do it automatically because the wordpress.org page structure is now different.
ah, thats why… aren’t the WP guys aware that your and a few more plugs are affected by toying around with the server structure? hmmmmpf….
well, take your time and good luck!
Thanks a lot White Shadow.
Just to let you know, the new version is up and seems to be working.
Fantastic. Works fine. Thanks a lot.
Hi, I added about 20 new plugins, and one of them is conflicting with One Click Plugin Updater. Now when I click “update automatically”, I get:
I’ve used Firebug in Firefox and IE Developer Toolbar in IE, trying to see what’s causing the conflict, but neither enable me to see what plugins or scripts or causing the bug.
Do you know how I can find the culprit? I de-activated all the new plugins. The problem still exists.
(Aside: Also some images no longer display on my blog (post-ratings’ stars, translator’s flags.)
After contending with these problems, I found you have just released a new version. I installed it. As expected, that made no difference to the problem another plugin(s) is causing.
I think there’s something in the .htaccess rules that blocks it. My guess would be that one of the plugins you installed modified .htaccess to block all/most access to the “wp-content/plugins” directory, or something similar. It might have added a new .htaccess file in one of those directories as well.
If you don’t find anything wrong with the .htaccess files, maybe it’s in the URL rewrite rules that are stored in the database. Though I’m not sure how to check those, not off the top of my head.
Help, every time I try to use this plugin I get this error message:
Error : couldn’t unzip the new version of the plugin.
Your server may not have ziplib installed and the unzip command doesn’t work either.
What do I need to do to get it to work.
Willing to pay for help. Thanks!
I’ll need more information to figure this out. You can enable the plugin’s debug mode so that it will print out a more detailed report :
Open oneclick-plugin-updater.php and change the line that says “var $debug=false;” (line 23) to “var $debug=true;”
Then try using the plugin again and let me know what it outputs (copy & paste it in a comment here or send me an email – whiteshadow@w-shadow.com).
Thanks – you were right. That solved this problem and another one (plugins’ images not displaying).
Some dastardly plugin created an htaccess file in wp-content/plugins/
with the contents:
`
order allow,deny
deny from all
`
I deleted it! (I wonder what that will do!?)
Which plugin did that? If I find out, I’ll post it here.
Clue: The file has a last changed date of February 15, 2006. That’s not the date it arrived on my site; it may be the date the plugin was last updated – perhaps I can find a plugin with other files last updated on that date.
I have the One click Plugin in WP and it’s activated. When there is a notice that one of the plugins has an upgrade I click the automatically upgrade link and it states “plugin activated” but it STILL shows that there is an upgrade notice on the exact one I just upgraded automatically!
Why does it not work? My permissions are set to 755.
miom
Does this happen for all plugins or only for some of them? If it only happens for some plugins, the most likely cause is that the new version of the plugin has a different directory structure. See if there’s another line for the same plugin in the list.
If it happens for all plugins… I have no idea.
[...] One Click Updater [...]
[...] 以下是我目前用到的WordPress插件(有改变在更新): Copyright AdLogger, Click Fraud Protection. Adman:在博客上投放广告早已不是新鲜事, Adman支持众多类型的广告(当然包括最流行的AdSense),可用<– adman –>标签来自定义广告在文章的位置,简单实用。 Akismet:最著名的垃圾评论过滤插件。别以为自己的博客不出名就不会受垃圾评论骚扰,群发工具强得很,我就一直收到某些无聊人士发来的广告评论。 All in One SEO Pack:建站都讲SEO(搜索引擎优化),All in One SEO Pack是WordPress下最好的SEO插件。 Batch Categories:批量目录整理插,如何一次性将大量文章添加到(或移出)某个目录,试试这个插件就知道了。 CoolPlayer:支持格式最多的播放器插件,其实是调用系统的解码器来播放,如果你想用OGG、AAC那样的非主流格式做在线试听,恐怕目前只有CoolPlayer能满足要求。 cos-html-cache:让WordPress全站静态化,据说比WP-Cache更高效,使用时需将永久链接设置为伪静态格式。 Dean’s Permalinks Migration:类似插件有Permalink Redirect,能让一篇文章的URL多样化,具体说就是如果某篇文章的URL已经被搜索引擎收录,但某天又修改了这篇文章的链接,通常情况下就无法通过旧链接访问,出现“404找不到页面”的错误,该插件就是为了解决这个问题。 FAlbum:试用了无数个外链Flickr的相册插件还是这个最好,我做的汉化包再此。 Google XML Sitemaps:自动生成站点地图,方便Google收录博客上的文章。 iMax Width:自动按原始宽高比调整过大的图片到自定义的宽度(或高度)。 MaxBlogPress Ping Optimizer:为什么每保存一篇文章都要很长时间?那是因为WordPress在Ping XML-RPC服务器,而且还要等待响应。该插件能将这个过程转移到后台执行,由此加快文章的保存速度。 NextGEN Gallery:直译过来叫“下一代相册”,WordPress下最好的相册插件,能实现批量图片管理、加水印、生成缩略图、幻灯片方式浏览……众多功能,更能配合Lightbox、Highslide……等插件实现超酷的图片浏览效果。 One Click Plugin Updater:一键升级插件,配合WordPress内建的更新提示功能,升级插件时只需点Update即完成,方便多了。P.S:平常无需启用,有更新时再开启。 Simple Tags:个人认为是WordPress下最好的标签管理工具,强大却不失配置简单的特点。 Snap Shots™ Plugin:为超链接实现缩略图,很酷。P.S:不建议开启内链缩略图功能,会把页面弄得很乱,整个网站有链接的地方尽是缩略图的小图标。 Ultimate Google Analytics:为使用Google Analytics,需要修改主题文件,经常换主题的人,每次都要修改是很麻烦的,Ultimate Google Analytics能帮助我们从修改代码中解放出来,从此主题天天换也不怕Google Analytics采集不到网站的访问数据。 Wordpress Automatic Upgrade:有了这个插件,WordPress的升级就简单多了,跟着向导即完成在线升级,方便、安全。P.S:平时不必开启。 WP-Highslide:效果很酷的图片查看插件,能实现图片在网页上悬浮、随意拖放、缩放……圆角边框和阴影效果很Vista。P.S:个人认为比Lightbox效果更酷。 [...]
[...] One Click Plugin Updater ist ein wunderbars Plugin, welches eine einfache Pluginverwaltung ermöglicht. Nicht nur, dass die [...]