WordPress

Downloading WordPress minus the content directory.

tip, WordPress

The default version of WordPress comes with an entire content directory full stuff you probably don’t want or need like the default themes and the hellodolly.php plugin unless your setting you your site for the very first time, even then probably not.

There is however a well hidden version of WordPress that comes minus a content directory, it’s purpose is to optimise WordPress’ auto update function, if you click the update WordPress button in the dashboard and watch carefully you’ll see a url similar to this flash up on your screen:

https://wordpress.org/wordpress-3.8.1-no-content.zip

simply substitute '3.8.1' with the version you require.

This is really handy if you’re managing your site with SVN or GIT or Composer and want to reduce the amount of clutter and extra files you download.

WordPress AutoUpdate fix for Version Controlled Sites

WordPress

So.. since version 3.7 WordPress has had a neat auto-update function, unfortunately WordPress is also quite cautious so it check to see if the website is using any kind of Version Control and if so disables the auto update function.  BUT what if your using version control but not to actually manage what version of WordPress is installed.

Luckally this line of code will override the “under version control” test of the autoupdate

“`php

<span class="ace_identifier">add_filter</span>( <span class="ace_string">'automatic_updates_is_vcs_checkout'</span>, <span class="ace_string">'__return_false'</span> );

“`

re-enabling the auto-update functionality.

Source:

Digging into WordPress

WordPress

Written by WordPress veterans Chris Coyier and Jeff Starr, Digging Into WordPress is 400+ jam-packed pages of everything you need to get the most out of WordPress.

This is a great book if you just starting out with WordPress, it covers the basics of building and maintaining your own WordPress website all the way through some quite advanced topics.

Click here to buy : Digging Into WordPress.