-// Rather than duplicating this HTML all over the place, we'll stick it in function
-function login_header($title = 'Login', $message = '', $wp_error = '') {
- global $error;
+/**
+ * Outputs the header for the login page.
+ *
+ * @uses do_action() Calls the 'login_head' for outputting HTML in the Log In
+ * header.
+ * @uses apply_filters() Calls 'login_headerurl' for the top login link.
+ * @uses apply_filters() Calls 'login_headertitle' for the top login title.
+ * @uses apply_filters() Calls 'login_message' on the message to display in the
+ * header.
+ * @uses $error The error global, which is checked for displaying errors.
+ *
+ * @param string $title Optional. WordPress Log In Page title to display in
+ * <title/> element.
+ * @param string $message Optional. Message to display in header.
+ * @param WP_Error $wp_error Optional. WordPress Error Object
+ */
+function login_header($title = 'Log In', $message = '', $wp_error = '') {
+ global $error, $is_iphone;
+
+ // Don't index any of these forms
+ add_filter( 'pre_option_blog_public', create_function( '$a', 'return 0;' ) );
+ add_action( 'login_head', 'noindex' );