I have used the remove_action function in WordPress before to remove junk from the injected by wp_head but it seems that with version 3.0 some tags aren’t being removed like the one below:
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
This should remove the prev link tag but it isn’t. Anybody knows the reason?
Thanks to TheDeadMedic I found the solution in “wp-includes/default-filters.php”. The following removes the next and prev links from wp_head:
This is the full script for removing all “unnecessary” meta tags from the
<head>
: