Whether wordpress automatically backup old theme before updating the theme? - wordpress

I have developed many scripts and have put inside the theme folder of wordpress. Today somehow the theme got updated automatically. Now all the scripts gone. Nothing was there. Whether wordpress will backup the old theme somewhere before it updating the theme automatically?
PS: I haven't installed any plugin to backup automatically!
Thanks for your replies

Wordpress will update and overwrite all the default (included) themes when it upgrades, so your changes will be overwritten.
To prevent this in future you should use a child theme, or manually upgrade by downloading the zip file from wordpress.org, unzipping it, and deleting the files that you don't want to be overwritten, then copying that across your existing installation. Creating a backup before you do this is also a good idea.

To prevent this I strongly recommend that next time you work around with a child theme instead of editing your main theme files. This will prevent your edited files to be overwritten when the theme updates itself. Also start using a plugin that backups your files.
Wordpress itself doesn't backup any files prior to updating Wordpress, themes or plugins. What got overwritten is now overwritten. You can contact your host support and ask them if they made any backups on your site (some hosts do that on a weekly basis so they can revert changes in case of an error - but this is on a host by host basis and not all do this).
Hope this will be a good lesson for you to think about this things beforehand and I hope you retrieve all your lost files.

Related

Buddypress reverting code back to original plugin, I lost my all modification to plugin. I am running wp-4.4 and buddypress-2.2.4

I have buddypress 2.2.4 installed with wordpress 4.4.
Now issue I am facing is, I did some modification to buddypress plugin in plugin files it self. And its reverting back. Its changing my modified files to its original versions. even I try this in my local and same result.
I ask server guy but he told its buddypress issue.
When you modify a BP file, do you see changes in the browser? Or do the files revert to the original state instantly after closing them in a code editor? What are the file permission settings for the BP plugin files?
What files do you modify and with what changes?
Are you hitting update for the plugin? Plugin updates always overwrite local changes as new files are written over the old ones (unless you juggle with write-permissions for the files).
It is not a BuddyPress issue by itself (tried it myself and I could hack the plugin files just fine). It could be the server giving you the illusion of write-allowed files whilst keeping the files unchanged ("reverting"). Or then the plugins are updated constantly, undoing your changes.
The proper way to make modifications is to either use hooks in a plugin or a theme, or copy over the BuddyPress templates to your theme and make modifications there.
I didnt find any solution to that. but I keep my changes by adding a override files to child theme. because I tried everything and its not stopping reset plugin.
So finally making override of plugin in child theme solve this issue.

Will Wordpress Update effect my custom theme

I am going to create a custom theme for one of my client, he will be reselling it to his customers.
As wordpress updates comes frequently and one has to update the wordpress to ensure security, how can I prevent my theme from update effects? I want to know that as there anyway to update the theme remotely with wordpress updates?
I will be using a custom framework not the wordpress default theme engine.
Thanks
Wordpress Codex gives a warning about updates.
That being said, if you look at the "Extended Instructions" for updating, it lists files and folders you can delete. It also lists files and folders you SHOULD NOT DELETE. Those "DO NOT DELETE" items are the files and folders not touched by an update.
So... you should ask yourself, "Will I ever need to edit/enhance one of those core files that may be replaced?"
The answer could help you build safer and smarter.

Is there a way in WordPress to go back to default settings, delete all assets, etc.?

I'm a WordPress n00b and have a question that may be a stupid one. Basically, I want to start my site from scratch, but want to keep all the plugins and themes that I downloaded. Is this possible, and if so, what are the steps to do it?
If you create a new database and update this value in wp-config.php, it will initialise your posts, users, etc...
The plugins in the plugins folder and themes in themes folder will still remain although you might need to reconfigure the theme.

I made a bunch of wordpress sites for clients and built off of the core theme (I didn't use a child them). What are my options now?

I didn't know about the best practice of not skinning/modifying/working off of the core wordpress theme (twenty-ten, twenty-eleven, twenty-twelve, twenty-thirteen), and a bunch of my clients sites are running right now on the core themes with a custom/modified skin.
I've heard stories of wordpress getting hacked and sites being compromised because wordpress is out of date. The wordpress team also pretty much states that security issues are being fixed with each update. I need to update the core wordpress files on these sites to prevent this, but now I'm scared that if I update wordpress, the theme will be overwritten.
In fact, I had a client click the update button once in the wordpress admin (not really knowing what they were doing) and overwrite the theme (that was pretty disasterous). I even use a plugin now to disable that message so my other clients don't do that.
What steps should I take now to fix this? Copy the theme, rename the folder/theme name in style.css, and change the theme in admin settings? Would I be OK to update wordpress after I do this? Or are there more steps that I need to take?
You have the right idea. Copy the theme folder and rename the new copy to something else like customtheme. Then edit customtheme's theme info in the comments at the top of style.css and switch to it in the admin panel. After that you are safe to update.
Do keep in mind that it's possible WP updates will break things anyway, depending on how you implement custom functionality and what plugins you are using.
Agree with the above. Don't go anywher near the WP core or the default themes. Either create child themes or better off, build your own.
Copying and renaming and existing theme will cause you all sorts of problems as each theme uses named functions. If you just rename the stylesheet there will be more conflicts than you can fix in a week of debugging.
If you are blocking the update messages you are putting your clients at risk.

WordPress updates overwrite .svn folder

We're using Subversion to keep track of the changes our web team makes to our Wordpress site. We do nothing more than modify and update our custom theme, but we have difficulty updating the Wordpress core and plugins.
Right now, I have my checked out copy working on a local WordPress install. However, when I run the automatic WordPress updates on this local copy, the updates overwrite the .svn folders in the respective subfolders, resulting in a "Directory .svn containing working copy admin area is missing" error when I try to commit the update.
How can I do these updates automatically without overwriting the .svn folder? As of now I am resorting to copying the files in manually.
If you're just maintaining your theme, you should not have the whole wordpess install under svn but just the theme. I also think in your case it doesn't make sense to actually use a working copy of your repository in the actual live site. In your case I'd keep a working copy of your theme somewhere on your server and then rsync on demand to your theme folder. This way you can update wordpress and your plugins automatically and without problems.

Resources