What solutions exist to allow the use of revision control for server configuration files? [closed]

I have tested this at home (~ 3 hosts) for some time now, trying different scms (RCS, Subversion, git). The setup that works perfectly for me right now is git with the setgitperms hook. Things you need to consider: Handling of file permissions and ownership RCS: does this natively Subversion: last I tried, you needed … Read more

How to rename the wp-config.php file once under version control?

Do not rename or modify the sample files unless such modifications are intended for contribution – they are there for reference. The files wp-config.php and wp-tests-config.php are explicitly ignored by .gitignore. Simply create them as new files yourself (or, if you’d like to use the sample files verbatim create symlinks to the sample files) to … Read more

Contact Form 7 – Replace database configured form template with a static file

I answered this question on Stackoverflow, and reposting the answer here. We would never edit it there though, it’d be impossible, quite, the CF7 plugin was never conceived for anything more complex than a contact form unfortunately. You may want to play around with the Smart Grid-layout extension which was specifically designed for creating and … Read more

Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?

On the register_activation_hook() function of the new plugin use the function deactivate_plugins() (or deactivate_plugin_before_upgrade()) and deactivate the older plugin and also delete the data with delete_option. If you will also delete the files, then use the function uninstall_plugin($plugin); maybe delete_plugins( $plugins, $redirect=”” )

TwentyTwelve child theme style.css?ver=3.8.1

well that depends on what you want to do, but if it is easier for you to edit that template it will be better that you can control all the output of it.. fx like this function add_require_scripts_files() { wp_enqueue_style(‘layout’, get_template_directory_uri().’/style.css’, array(), ‘1.0.0’, “all”); } add_action( ‘wp_enqueue_scripts’, ‘add_require_scripts_files’ ); and this what the function expects … Read more

Questions about Git and WordPress [duplicate]

This is not specifically a GIT question so much as a development workflow question (GIT vs. SVN will produce similar WordPress workflows given the details you provided). If the changes the client wants to make don’t depend directly on specific DATA then you don’t need to sync your PROD data down to your local environment … Read more

Setting up Version Control for WordPress plugin development

I personally set up a development environment as a base of my WordPress Development, where I’ve dummy data and some other debugging plugins. I then create my own plugin directory and do git init in it. During plugin development, I set up the Developer plugin to Plugin for a self-hosted WordPress installation. It helps me … Read more