http://twitter.com/share?text=<TITLE>&url=<URL>
E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com
http://www.facebook.com/sharer.php?u=&p[title]=
| <?php | |
| if ( ! is_admin() ) { | |
| add_action( 'parse_query', function( $query ) { | |
| if ( $query->is_search ) { | |
| unset( $_GET['s'], $_POST['s'], $_REQUEST['s'] ); | |
| $query->set( 's', '' ); | |
| $query->is_search = false; | |
| $query->set_404(); | |
| header( $_SERVER[ 'SERVER_PROTOCOL' ] . ' 404 Not Found' ); |