Skip to content

Instantly share code, notes, and snippets.

@janlfox
janlfox / gist:5796504
Created June 17, 2013 12:27
wp-signup
<?php
// Sets up the WordPress Environment.
require( '../../../wp-load.php' );
require( '../../../wp-blog-header.php' );
add_action( 'wp_head', 'wp_no_robots' );
if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
wp_redirect( network_home_url() );