If you use the disqus plugin on your wordpress site, you may be surprised to learn that your content is hidden on mobile devices (specifically ipad/iphone).
The problem that occurs is that the content is covered by a nice white box that you can’t see through.
Thankfully there’s a nice quick fix. In your site’s css rules, simply add the following :-
#disqus_thread { clear: both !important; }
And mobile users can see your content again!
If you like the admin functionality to manage plugins, themes and other updates that wordpress features and would like to have this working when you are developing locally then you might find that you need to set up an FTP server locally just for this purpose.
Perhaps a better solution, especially if you use a *nix based desktop such as Linux is to try this extension:
http://wordpress.org/extend/plugins/ssh-sftp-updater-support/
This will extend the FTP functionality to also use SFTP or SSH for the updates. If you are already running an SSH server on your desktop then there is very little left to do. If you are not then a quick
sudo apt-get install openssh-server
And you are ready to go.
From this point you can then use the admin functionality to manage plugins etc which is a nice slick way of doing things.
If you would like to upgrade wordpress directly on the command line using bash then you might like this little script:
#!/bin/bash
# This is a script to upgrade wordpress.
# Put it in your wordpress document root (the folder that contains wp-config.php)
# chmod +x to make executable
# ./wp-upgrade.bash to run
# Originally here: http://yabfog.com/blog/2011/12/12/wordpress-update-bash-script
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TMPDIR=/tmp/wp-upgrader
mkdir -p $TMPDIR
WPDIR=$TMPDIR/wordpress
mkdir -p $WPDIR
cd $TMPDIR
rm -rf latest.zip ./wordpress # Clean up from the last run
wget -nd http://wordpress.org/latest.zip
unzip latest.zip
mv $DIR/wp-config.php $DIR/.wp-config.php.backup # Stash your configuration someplace safe
rm $DIR/*.{txt,html,php} # Delete the old install
rm -rf $DIR/{wp-admin,wp-includes} # Delete more. Don't delete plugins or themes.
cp -aR $WPDIR/* $DIR/
mv $DIR/.wp-config.php.backup $DIR/wp-config.php # Restore the configuration
# You may not need the last two lines. I like to give my web server the ability to write files.
#chown -R .www-data $DIR/*.php $DIR/wp-admin $DIR/wp-includes
#chmod -R g+w $DIR/*.php $DIR/wp-includes
Please don’t use on a live site or anything like that, but for local development its a quick way to upgrade the site.
The script was originally here I simply edited it a little
Easy peasy:
#!/bin/bash
wget http://wordpress.org/latest.zip
unzip latest.zip
cp -rf ./wordpress/* ./
handy little bash script to install word press