From d4abef7def6bf0361982677b9292bbaaf3efcaa9 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 13 May 2011 18:33:20 +0000 Subject: [PATCH] s/login_form/login_init/. Props sorich87. fixes #17411 git-svn-id: http://svn.automattic.com/wordpress/trunk@17918 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 2 +- wp-login.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index a3fe5bd17..eb2a2adaa 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -218,7 +218,7 @@ if ( isset( $_GET['replytocom'] ) ) // Login actions add_action( 'login_head', 'wp_print_head_scripts', 9 ); add_action( 'login_footer', 'wp_print_footer_scripts' ); -add_action( 'login_form', 'send_frame_options_header', 10, 0 ); +add_action( 'login_init', 'send_frame_options_header', 10, 0 ); // Feed Generator Tags foreach ( array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'atom_head', 'comments_atom_head', 'opml_head', 'app_head' ) as $action ) { diff --git a/wp-login.php b/wp-login.php index 3f85f778f..0f471b0d7 100644 --- a/wp-login.php +++ b/wp-login.php @@ -368,7 +368,7 @@ if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); // allow plugins to override the default actions, and to add extra actions if they want -do_action( 'login_form' ); +do_action( 'login_init' ); do_action( 'login_form_' . $action ); $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);