Skip to content

Instantly share code, notes, and snippets.

View mannieschumpert's full-sized avatar

Mannie Schumpert mannieschumpert

View GitHub Profile
<?php
// Disables sticky Strict Standards warnings. Good for poorly developed plugins.
// Put this file in mu-plugins
if ( WP_DEBUG ) {
error_reporting( E_ALL & ~E_STRICT );
}
@danielbachhuber
danielbachhuber / gist:3258825
Created August 4, 2012 17:16
Quick way to handle redirects for old pages
<?php
/**
* Quick way to handle redirects for old pages
*
* From Happiness Bar at WordCamp SF 2012
*/
add_action( 'init', 'mea_redirects' );
function mea_redirects() {
$mea_redirects = array(
// Enter your old URI => new URI
@clawfire
clawfire / Move Wordpress.sql
Created November 13, 2011 12:30
Move Wordpress
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');